Skip to main content
February 17, 2017
Question

How to dynamically add details for each individual entries in the list??

  • February 17, 2017
  • 1 reply
  • 2462 views

javascript:;Hi all!

thingtemplate.png

This is the mashup I have created for underlying database. when I click on blog, within the same panel near to that list widget I want to display the details of blog.

similarly for database , generic thing and also for further added templates in database dynamically.

How could I do this one??

Please enlighten me!!

1 reply

1-Visitor
February 17, 2017

Bavithraa,

  • You could use the SelectedRowsChanged event of the List to update the display value in a Thing
    1. In Mashup read the required value from Selected Row(s) of the service which feeds the list widget and link to the Property of the Thing to be updated
    2. Invoke the Update service on SelectedRowsChanged event of the service which feeds the list widget
  • For Example
    1. If Data Table is used to show data in the list widget using GetDataTableEntries service and Id property selected
    2. SetProperties service is used to set the property
    3. Select value of list using the Id property of Selected Row(s) of GetDataTableEntries service and link it to the property of the thing to updated in the SetProperties service
    4. Invoke the SetProperties service on SelectedRowsChanged event of GetDataTableEntries service
  • For more information please see the Data Service Events section of ThingWorx help center Guide
February 20, 2017

how to get the SelectedRowsChanged event ??

1-Visitor
March 2, 2017

Hi Bavithraa,

If you select the service in datasource then you can find the selectedrowschanged event. hope below image will helpfull.