Hello,
I use the filter function to narrow the displayed items in TableView. When I try to retrieve the Datastring (to display details) the code
id := tmsfmxntvtblvwMAIN.Sections[ASection].Items[ARow].DataString;
retrieves the id for the underlying dataset, not the filtered dataset. Can you point me to the right point so that I retrieve the correct id?
Kind regards
Gernot
Pieter
(Pieter)
2
Hi,
You need to define a protected class, TTMSFMXNativeUITableViewProtected = class(TTMSFMXNativeTableView);
Then wrap your instance and use the GetItem functionality with the isFiltering function to search within the filtered data,
TTMSFMXNativeUITableViewProtected(tmsfmxntvtblvwMAIN).GetItem(ASection, ARow, tmsfmxntvtblvwMAIN.isFiltering)
Will cover both filtering and non filtering, GetItem returns a TTMSFMXNativeUITableViewItem
We will look into this to publish this function
Kind regards,
Pieter
Pieter Scheldeman2013-06-18 15:30:11
Cool - looking forward to it.
Kind regards
Gernot