cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

NAN when used in the mashup grid widget with GetPropertyValuesAsMultiRowTable.

sbt
15-Moonstone
15-Moonstone

NAN when used in the mashup grid widget with GetPropertyValuesAsMultiRowTable.

Hello ,

I have a thing template, where i have written a service to get the property value in the MultiRowTable format using "GetPropertyValuesAsMultiRowTable" and used Query to filter out certain properties.

I have thing which uses this template, when i run the service in the composer from the Thing i see the values coming in.

But when i use the same service in the mashup i see the value NAN.

Note: i have used dynamic thing template and passed the thing name to the EntityName.

Not sure what am i missing.

 

Thanks

Sunay

ACCEPTED SOLUTION

Accepted Solutions
mnarang
17-Peridot
(To:sbt)

That's great if it worked out ,can you please accept the solution and mark it as correct
Thanks 

View solution in original post

3 REPLIES 3
mnarang
17-Peridot
(To:sbt)

Hello,

 

Instead of directly using the generic ThingTemplate service "GetPropertyValuesAsMultiRowTable",create your own service in ThingTemplate with any name and in the code use the same service like this - 

// result: INFOTABLE dataShape: "undefined"
var result = me.GetPropertyValuesAsMultiRowTable();

 

This service will result an infotable as output of the service ,create a data shape having fields matching your output of "GetPropertyValuesAsMultiRowTable" .So basically now we have a custom service containing the same functionality as you are doing directly with an infotable output .Use this service in mashup as you were doing before (dynamic and on mashup load if you want ) .After this map the output of this service to a grid and pass the entity name as thing name .You will see values there .Do let me know if this is not clear .

sbt
15-Moonstone
15-Moonstone
(To:mnarang)

Yes i have created my own service and used "GetPropertyValuesAsMultiRowTable" inside the service.

I got the solution, the reason was the value column datatype was wrong.

Thanks

mnarang
17-Peridot
(To:sbt)

That's great if it worked out ,can you please accept the solution and mark it as correct
Thanks 

Announcements


Top Tags