on 12-14-2005 6:24 AM
Hi
All tel me how can add data in a combo box using
the data base (SQL SERVER2000)plz. help me.
Thanks & Regards
Shahid
To bring this a level further: is it possible to bind the ComboBox's ValidValues to a datasource?
This is a common use case: my bound form has a foreign key - so the combobox should offer a choice of the primary keys in the linked table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<i>To bring this a level further: is it possible to bind the ComboBox's ValidValues to a datasource?
This is a common use case: my bound form has a foreign key - so the combobox should offer a choice of the primary keys in the linked table.</i>
any solution to this issue????, I get "Valid Value doesn't exist" after adding the valid value, but the valid value appears, if I add a try catch code block after adding the valid value, I can get a bad solution.. but must be a way to get ride of it..
thanks!
ps: I cant't bind the combo to the dbdatasource because it's already bounded to the table.
Thanks
Adele
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dim editTxt As SAPbouiCOM.ComboBox
'1. Define th DataSorce
oForm.DataSources.DBDataSources.Add("OCRD")
'Create an edit text item
editTxt = oForm.Items.Item("YourComboID").Specific
'2. Bind/Associate table OCRD field CardCode to the edit text
editTxt.DataBind.SetBound(True, "OCRD", "CardCode")
'Get Data
Dim oDBDS As SAPbouiCOM.DBDataSource
oDBDS = oForm.DataSources.DBDataSources.Item("OCRD")
oDBDS.Query()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.