dynamic drop down [message #83494] |
Fri, 17 October 2003 11:25 |
SA
Messages: 37 Registered: March 2002
|
Member |
|
|
Hi,
I have a data block which has one field of drop down type. It should come from a query (query1). Also, when the form opened, it sets the value of the drop-down from database(using execute_query build-in, but different from query1). Can someone give me an idea or example how to implement it? Thank you in advance!
Sa
|
|
|
|
Re: dynamic drop down [message #83509 is a reply to message #83497] |
Mon, 20 October 2003 09:54 |
SA
Messages: 37 Registered: March 2002
|
Member |
|
|
Thank you for your reply. My question is I have a drop down which come from a database table (for example select event_type from event_type_table) and this drop down is in a data block (say the query associate with this datablock is "select event_date, event_type, event_place from event_table where user = 'somebody'). So when the form loads it, in event block, it should show some info from database table event_table. And event_type is a drop down and it should show the value from the above query. I'm new to this, so I don't know what the good way to implement this. Can you help me with this? I'm going to post this again since I need to have this done asap. Thanks
Sa
|
|
|
|
Re: dynamic drop down [message #83525 is a reply to message #83518] |
Tue, 21 October 2003 14:46 |
SA
Messages: 37 Registered: March 2002
|
Member |
|
|
Thank you. That works. But I want to use drop down instead. I have code to populate drop down list using record group and if there is no record in the data block, it's perfectly fine. But if there are some records there, I don't know how to set value of the drop down since execute_query won't work. I have a workaround, which for each record, I populate the drop-down and set value of the drop-down to the value get from database. I don't know if there is a better way to do that. Do you have any suggestions? Thanks,
|
|
|