#1 2015-01-29 11:37:57

lele9
Member
Registered: 2011-10-28
Posts: 170

mormotUIEdit and tRawUTF8List

hi ab,
i see the TRawUTF8List and i would like to load into TListBox.Items property in a setRecord of mormotUIEdit and viceversa in the save of mormotUIEdit.
how can i do?
thanks

Offline

#2 2015-01-29 13:18:31

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,170
Website

Re: mormotUIEdit and tRawUTF8List

I'm not sure that I understand your need, but you have several methods in mORMot.pas which returns TStrings content.

Offline

#3 2015-01-29 15:15:27

lele9
Member
Registered: 2011-10-28
Posts: 170

Re: mormotUIEdit and tRawUTF8List

i mean that i would implement the section in the mormotUIEdit (procedure setRecord)

aValue := P.GetValue(aRecord,false);
aFieldType := Fields.List[i].SQLFieldType;
case aFieldType of
stfObject: 
   //in case of TRawUTF8List i would retrieve TStrings from aValue and put in TListBox.Items

can you help me?

Offline

#4 2015-03-31 09:46:08

lele9
Member
Registered: 2011-10-28
Posts: 170

Re: mormotUIEdit and tRawUTF8List

i would like to assign the checklistbox.items to a TRawUTF8List record property and viceversa implementing this part of MormotUIEdit

aValue := P.GetValue(aRecord,false);
aFieldType := Fields.List[i].SQLFieldType;
case aFieldType of
stfObject: 
   //in case of TRawUTF8List i would retrieve TStrings from aValue and put in TListBox.Items

any suggestion?

Offline

Board footer

Powered by FluxBB