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

How to dynamic load thing?

jaiminLee
6-Contributor

How to dynamic load thing?

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.

 

 

9 REPLIES 9

Get service results from Dynamic Thing, you should use ThingTemplate as data source, and Enable Dynamic selection.

jaiminLee
6-Contributor
(To:zyuan1)

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 */
});

jaiminLee
6-Contributor
(To:zyuan1)

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.

 

 

jaiminLee
6-Contributor
(To:zyuan1)

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.

jaiminLee
6-Contributor
(To:zyuan1)

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.

Top Tags