StrataFrame Forum

extended combo box functionality

http://forum.strataframe.net/Topic7133.aspx

By Kent Meyer - 2/22/2007

I would like to add the following functionality to my app. 

Here is the scenario:  I have an order and I want to add "product" to it.  I can use the combo box to do the look up.  But in this case the drop down is limited to the code.  so I can add a button beside the combo box to show a browse dialog which allows a more complex lookup.  Now lets say that the code I want does not exist.  I would like to be able to add the new code "on the fly" from where I am at.  What is the best way using the strataframe components to accomplish all three tasks.

Thanks

By StrataFrame Team - 2/23/2007

If it's a set list, you can use the ComboBox and the PopulationDataSourceSettings on the combo box to populate it with the appropriate codes.  If you need a "browse" button to do a more detailed lookup, you can drop a BrowseDialog on the form and configure it to do the lookup.  However, if you need to be able to lookup records and/or add a new one, you'll have to create a custom form or custom control to do that... the browse dialog doesn't allow you to add new records within it.