Hi all,
I have 2 EditText bind to a user table. When I am on the form, I entry a value to the first and when I go on the second, the value of the first is lost. Where is the problem?
A part of my code
'When I create the form
cobj_Form.DataSources.DBDataSources.Add("@EPG_EMPLOYER")
gobj_Item = cobj_Form.Items.Add("EPG_eDName", SAPbouiCOM.BoFormItemTypes.it_EDIT)
gobj_EditText = gobj_Item.Specific
gobj_EditText.DataBind.SetBound(True, "@EPG_EMPLOYER", "U_EPG_DutchName")
gobj_Item = cobj_Form.Items.Add("EPG_eFName", SAPbouiCOM.BoFormItemTypes.it_EDIT)
gobj_EditText = gobj_Item.Specific
gobj_EditText.DataBind.SetBound(True, "@EPG_EMPLOYER", "U_EPG_FrenchName")
'// On the menu event, after create the form
Public gobj_DBDS_Employer As SAPbouiCOM.DBDataSource
gobj_DBDS_Employer = cobj_Form.DataSources.DBDataSources.Item("@EPG_EMPLOYER")
gobj_DBDS_Employer.Query()
If gobj_DBDS_Employer.Size = 0 Then
cobj_Form.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE
Else
cobj_Form.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE
end if