cancel
Showing results for 
Search instead for 
Did you mean: 

Linked Button -- Edittext

Former Member
0 Kudos

How to link to linked button with the Edittext?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

if you are using the code you can use the following code

Dim olinkButton As SAPbouiCOM.LinkedButton

Dim oItem As SAPbouiCOM.Item

oItem = oForm.Items.Add("UID", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)

//Set the properties

oItem.LinkTo = "YOUREDITTEXTUID"

olinkButton = oItem.Specific

olinkButton.LinkedObjectType="OBJTYPE" (1 or 2 or 3 depending on your requirement)

Or else if you are using xml you can use xml as suggested by anitha

hope it helps you

Regards

Vishnu

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Insert after form opening

Dim oItem1 As SAPbouiCOM.Item

oitem1=oForm.Items.Item("LinkButtonUid")

oItem1.LinkTo = "EditTextUid"

or

if you have designed this form in the ScreenPainter then

in the properties of the LinkButtonitem you can find linkto property.

Their u assaign the EditText ItemId

Now u can get your result

regards,

varma

Former Member
0 Kudos

Naraayanan,

Try this ,

The user defined form have xml format there u have to wirte this,

In linkto property u specific the textbox name

In Linked object property u specific to which form u want the link.

<item uid="link1" type="116" left="114" tab_order="0" width="13" top="54" height="12" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="ptid" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1" ChooseFromListUID="SuppCFL" ChooseFromListAlias="CardCode">

<AutoManagedAttribute>

<Attribute id="2" description="editable" modeView="1" />

</AutoManagedAttribute>

<specific linkedObject="2" LinkedObjectType="2" />

</item>

Regards,

Anitha