Hi,
again on Combobox/Form Editing.
I'm facing a question about combos, especially for searching values..
I have a decoding table, for ex. PAYMENT_TYPES with this values:
ID | TYPE
1 -> CASH
2 -> CREDIT CARD
And in my customer orders table I have those values:
ORDER_ID | NAME | PAYMENT_ID
567 -> SMITH -> 1
789 -> FOO -> 2
For showing Orders grid I'm using a MySql query that join IDs to show Text inside Grid (for ex. I will show “CASH” and not “1” when listing orders), but this will be a problem for searching because the filter refer to “CASH” and not 1
How to fix this? How to pass the query the correspondant ID, or how to let the grid to decode itself the IDs and show Values?
Thanks
Max
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top