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

Matrix and Link Button

Hi there,

I know this topic had been discussed a number of time but non of the solution work for me.

I want to know how to create a link button on a matrix. Just like the one in the Sales Order- item matrix, where

you can click on the link button beside the item code and the item master data form will pop out.

Only want to know matrix not normal text field where putting a link button is so easy.

I'm using 6.5 SDK and please... don't provide any 2004 solution... cos it's not workable on 6.5?

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2005 at 08:57 AM

    Hi,

    as far as you know it is possible to create a link button on the matrix in 6.5 but linking it to an object is possible only for 2004 A.

    Best regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2005 at 10:05 AM

    Ah.... I yet to have 2004 sdk and it's program....

    I had done a workaround... but still unable to show a actually link button on a matrix cell... I can only capture a double click event and do a link button click so my target form will pop out...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2005 at 01:17 PM

    OK if you want to add linkbutton to the matrix cell just use following syntax:

    Set oMatrix1Col = oMatrix1Cols.Add("Col1", it_LINKED_BUTTON)

    but as I said before the property that will allow you to connect objects to this button is available in 2004 A.

    Regards,

    Pawel

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Without doing any item.linkto , you won't be about to see any link button on the matrix cell even you had declare the column as linked button type. Thus, I don't see why this type should even be allow in the Matrix as you can't even link a thing for SBO 6.5? Funny...

      Anyway, I use a double click event on a column to act as a link button... Here's my code:

      Case SAPbouiCOM.BoEventTypes.et_DOUBLE_CLICK

      Select Case pVal.ItemUID

      Case "PMatrix"

      If pVal.ColUID = "PerLink" Then

      otext = PercentMatrix.Columns.Item &_

      ("PerInv").Cells.Item(pVal.Row).Specific

      txtPerLink.String = otext.Value

      ProINVForm.Items.Item("PerLink1").Click &_

      (SAPbouiCOM.BoCellClickType.ct_Linked)

      End If

      End Select

      Note: txtPerLink is a textbox to display invoice number

      "PerLink1" is a Link button created when my form

      is created.

      Thus, when a double-click event is detected on column "PerLink", it will detect which row also. Then read in the invoice number from the particular row and put into EditText: "txtPerLink". Then, force a link button click.

      Message was edited by: Erik Tang

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.