cancel
Showing results for 
Search instead for 
Did you mean: 

how to paste URL link in a UI element table

Former Member
0 Kudos

Hi Experts,

             I have an requirement to PASTE url LINKS in one of columns of  the table and these URLs should open their respective sites when clicked on it.

Accepted Solutions (0)

Answers (2)

Answers (2)

Sharathmg
Active Contributor
0 Kudos

Hello Venkat,

In my opinion, you need to perform some workaround to fulfill this requirement. You cannot copy a text(url) into the link to url UI.

1. Maintain a column to display the URL but keep it readonly.

2. Have a button in the table(toolbar/table row data), with the purpose "Insert Link". Similar to the insert link option provided by SCN forums.

3. onAction - Provide a popup with separate fields for Link and link display text.

4. On submit, set the node attribute assosiated to the particular table row data. You can map link text to the LinkURL UI elements "text attribute" and the actual URL to "URL" attribute.

This way, you maintaint he data integrity by blocking the user from editing the URL text directly. Also, you control the display and can also include basic validations such as:

1. url link has the right protocol(http/http)

2. it does not have ip address etc.

Regards,

Sharath

Former Member
0 Kudos

Hi Venkat

Just add a a cell editor of type linkToUrl to you column.

Do not forget to map this link to a node attribute.

Thats it.

Regards

yuval peery

Former Member
0 Kudos

Hi Yuval,

Thank You very much its working fine with your idea.

Former Member
0 Kudos

Glad to hear.

Regards

yuval peery