Quantcast
Viewing all articles
Browse latest Browse all 9656

Re: How to obtain Partner phone number on custom form

Hi Robert,

 

Try this code after you launched your form.

            //Look for a BP Form            SAPbouiCOM.Form BPForm = null;            for (int i = 0; i < eCommon.SBO_Application.Forms.Count; i++)            {                if (eCommon.SBO_Application.Forms.Item(i).TypeEx == "134")                {                    BPForm = eCommon.SBO_Application.Forms.Item(i);                    //Tel 1 edit text.                    EditText PhEdit  = (SAPbouiCOM.EditText)BPForm.Items.Item("43").Specific;                    eCommon.SBO_Application.MessageBox(PhEdit.Value,1,"OK","","");                }            }

 

Above assumed the first BP Form opened.

It will take the phone number Tel1

Image may be NSFW.
Clik here to view.
Untitled.jpg

 

Regards
Edy


Viewing all articles
Browse latest Browse all 9656

Trending Articles