How to bind a textbox with datasource?
SAP Online Classes provides Best SAP training Online based on current industry standards that helps attendees to secure placements in their dream jobs at MNCs. SOC is one of the most credible ERP SAP Online training provider, offering hands on practical knowledge and full job assistance with basic as well as advanced level ERP SAP Implementation Training. At SOC ERP SAP training Online is conducted by subject specialist corporate professionals with 14+ years of experience in managing real-time ERP SAP projects.
How to bind a textbox with datasource?
Answer
Johnathan
Information Security Analyst at Wipro
Textbox can be binded to datasource as follow
- Dim objForm As SAPbouiCOM.Form
- Dim txtDocEntry As SAPbouiCOM.EditText
- objForm = SBO_Application.Forms.ActiveForm
- objForm.DataSources.UserDataSources.Add(“DocEntry”, SAPbouiCOM.BoDataType.dt_LONG_NUMBER)
- txtDocEntry = objForm.Items.Item(“txtDocEntry”).Specific
- txtDocEntry.DataBind.SetBound(True, “”, “DocEntry”)
- In the above code,I have considered the textbox txtDocEntry.I want this textbox to accept numeric input only.So I have binded it with dt_LONG_NUMBER as shown above.