cancel
Showing results for 
Search instead for 
Did you mean: 

Bind EditText to CardCode (OCRD Table)

makhamadzoidov
Explorer
0 Kudos
95
using SAPbouiCOM.Framework;
using System;
using System.Collections.Generic;
using System.Xml;

namespace LearningHubSAP
{
    [FormAttribute("LearningHubSAP.Form1", "Form1.b1f")]
    class Form1 : UserFormBase
    {
        public Form1()
        {
        }

        /// <summary>
        /// Initialize components. Called by framework after form created.
        /// </summary>
        public override void OnInitializeComponent()
        {
            this.EditText0 = ((SAPbouiCOM.EditText)(this.GetItem("Item_0").Specific));
            this.OnCustomInitialize();

        }

        /// <summary>
        /// Initialize form event. Called by framework before form creation.
        /// </summary>
        public override void OnInitializeFormEvents()
        {
            
        }

        private SAPbouiCOM.EditText EditText0;

        private void OnCustomInitialize()
        {
            EditText0.DataBind.SetBound(true, "OCRD", "CardCode");
            EditText0.DataBind.Bind("2", EditText0.Item.UniqueID);
        }
    }
}

image.png

 

image.png

Hello

I have this form. I need to bind edittext with OCRD document CardCode field. If I click the field, needs to open ChooseFromList I need to choose Business Partner and business partner's cardcode needs to put to edittext. how to do it?

 
 

Accepted Solutions (0)

Answers (0)