Jump to content

UnimDBSelect how to get primary key ID of selected record


Tomas - DATANOVA

Recommended Posts

Hello everyone,

we have practical problem with this mobile component.

we have placed UnimDBSelect on form. it is filled with autoadd from selected datasource(sure, we have some while to autoadd work properly, or we fill it in while manually with item.add function).

When user on client side selects item from unimdbselect we need to know ID of that record. Now we compound selection data with primary ID, for example:

Madrid#15203

New York#1654

but it is visible by user and we need to parse it. how to get desired ID without this?

some possibility to get selected record ID directly ?  

 

Link to comment
Share on other sites

Sure, locate is possible, but it is not comfortable, cause we need additional code and sometimes source data has more keys to locate appropriate row. For example if You have 2 workers with same name, but birth year is different, so for locate You need to parse selected item for name and year and then cast locate.   

Yes, we need funcionality similar to DBLookupcombobox, where i can get record fields using listsource. But Unigui Mobile does not have this component available. I think that UnimDBSelect has this feature, but dont know how to use that.

Link to comment
Share on other sites

×
×
  • Create New...