Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Hi all,
I want to use the dropdown selection as an input to other widget,
1) Dropdown list is one column of the InfoTable, I want to use the dropdown list selection as input to show corresponding another row text in the InfoTable? I watch the video tutorial: Thingworx Mashup Exercise 08 Create a Mashup to View and Modify the information in the SQL Database - YouTube, but how to create a similar service still no idea to me.
2) Dropdown list selection as a input to an image path. How can I do this?
Thanks!
Solved! Go to Solution.
For the thing which you want to do, you just need to use the same service (consider service 'A') which is acting as a input to the dropdown widget, Now write a new service 'B' which has the logic to get data(in your case Address)Give output of service 'A' Selected Row as a input to service 'B' and in same logic get data from that key(Dropdown selected Building Name).
Ok. Maybe I see imagelink as a service output here.
Hi Tiantian Guo do you want to give dropdown list selection as input to other service or to widget ? if so then give you just need to go to the same service and need to select output of selected row output and bind it to the next widget. i suppose this is what you want.
Hi pravin pradhan, take a example, the dropdown list is the building name.
I select the dropdown building name as an input.
Then in the text label, there will show building address from the building name.
ps. the building name and the building address are in the same database..
How I can achieve this?
For the thing which you want to do, you just need to use the same service (consider service 'A') which is acting as a input to the dropdown widget, Now write a new service 'B' which has the logic to get data(in your case Address)Give output of service 'A' Selected Row as a input to service 'B' and in same logic get data from that key(Dropdown selected Building Name).
Done! Thank you!
Hi, you can also retrieve the data of building name and address in the same service, bind it to List widget (View: Dropdown) with DisplayField is "name". Then you can bind from your service / Returned data / Selected Row(s) / address --> Label widget.