Skip to main content
Jun 28, 2019 5:46 PM UTC
Solved

Getting property names in a list

Hello guys,

 

I have the following scenario: A Thing Template with 10 properties, Things that use this Thing Template and a Mashup that I want to show first the list of Things that use this Thing Template (I used the service GetImplementingThings) and I want to show the Selected Row(s) 10 property names that I created in a list that the user can choose. Is there a service already for this or do I have to create one?

 

Thank you.

tscurAnswer
Jul 1, 2019 3:03 PM UTC

Got it! Used categories to show only the ones I wanted.

 

Thank you!

3 replies

Jun 28, 2019 9:23 PM UTC

You can use GetPropertyDefinitions, or GetPropertyValues

tscurAuthor
Jul 1, 2019 12:32 PM UTC

Thanks for aswering @PaiChung !

 

Yes, that worked, but is there a way to "hide" some of the properties (such as description, isPersistent...)?

 

Regards,

Taciano

tscurAuthorAnswer
Jul 1, 2019 3:03 PM UTC

Got it! Used categories to show only the ones I wanted.

 

Thank you!