cancel
Showing results for 
Search instead for 
Did you mean: 

link button in matrix

Former Member
0 Kudos

Hi Experts

I am preparing a new ADDon.

how to place a link button in the item no field and when the link is clicked it should reflect the item mater data with the item no given in that field.. can i any suggestion from u.. please.

get me some sample codes if possible.

thank you..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

If you about link button in matrix you need: 1) set matrix column type="116" (LinkedButton in matrix column); 2) set LinkedObject property to ObjectType.

For example, you have column with ItemCode and you need to set this properties for column.

See line with <ExtendedObject linkedObject="4" LinkedObjectType="4" /> where Object Type = 4 corresponds to OITM.

In the case for the column CardType: <ExtendedObject linkedObject="2" LinkedObjectType="2" />

Hope this help you

Regards

Sierdna S.


<column uid="e1UItemCod" type="116" title="Item Code" description="Item Code"
  visible="1" AffectsFormMode="1" width="83"
  disp_desc="0" editable="1" right_just="0" val_on=""
  val_off="" backcolor="-1" forecolor="-1" text_style="0" font_size="-1"
  ChooseFromListUID="2" ChooseFromListAlias="ItemCode">
  <databind databound="1" table="@USER_TABLE_NAME" alias="U_ItemCode" />
  <!-- HERE YOU SET Linked Object 4 (OITM) for e1UItemCod -->
  <ExtendedObject linkedObject="4" LinkedObjectType="4" />
</column>

Edited by: Sierdna S on Sep 29, 2008 4:25 PM

Former Member
0 Kudos

Hi

I hav already created a form and it is working properly..

i hav to add the link button to the form at matrix level..

and when that button is click it should open a item master data form bearing the item number.

can add the button now to the form at matrix level..

Former Member
0 Kudos

Hi...

matrix select type link_butten.

choose from list alias ItemCode and give linkobject=item master object id and create choose from list there also u have to give item master object id and select choose from list UID.

Regards...

Billa 2007

Former Member
0 Kudos

Hi i am using screen painter in the form i set these values

matrix

display desc = false

enabled = true

from pane = 0

height = 162

left =5

linkto=

rightjustified = false

topane=0

type= it-matrix

uniqid= matrix

visible=true

specific

matrixlayout=mt_normal

selectionmode=ms_single

for the column

alias= U-item

databound= true

desp= partno

dispaly desc=false

editable=true

rightjustified=true

table=@tbl_indent

title=partno

type=it_link_button

unliaid=col_2

specific

choosefrom listalias=

choosefromlistuid=

linkobjecttype=4

..

this is the column where i need link button..

can u please help me what to do further..

Former Member
0 Kudos

Hi..

select (which one u want linkbutton) column.

there u have to give type =it_LINK_BUTTON

Regards..

Billa 2007

Former Member
0 Kudos

HI

s i did the same..

made the type as it_link_button.

.. when i run the form it is giving error..

now

how to to set the

linkobject type

choose from listUID

..

how to set these fields.

can u plz help me

Former Member
0 Kudos

Hi thank u very much..

this link button is visible..

now how to load the item master form when i click on this link button can u plz ...

get me the solution..

Thanks regarding..

Former Member
0 Kudos

Hi

thank u very much...

it is sucess full

Thanks Regarding

mahi

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi..

ur using screen painter..

select linked button and give

linked object=item master object id

Regards

Billa 2007

Former Member
0 Kudos

Dear Mahendra Babu,

Here i have given one solution for you. Hope it wil be helpful for you. change the Column type as '116' and linked the column with the linkedobject type '4' .Below refer the column uid="1", i have linked the column with the itemcode.

<item uid="14" type="127" left="5" tab_order="0" width="580" top="68" height="195" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">

<AutoManagedAttribute/>

<specific SelectionMode="0" layout="0" titleHeight="20" cellHeight="18">

<columns>

<action type="add">

<column uid="0" type="16" title="#" description="" visible="1" AffectsFormMode="1" width="30" disp_desc="1" editable="0" right_just="0" val_on="1" val_off="0" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">

<databind databound="1" table="" alias="u2"/>

<ExtendedObject/>

</column>

<column uid="1" type="116" title="Item Code" description="" visible="1" AffectsFormMode="1" width="92" disp_desc="0" editable="1" right_just="0" val_on="1" val_off="0" backcolor="-1" forecolor="-1" text_style="0" font_size="-1" ChooseFromListUID="CFL1" ChooseFromListAlias="ItemCode">

<databind databound="1" table="@PRDT" alias="U_ItemCode"/>

<ExtendedObject linkedObject="4" LinkedObjectType="4"/>

</column>

<column uid="2" type="16" title="Item Name" description="" visible="1" AffectsFormMode="1" width="139" disp_desc="0" editable="1" right_just="0" val_on="1" val_off="0" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">

<databind databound="1" table="@PRDT" alias="U_ItemName"/>

<ExtendedObject/>

</column>

</action>

</columns>

</specific>

</item>

With Regards

G.shankar