Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 1963

Accessing TLISTVIEW data programmatically

$
0
0

I am trying to access TListview members data I have created in LiveBindings programmatically and cant figure out it. 

I created a live binding to a rest field called rec_id and  If use clicks on a TListView item I need to get the rec_id of the item they have clicked for further work, rec_id is a non visible field.

This is what I have now. How do I get rec_id data?

LiveBinding(LinkPropertytoFieldrec_id)  FDMemTable id ---> ListView2 rec_id

procedure TForm1.ListView2ButtonClick(const Sender: TObject;

const AItem: TListViewItem; const AObject: TListItemSimpleControl);

var

Rec_id_string : String;

begin

Rec_id_string := AItem ???? rec_id

end;

 


Viewing all articles
Browse latest Browse all 1963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>