I have 4 identical screen for each company. Each screen has a drop down box with company name. If the company name is selected it takes me to that company screen. I want to update the drop down box to the same screen. How can i acheive this?
On each of the combo boxes i have the following code on the on change :
Switch(
drpCompanyName1.SelectedText.Value,
"TBL",
drpCompanyName1.SelectedText.Value = "1";Navigate('Approve on hold invoices (1)'),
"TBG",
drpCompanyName2.SelectedText.Value = "2";Navigate('Approve on hold invoices (2)'),
"TMK",
drpCompanyName3.SelectedText.Value = "3";Navigate('Approve on hold invoices (3)'),
"TBS",
drpCompanyName4.SelectedText.Value = "4";Navigate('Approve on hold invoices (4)')
)
The drop down items are :
["1","2","3","4"]
The above code does't work. if i have just the navigate, it works fine. How do i get the text of the screen i am navigating to drop down box to match the screen that was last selected?
Switch(
drpCompanyName1.SelectedText.Value,
"TBL",
Navigate('Approve on hold invoices (1)'),
"TBG",
Navigate('Approve on hold invoices (2)'),
"TMK",
Navigate('Approve on hold invoices (3)'),
"TBS",
Navigate('Approve on hold invoices (4)')
)
Solved! Go to Solution.
Try this instead:
Switch(
drpCompanyName1.SelectedText.Value,
"TBL",
Set(varScreenNumber,"1");Navigate('Approve on hold invoices (1)'),
"TBG",
Set(varScreenNumber,"2");Navigate('Approve on hold invoices (2)'),
"TMK",
Set(varScreenNumber,"3");Navigate('Approve on hold invoices (3)'),
"TBS",
Set(varScreenNumber,"4");Navigate('Approve on hold invoices (4)')
)
Then put this in the Default property of the dropdown on each screen:
varScreenNumber
Hope that helps,
Bryan
Try this instead:
Switch(
drpCompanyName1.SelectedText.Value,
"TBL",
Set(varScreenNumber,"1");Navigate('Approve on hold invoices (1)'),
"TBG",
Set(varScreenNumber,"2");Navigate('Approve on hold invoices (2)'),
"TMK",
Set(varScreenNumber,"3");Navigate('Approve on hold invoices (3)'),
"TBS",
Set(varScreenNumber,"4");Navigate('Approve on hold invoices (4)')
)
Then put this in the Default property of the dropdown on each screen:
varScreenNumber
Hope that helps,
Bryan
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
177 | |
52 | |
41 | |
36 | |
27 |
User | Count |
---|---|
243 | |
81 | |
71 | |
69 | |
66 |