Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hello,
I want to display some information about all properties of a thing in a DataGrid in Vuforia Studio.
I need the name, the description (of definitions) and the value. It should look something like this:
NAME VALUE DESCRIPTION
name1 value1 descr1
name2 value2 descr2
... ... ...
Displaying the names and descriptions in a DataGrid worked fine by using the service "GetPropertyDefinitions", drag and drop "All items" to the Data field and choose the columns I need.
But I cannot find any solution to fill the column of values the same way. Do you have any idea?
Solved! Go to Solution.
Hi @Felix01 ,
The Repeater widget might work well in this case.
The data grid might be able to do this assuming some code crafted the infotable to look like the above with the fields (name, value, description). Might be cool to have a thingworx service to return a datashape like that, then it would be easy to use in the data-grid.
Hope this helps!
Hi @Felix01 ,
One way to get the values of a Thing in a DataGrid widget is by using the GetPropertyValues service of ThingWorx.
Hi @ytella ,
I have already tried that, but it did not lead to the desired result, because I need the values in the row of each property of the Thing.
When I do it like your suggestion, the grids format looks like this:
property1 prop2 prop3 ...
value1 value2 value3 ...
But the way I need them to be displayed is like this, because I want to display the values of all properties of a Thing with some additional information from the descriptions of each property:
prop1 value1 decription1
prop2 value2 decription2
prop3 value3 decription3
... ...
Is there any way to show all these information in one DataGrid in a format like this?
Hi @Felix01 ,
The Repeater widget might work well in this case.
The data grid might be able to do this assuming some code crafted the infotable to look like the above with the fields (name, value, description). Might be cool to have a thingworx service to return a datashape like that, then it would be easy to use in the data-grid.
Hope this helps!
Hello Felix01,
If @ytella, response has answered your question, please mark it as an Accepted Solution for the benefit of others who may have the same question in the future.
Thank you for your contributions to the PTC Community.
Abarki