Skip to main content
1-Visitor
May 23, 2018
Solved

It's possible hidden o remove generic properties?

Hi Community!

 

I'm creating an application for tank measurement, then I'm generating a CSV file with data from a Thing with service GetPropertiesValues, Is there any way to hidden the generic properties and only binding my properties?

 

Thanks in advance!

PaiChungAnswer
22-Sapphire I
May 23, 2018

Ok it ate my code example it seems to not like javascript in this field

but you just create a new service on your Thing

call GetPropertyValues from that service

use RemoveField to drop columns

set your output to result

also you should create a DataShape to match what you want to put out.

3 replies

22-Sapphire I
May 23, 2018

Create a wrapper service that removes the fields (or assign to a datashape that doesn't have the fields)

Translate
1-Visitor
May 23, 2018

Could you please give any example how to do the wrapper service?

Translate
PaiChung22-Sapphire IAnswer
22-Sapphire I
May 23, 2018

Ok it ate my code example it seems to not like javascript in this field

but you just create a new service on your Thing

call GetPropertyValues from that service

use RemoveField to drop columns

set your output to result

also you should create a DataShape to match what you want to put out.

Translate