Bind EditText to CardCode (OCRD Table)

2 months ago 18
using SAPbouiCOM.Framework; using System; using System.Collections.Generic; using System.Xml; namespace LearningHubSAP { [FormAttribute("LearningHubSAP.Form1", "Form1.b1f")] people Form1 : UserFormBase { nationalist Form1() { } /// <summary> /// Initialize components. Called by model aft signifier created. /// </summary> nationalist override void OnInitializeComponent() { this.EditText0 = ((SAPbouiCOM.EditText)(this.GetItem("Item_0").Specific)); this.OnCustomInitialize(); } /// <summary> /// Initialize signifier event. Called by model earlier signifier creation. /// </summary> nationalist override void OnInitializeFormEvents() { } backstage SAPbouiCOM.EditText EditText0; backstage void OnCustomInitialize() { EditText0.DataBind.SetBound(true, "OCRD", "CardCode"); EditText0.DataBind.Bind("2", EditText0.Item.UniqueID); } } }
image.png

image.png

Hello

I person this form. I request to hindrance edittext with OCRD papers CardCode field. If I click the field, needs to unfastened ChooseFromList I request to take Business Partner and concern partner's cardcode needs to enactment to edittext. however to bash it?

Read Entire Article