How I can show selected properties in a Line Chart Widget (Mashup)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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)?
Solved! Go to Solution.
- Labels:
-
Design
-
Mashup-Widget
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
One way you could do this would be to create your own service and filter out your data in there.
Regards,
Jens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
One way you could do this would be to create your own service and filter out your data in there.
Regards,
Jens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
I haven't really used these "QueryNamedPropertyHistory" and"QueryNumberPropertyHistory" services.
But if the services work, then that should be fine!
Regards,
Jens
