Skip to main content
1-Visitor
March 18, 2016
Solved

Things into a List Widget

  • March 18, 2016
  • 3 replies
  • 4671 views

There's a very simple tutorial for creating a List based on the Things that depend on a certain ThingTemplate.

Thingworx Fundamentals 101 -- How To Use a List Widget - YouTube

which I found through here: http://support.ptc.com/cs/help/thingworx_hc/thingworx_6.0_hc/index.jspx?id=thingworx01&action=show

The video makes sense but is not working for me, I've tried thinking of everything that could make this not work, so just to let you know where I am at:

My ThingTemplate has 4 Things that are dependent on it.

Inside the Mashup: For the Data of the Template I use 'GetImplementedThings' service to drag 'All Data' onto the List. The 'parameters' tab for 'GetImplementedThings' is empty, not sure if that matters.

I chose the 'Display Field' property of the List as 'Name' , so it shouldn't just appear as blanks.

I'm just looking for any other requirements I may be missing to make a List work. Otherwise i've followed the steps of that video but only ever get a blank list.

Best answer by preddy-2

Hi,

Are you invoking 'GetImplementedThings'  service on mashup load?

If not, you can try of doing that. That can be done while adding the service. (You need set the check box)

With B/R,

Praveen.B

3 replies

preddy-21-VisitorAnswer
1-Visitor
March 19, 2016

Hi,

Are you invoking 'GetImplementedThings'  service on mashup load?

If not, you can try of doing that. That can be done while adding the service. (You need set the check box)

With B/R,

Praveen.B

22-Sapphire I
March 21, 2016

As a best practice I always recommend using a wrapped service, since (unless you have visibility defined) allowing a user to run this service will potentially allow them to retrieve more information then they should. (A very extreme case would be setting Max Retrieved to 1000000 if there were that many entities available)

There are a few exceptions to this, like the ValueStreamQueries which only run in the context of a Thing

22-Sapphire I
March 21, 2016

Do you have an event to execute the service to actually bring in the data?

16-Pearl
July 21, 2022

Hello @leisel @PaiChung 

 

 

Please can you make this video available for me? : Thingworx Fundamentals 101 -- How To Use a List Widget - YouTube

I need my service to output a list of things depending on the input (The name of a template). E.g, if input == "Template1" then the output of the service should be all the thing names inside of Template1. 

 

Many thanks.

22-Sapphire I
July 21, 2022

I do not have ownership over these. I am uncertain though if those are up to date anymore either.

From what you are mentioning, you may have to add a filter to your service that returns the items for the list.

16-Pearl
July 21, 2022

Thank for your response @PaiChung 

 

My service returns the list. However, the problem I am now facing is getting the list widget to display the service output.

What I have already tried: Setting the Value and display field  widget properties to: "Name".

Pulled "All data" from my uncategorised service on the mashup.

Yet I still have a red block displayed on the list widget.

 

What else I am missing?

Many thanks.