Skip to main content
10-Marble
June 8, 2016
Solved

Show all visible properties for multiple things

  • June 8, 2016
  • 1 reply
  • 3514 views

I want to show a grid of all the properties on my things but I want to dynamically change the columns shown depending on the visibility of the property to the calling user.

eg A battery operated Fan Thing has properties

rpm

setting

chargingStatus

percentRemaining

batteryVoltage

Engineer has access to all properties, and thus a grid will show all properties for each thing. They see all Things

Building manager does not have technical information (rpm and batteryVoltage) these will be missing from the grid. They see all Things

User can only see the same properties as the building manager but only for their device.

I know that I can retrieve a list of the visible properties on an individual thing using GetPropertyValuesAsMultiRowTable but want the visible data for all Things

Thanks

Best answer by CarlesColl

You will have to build you own service which returns columns depending on visibility.

1 reply

1-Visitor
June 8, 2016

You will have to build you own service which returns columns depending on visibility.

nadams110-MarbleAuthor
10-Marble
June 8, 2016

I had a feeling that would be the case,

Thanks

22-Sapphire I
June 9, 2016

Also don't forget Visibility settings.

You could btw create two mashups and use the same service. What that means though is that all the properties still go to the Client, however only the items you want to display are displayed.

That's NOT full fledged securing the information and I'm not sure if that is harmful or not. It would depend on your use case and the information in the payload if that is acceptable.