Showing results for 
Search instead for 
Did you mean: 

Linked button to edit text field

Former Member
0 Kudos

I know this sounds simple, but because I'm new to all this, can someone tell me how to add a Linked button to edit text field which will then link to a Business Partner?

Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor
0 Kudos


Add a edittext item and databind it (userdatasource or db-datasource) [Here uds]

Item i = oForm.Items.Add(itemUid, BoFormItemTypes.it_EDIT);
i.Description = description;
EditText et = (EditText)i.Specific;
et.DataBind.SetBound(true, "", "udsUid");

Create the linked button:

Item i = oForm.Items.Add(itemUid,BoFormItemTypes.it_LINKED_BUTTON);
i.LinkTo = itemUidForLinkedItem; //This is uid of editText item
i.Height = 9; // To fit a linkbutton it should be 9 pixel high
LinkedButton lb = (LinkedButton)i.Specific;
lb.LinkedObject = BoLinkedObject.lf_BusinessPartner; //Here you set the type of data in the edittext

After that place the edittext item and the linkbutton items (Linkbutton left of the edittext)

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks! You've been very helpful.