cancel
Showing results for 
Search instead for 
Did you mean: 

Linked Button Issue

Former Member
0 Kudos

Hi All,

I have created an udo. and i've developed a form with object type of that udo & adding, updating, find every thing is working good. now my prob is i've another form with matrix and in that a column of linked button. now i want to open that user defined form which i'm using to add data, when i click linked button.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

edy_simon
Active Contributor
0 Kudos

Hi Jaideep,

Currently it is not possible to link the Link Button with a UDO automatically.

However you can code your own link.

this will involves :

1. Catching the item pressed event on your link button.

2. Open your UDO Form and put in Find mode.

3. Put the form in freeze mode.

4. Place the key value to your key field in the UDO Form.

5. Do a click on the find button.

6. Unfreeze the form.

hope it helps.

Regards

edy

Former Member
0 Kudos

great help thanks !!!!

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

For this you have to give your udo unique id in the Linked object property of linked button and column name in link to property..

Thanks

Former Member
0 Kudos

LinkTo property for which Field???

Former Member
0 Kudos

Hi

Link to property for the column where your link button is or the column on the basis of which you want to open your udo form..

Former Member
0 Kudos

Hi Minhas,

Sorry to say this. unable to understand, can u explain me with an example. please....

Former Member
0 Kudos

Hi

Sorry use only link object property

Thanks

Former Member
0 Kudos

ocolumn = ocolumns.Add("Code", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
            ocolumn.TitleObject.Caption = "Movie Code"
            ocolumn.Width = 50
            ocolumn.Editable = False
            ocolumn.LinkTo = "Code"
            olink = ocolumn.ExtendedObject
            olink.LinkedObject = "Video_obj"

the above is part of my code so here in this i've given linkedobject = UDO code.

So can u suggest flaws in this code, so that i can rectify.

Former Member
0 Kudos

Hi

try not to use ocol.linkto property..

Thanks

Former Member
0 Kudos

hi,

i have changed but bo luck man, Plz do suggest with an solution.Actually the linked button should open a user defined form which has the objectype of UDO's Unique ID.

Will there be any id for the linked button in the matrix.