Skip to Content
avatar image
Former Member

link button in matrix

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..

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 29, 2008 at 02:22 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 29, 2008 at 02:18 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 30, 2008 at 04:38 AM

    Hi..

    ur using screen painter..

    select linked button and give

    linked object=item master object id

    Regards

    Billa 2007

    Add comment
    10|10000 characters needed characters exceeded