Skip to Content
avatar image
Former Member

Links in Table

Hi

I want to put link to the one column in the table.

plese let me know the solution for this

regards

mmukesh

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Feb 05, 2007 at 09:11 AM

    hi mukesh,

    if you are speaking about making one column in the table as link then, make the table cell as linktoAction instead of text view.

    if you are speaking about displaying a table when you click a link, then place the table in another view and fire a plug when you click this link.

    Regards,

    Gopi

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 05, 2007 at 09:29 AM

    Hi Mukesh,

    Please use a UI Element of type LinkToAction for that column

    REgards,

    Sharadha

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sharadha

      Thanks for your reply

      I assigned UI Element of type LinkToAction

      and its asking to change the attribute type to "Boolean"

      but my attribute type is not boolean .

      let me know how to make this one working.

  • Feb 05, 2007 at 09:39 AM

    Hi

    Use this code in ur doInit() method

    IPrivateUserView.ITableElement tableElement;

    for (int count = 0; count < 5; count++) {

    tableElement = wdContext.createTableElement();

    tableElement.setLinkToActionText("Give Text here");

    wdContext.nodeTable().addElement(

    tableElement);

    I have my view named as "UserView".

    And my table Value node as "Table".

    So change the first line accordingly.

    Do let me know the ouput

    Regards

    BP

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 05, 2007 at 10:58 AM

    Hi Mukesh,

    I think you have made the table cell editor of that column as LinkToAction.

    You need not assign any of its attributes/properties, but create a method for the event onAction of that Link to Action UI element.

    The string you need to display as the link can be assigned as context (string type) to the TEXT property of the LinkToAction.

    Hope this helps..

    Regards,

    Alka

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hello mukesh,

      "The string you need to display as the link can be assigned as context (string type) to the TEXT property of the LinkToAction"

      the above sentense means that the string which should be clickable should assigned to the TEXT property of LinkToAction.

      Jeet

  • Feb 06, 2007 at 11:54 AM

    Hi Mukesh,

    Insert tablecellEditor as linktoaction control for the column.

    Assign one action to it and write your code in this action.

    do the context binding with column.

    Regards,

    Satyendra

    Add comment
    10|10000 characters needed characters exceeded