on 04-01-2004 9:51 AM
Hi, I am trying to bind a Column of a table to an EditText, but I find an error '-7005(ffffe4a3)'
Data Source-Invalid table name,The version is SDk 6.5.
This is the code:
Private Function CreateMySimpleForm()
Dim oItem As SAPbouiCOM.Item
Dim oButton As SAPbouiCOM.Button
Dim oStaticText As SAPbouiCOM.StaticText
Dim oEditText As SAPbouiCOM.EditText
Dim oComboBox As SAPbouiCOM.ComboBox
Set oItem = oForm.Items.Add("EditText1", it_EDIT)
oItem.Left = 157
oItem.Width = 163
oItem.Top = 8
oItem.Height = 14
Set oEditText = oItem.Specific
'// bind the text edit item to the defined used data source
oEditText.DataBind.SetBound True, "OCRD", "CardCode"
Set oItem = oForm.Items.Add("StaticTxt1", it_STATIC)
oItem.Left = 7
oItem.Width = 148
oItem.Top = 8
oItem.Height = 14
oItem.LinkTo = "EditText1"
Set oStaticText = oItem.Specific
oStaticText.Caption = "Proveedor"
EndFunction
Hi, Natalia
You have to define a datasource(DBDataSource or UserDataSource). Then you can bind your text box to this datasource. See it in help and samples.
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess you need to add the datasource before using it.
'Add a ds
dsOCRD = YourForm.DataSources.DBDataSources.Add("OCRD")
'fill datasource with actual data
dsOCRD.Query()
HTH Lutz Morrien
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.