Skip to Content
author's profile photo Former Member
Former Member

it_LINKED_BUTTON usage

Are there any examples describing how to use it_LINKED_BUTTON items?

I'm trying to implement a form containing references to B1 objects; i.e. a matrix containing Articles including a link to the corresponding article.

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2004 at 05:55 AM

    Hi,

    Unfortunately, linked button don't work into matrix. Maybe, it will in tne future versions. You can use linked button with the EditText object. The EditText must contain a valid key value for linking.

    Best regards,

    Mark

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I just found out that it works perfectly without using Datasources.

      [LINK] [EDITTEXT]

      Dim oLink As SAPbouiCOM.LinkedButton

      Dim oId As SAPbouiCOM.EditText

      oLink = oForm.Items.Item("LINK").Specific

      ' set object type

      oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Items

      oId = oForm.Items.Item("EDITTEXT").Specific

      ' set object identifier

      oId.String = "Coolest article ever"

      ' link arrow to id field

      oForm.Items.Item("LINK").LinkTo = "EDITTEXT"

      ' disallow editing of id field

      oForm.Items.Item("EDITTEXT").Enabled = False

      That's it, no query needed plus you can use several items of the same type in one form (don't know how to do that with DataSources).

      I'm definitely looking forward to the next release in order to use a matrix for linked buttons...

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2004 at 02:01 PM

    Hi,

    just FYI,

    LinkedButton in matrix was not exposed in 6.5.

    It is working great for SAP Business One version 6.7 MR.

    Regards,

    Yaniv G.

    SDK Consultant

    SAP Manage Israel

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2004 at 08:16 AM

    Thanks a lot, that should do it!

    Add comment
    10|10000 characters needed characters exceeded