Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hello. every body.
I have a question.
I am doing mashup design.
First. Entry Picker widget.
Second. Button widget
Third. DynamicThings thing.
Fourth. Grid widget
Fifth. QueryPropertyHistory Action.
and then I want show Data from selected entry picker.
But I can't see result.
I want to see the results from dynamically things.
Could you help me.
Get service results from Dynamic Thing, you should use ThingTemplate as data source, and Enable Dynamic selection.
Thank you.
But My problem is not solved.
I can mashup design (Thing+ grid+ querypropertyhistory).
But I can't make [Ting list (dynamic select from entry picker) + girid + querypropertyhistory)]
Then you need to customize a service, Thingname is the service input that receives the entity name.
// result: INFOTABLE dataShape: ""
var result = Things["Thingname"].QueryPropertyHistory({
oldestFirst: undefined /* BOOLEAN */,
maxItems: undefined /* NUMBER */,
endDate: undefined /* DATETIME */,
query: undefined /* QUERY */,
startDate: undefined /* DATETIME */
});
Where and how do I create a service?
Create a service in any Thing that works for you, and then add this service through mashup data source. It's the most basic tasks in Thingworx.
Thank you very much.
I certainly understood.
But I can't run it . how can i set query parameter.
oldestFirst: undefined /* BOOLEAN */,
maxItems: undefined /* NUMBER */,
endDate: undefined /* DATETIME */,
query: undefined /* QUERY */,
startDate: undefined /* DATETIME */
The query is a filter, if you don't need to manipulate the property history, you can leave it blank, just have a string input and a infotable output.
Ok I see.
Last Question.
How to link out property.
Now I set out property is datatype INFOTABLE.
I don't know out put datatype.
leave the datashape blank, and bind the service output to the Grid.