on 12-25-2007 7:21 AM
How to link to linked button with the Edittext?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
8 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.