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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

How I can show selected properties in a Line Chart Widget (Mashup)

alcubierre
10-Marble

How I can show selected properties in a Line Chart Widget (Mashup)

I'm getting all properties from a Thing in a mashup.

How I can get rid of one of them (FaultCode for example)?

 

alcubierre_0-1674324767884.png

 

alcubierre_1-1674324796123.pngalcubierre_2-1674324808786.png

 

 

 

ACCEPTED SOLUTION

Accepted Solutions
jensc
17-Peridot
(To:alcubierre)

Hello,

 

One way you could do this would be to create your own service and filter out your data in there.

 

Regards,

Jens

View solution in original post

3 REPLIES 3
jensc
17-Peridot
(To:alcubierre)

Hello,

 

One way you could do this would be to create your own service and filter out your data in there.

 

Regards,

Jens

I have accomplished following your suggestion and works,,,, but I suspect that should be a shorter way.......

 

var modelProperties = Resources['InfoTableFunctions'].CreateInfoTable({infoTavleName: "modelProperties"});

modelProperties.AddField({name: "name", baseType: "STRING"});

modelProperties.AddField({name: "description", baseType: "STRING"});

modelProperties.AddRow({name: "PreheatTemperature"});

 

var data = me.QueryNamedPropertyHistory({

    propertyNames: modelProperties,

    maxItems: 1000

});

 

result = data.ToJSON();

 

or this one:

 

let data = me.QueryNumberPropertyHistory({
"propertyName": "PreheatTemperature"
});

data.RemoveField("id");

result = data.ToJSON();


});

result = data.ToJSON();

jensc
17-Peridot
(To:alcubierre)

Hello,

 

I haven't really used these "QueryNamedPropertyHistory" and"QueryNumberPropertyHistory" services.

But if the services work, then that should be fine!

 

Regards,

Jens

Announcements


Top Tags