cancel
Showing results for 
Search instead for 
Did you mean: 

UI LinkedBtn Object-sample

Former Member
0 Kudos

As I promissed in the webex session - I'm attaching a sample of using the LinkedBtn object.

Please notice that this object isn't available inside a matrix column (cell) for version 6.2-6.5

While creating your new form - you can add a linked button item.

'Adding link button code sample

Set Itm = Frm.Items.Add("Link1", it_LINKED_BUTTON)

        'Allocating the new item in reference to other items on the form

Itm.Top = Frm.Items("EditTxt1").Top

Itm.Left = Frm.Items("EditTxt1").Left + Frm.Items("EditTxt1").Width + 5

        'Connecting the linked button to the relevant field on the form

Itm.LinkTo = "EditTxt1"

Please tell me if you need more help.

Miki

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Miki,

I tried the above, but does not work. I am using 6.5 and VB. Any idea why?

The yellow arrow does not appear in my form.

regards,

LuanBoo

Former Member
0 Kudos

Luan,

the above example seems to be incomplete.

You to also need set the Object you want to link to by using the LinkedObject property.

The sample below should work properly.

HTH Lutz Morrien

Answer: Use Link Button Item (orange arrow).

  Set Itm = Frm.Items.Add("Link1", it_LINKED_BUTTON)

Itm.LinkTo = "EditTxt1"

        Set linkBtn = Itm.Specific

        linkBtn.LinkedObject = lf_BusinessPartner

Former Member
0 Kudos

hello Lutz

I need linkedobject to UserTable (UserForm)

it's possible ??

thank you

Jorge Benitez

AxisGroup

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Jorge,

You can only create LinkedBtns linked with B1 objects, no way to link them with a UDO or a simple UserTable.

Trinidad.

Former Member
0 Kudos

:o(=

thanks Trinidad, perhaps in a future not very distant.

Jorge

Former Member
0 Kudos

Thank you for the INFO. Frank