App Variables (or some other way of passing value from page to page)

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.

Thanks, I hope :slight_smile:
Jeppe

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

Best regards
image

Hi @PeCour, and thanks for replying :slight_smile:

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.

Do you by any change have a full example? :grimacing:

Again, thanks.
Jeppe

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.
image

Well, to give the simplest possible example, here is what I did:

  1. Created a process in UiPath Studio that returns a DataTable object. Published the process and added it to my App.

  2. 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.

  3. 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? :slight_smile:
@PeCour @evan.cohen

@jjes I get it now but unfortunately I have no ideas. That is beyond my current level :confused: Good Luck!

@PeCour noooooooooo :slight_smile:

I hope some @uipath forum staff or product owners see this. It needs to be possible. :crossed_fingers:

1 Like

@jjes we’re working on enabling this scenario. If you want early access you can join the Private Preview for expressions:

  1. Join the Insider Program at uipath.com/insider
  2. Complete our simple registration form: https://insider.uipath.com/#/index/f2dab708-a5e2-4acb-bba3-c80f52e6cb0a
1 Like

Thank you @evan.cohen :+1:

Hi @evan.cohen - any update on this request? This is a must-have functionality…

@Jrask ,

Stay tune . This is coming very soon.

Thanks,
Arvind

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:
image