Skip to Content
avatar image
Former Member

Setting Table field value as HyperLink

Hello,

I have created a webdynpro java application where the user fetches the records based on search criteria in a table....with 4 fields ...the first field of which is unique...which i want to make as a HyperLink so that they can choose a single record by clicking on the link and display it's further information....is this possible to do and call an action on click of the link....?

Any help would be highly appreciated,...

Regards,

Ani

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 01, 2009 at 09:20 PM

    Hi Anil

    Yes, it is possible. But the name of action isn't on Click, the right is OnAction. In the OnAction event you can put your code with your logic.

    You can do this in a table, with the action OnLeadSelection. When you selected the line of table this event is called.

    Regards

    Marcos

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Anil,

      Use the UI element Link To Action as one of the column in the table. You can create a context attribute and bind to the 'text' property of this UI element. This context attribute can then set to the values from BAPI.

      Regards,

      Ponraj M

  • Jul 02, 2009 at 01:31 AM

    Hi Anil,

    By default when you create a table each column in the table will have 'TextView' UI element as 'TableCellEditor'. In order to put a hyperlink in your column remove the TextView from the column and right click on the column and from the menu select 'Insert Table Cell Editor' and then select 'Link To Action'. Now bind the 'Text' property of 'Link To Action' to the context attribute to which the 'Text View' was bound in the previous case.

    Now you can define an action for this 'Link To Action' where you can fire a plug to go to next view or any further processing.

    Regards,

    Shabeer.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for your help guys....i was able to set the table field as hyperlink and defined an Action on click of it and fire another view ...now i will try to display the values of that record in the view....

      Regards,

      Anil