cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

ThingWorx 9.3 Grid with Clickable cell value having IP address

SKannapiran
11-Garnet

ThingWorx 9.3 Grid with Clickable cell value having IP address

I have a ThingWorx grid with two IP address columns (IP1 & IP2). Clicking on the IP column in the grid should redirect me to a webpage with the IP address as a URL. Is this feature available in grid? Sharing a code snipper is more appreciable. Thank you.

 

 

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @SKannapiran ,

 

Yes, We can achieve in the grid, Please try with below suggestions:

  • Create 2 Hyperlink Basetype columns in output of your datashape & add the URL Link based on each IP Columns for each row on your requirement in the service itself
  • In Mashup Grid > Navigate to Configure Grids > (HyperLink1) Column Render and update the Link Format as New/Replace and HyperLink Text Source as Dynamic based Dependent Field(String) you can choose your IP1/IP2 which needs to display in UI grid
  • Repeat the above step for the 2nd HyperLink2 column.

Arun_C_1-1693563189130.png

& In Front end output

Arun_C_2-1693563220185.png

Thanks & Regards,

Arun C

View solution in original post

3 REPLIES 3

Hi @SKannapiran ,

 

Yes, We can achieve in the grid, Please try with below suggestions:

  • Create 2 Hyperlink Basetype columns in output of your datashape & add the URL Link based on each IP Columns for each row on your requirement in the service itself
  • In Mashup Grid > Navigate to Configure Grids > (HyperLink1) Column Render and update the Link Format as New/Replace and HyperLink Text Source as Dynamic based Dependent Field(String) you can choose your IP1/IP2 which needs to display in UI grid
  • Repeat the above step for the 2nd HyperLink2 column.

Arun_C_1-1693563189130.png

& In Front end output

Arun_C_2-1693563220185.png

Thanks & Regards,

Arun C

Hi Arun,

 

After implementing your solution, on clicking the HyperLink column, it is taking us to a new web browser with the URL

http://<<thingworx URL>>/IP address. But we need the URL to be framed like http://IP Address.

Hi @SKannapiran ,

 

Have you verified the URL which you have formed in your service infotable, because based on that URL link it will directly navigate to that window.

 

Sample Code:

Arun_C_0-1694521772335.png

Till you have any queries means please explain us more and if possible share your code here for better understanding.

 

Thanks & Regards,

Arun C

Top Tags