Hi All,
I am using the below to pass data between screens.
Set(Item,POTableDes.Selected);Navigate(POScreen,ScreenTransition.Fade)
I have other screens using the same formula(changing the table name), they work fine but for this one it doesn't.
Any ideas?
Thanks in advance
Thank you
Hi @Skybluekid
If you just want to pass a variable to set a text box/label text from multiple screens, I'd suggest that you pass this as a context variable.
Navigate(POScreen,
ScreenTransition.Fade,
{labelText:SummaryTable.Selected.YourTextField}
)
You can then set the text property of your text label to labelText
Thank you, @timl
So how do I pass the variable into the text label, depending on which screen I navigate from?
Hi @Skybluekid
For your purchase order screen, I would just use a different/separate variable (eg ItemPO). That should hopefully solve the problem.
Set(ItemPO,SummaryTable.Selected);
Navigate(POScreen,ScreenTransition.Fade)
Could you provide a detailed summary using the screenshots of the code/screen/view if possible?
By the way, I use the information that is coming in, to filter a Datatable, so if there is a way to pass both variables in to the text lable that I am using that would be the ideal option
Hi @timl
The issue is I have 3 Screens which holds data in Datatables. 2 Screens look at a list called Final Table and the third looks at a list called Purchase Order.
I use Set(Item,SummaryTable.Selected);Navigate(POScreen,ScreenTransition.Fade) to pass data to the PO Screen, which works ok. However, the screen that looks at the Purchase Order list has different column names, so the variable that I have used for the first two screens, will not pick up the information.
Is there a way to pass two variables into one? Or, switch between to variables?
Hope this makes sense.
Can you explain exactly what's not working?
If you navigate to POScreen and look at the variables pane in the editor, can you check that the Item variable has been set?