cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Service outputs binding

AP_9587236
17-Peridot

Service outputs binding

What is the difference between breakups of All datas of service and breakups of Selected rows of service (in returned data).?? Sometimes it is accepting All Datas breakups for values for textboxes/labels, sometimes selected rows breakups values are passing to the inputs of other services.
What should be binded to what ? Anyone can give me the clarity of its usages.

1 REPLY 1
TonyZhang
15-Moonstone
(To:AP_9587236)

Hi,

 

Pretty much as the name suggests, All Data means all data of the output whereas selected rows returns only selected row of the output.

 

Suppose you have a service return below infotable as output.

 

ID      Name       Location

1        Mike         London

2        Allen         Sydney

 

If you expand All Data and bind Name to a Grid. You will get:

 

Name

Mike

Allen

 

If you bind All Data to a Grid. The Grid will display exactly All Data:

 

ID      Name       Location

1        Mike         London

2        Allen         Sydney

 

If you enable row selection for the grid and the first row is selected by user.

ID      Name       Location

1        Mike         London

2        Allen         Sydney

If you bind Selected Rows > Name to a textbox.

That textbox will display Mike since the first row is selected.

If the user selects the second row in single selected mode (the first row is deselected),

ID      Name       Location

1        Mike         London

2        Allen         Sydney

the textbox automatically switches display to Allen since the selected row is changed and the Name data becomes Allen instead of Mike.

 

Hope that clarifies.

Tony
Announcements


Top Tags