I’m building a small app. It lists Customers (returned from my process in a DataTable) inside a Custom List control. All is good, data displays fine.
Inside each item template in the Custom List, I want a button, “View Orders”. Clicking on it, opens a new page, that should then get orders for that particular customer.
Could someone (@evan.cohen perhaps) direct me to documentation describing this, or even better, just tell me how. I’m going nuts over it.
I have tried all kinds of s***, assigning values to an App Variable and then using that in the Orders page, but it always passes values for all items in the list, not just the item whose “Orders” button I clicked.
Hi @jjes,
I did it by adding a rule to the button on which you click. The rule is set values. So on top, you set the argument of your receiving process, and below you can give the button a specific value.
The process in the background has a switch, which then outputs the list based on the specific value of the button.
Example below:
In_Particular_Customer
Value: Amazon
I have tried that, but when I click the button and get to the “target” page, my App Variable contains not just the Customer ID, but all the fields from the record that the button was tied to.
Hi @jjes,
oh ok, maybe I didn’t understand the use case completely. Sadly, I am not allowed to share our files. But I can try to explain it in more detail. Hence, we can make sure that we try to do the same.
We have several companies where we want to get data from. Each of these companies has an own button “add a new employee”. So that is why I can assign the companies ID directly to the button and it works well. I didn’t use app variables but an IN_Argument from the process and the ID is hardcoded into set values.
What I don’t understand either is why you get more data. Maybe you have a different field from which you can set values? Our member for example have to log-in into our app, which we can exploit.
Well, to give the simplest possible example, here is what I did:
Created a process in UiPath Studio that returns a DataTable object. Published the process and added it to my App.
Created a Table display control in my App, and set the Data Source to be the returned Data Table. I also data bound three columns: OrderId, CustomerId and OrderDate.
Created a rule for the Value Changed event on the table. In the rule, I show a simple message, and in the message, I want to display the OrderID for the selected row in the table.
As you can see in the screenshot, it ALMOST works, except the message shows ALL the fields for the selected row - not just the OrderID.
In my actual, real-world App, I want to pass that OrderId to another page, to show all details for that order. But for now, just getting JUST the OrderId inside a rule will be fine.
I honestly believe I have tried everything, but without success. Any ideas? @PeCour@evan.cohen
Hi, I hope you need to pass one column value from a selected cell of a table to different screen/variable. To achieve this, App variable can be used.
Create a Set value rule on Value change of Table. Inside the rule, bind the App variable to Table.ColumnName . This App variable can be bound to Textbox in other page.
Attaching a sample screenshot below: