cancel
Showing results for 
Search instead for 
Did you mean: 

Linked button for matrix column

Former Member
0 Kudos

Is it possible to add a linked button (golden arrow) for a column loaded by a XML (or .SRF Screen Painter)?

When adding columns by manually (by code), by the time the column is added you can choose its type, like this:

oColumn = oColumns.Add("NewCol", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)

But this is a read only property, and not an available type in Screen Painter Column types.

Does anyone knows how to manage it ?

Thks,

Chris.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184566
Active Contributor
0 Kudos

Hi Christiano Pegorer

Yes, you can make your screen painter document have it to a degree.

You must open your screen in xml, you will see that in the xml your column that you want to place the linked button has a "Type" value. If i remember correctly it is 16. Just add a one in front of it, that means it will be 116. You will then see that once you load the data in that matrix it will be indented in that column, have space for the linked button but it is not showing. You will then need to write the code to just link that column with a linked object type.

Hope this helps

Former Member
0 Kudos

Hi Christiano,

you have to edit manually your xml file.

this Xml creates a Docentry Column linked to Orders:

<column uid="Col1" type="116" title="Id" description="" visible="1" AffectsFormMode="1" width="30" disp_desc="0" editable="0" right_just="0" val_on="DocEntry" val_off="" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">
   <databind databound="1" table="ORDR" alias="DocEntry" />
   <ExtendedObject linkedObject="17" LinkedObjectType="17" />
</column>

Regards,

Emmanuel

Answers (0)