admin管理员组

文章数量:1122846

I have a PowerApps application that has several screens. One of the screens has a gallery called Gallery5 which lets the user select between the following options:

Scheduled meeting Registered Send offer Offer sent

The element that the user selected on this screen should change the value of a Dropdown element on another screen. I tried implementing a solution, but it doesn't work.

My suggested solution is to set the DropdownValue on the screen with the Gallery5 element to what the user selected and then set the default value of the Dropdown2 element to DropdownValue. This is the code that I currently have:

Setting DropdownValue

Setting the default value for the Dropdown2 element

I was expecting that the Dropdown2 element should have its value set to DropdownValue (what the user selected on the first screen). Instead the dropdown appears to be blank.

The line Set(DropdownValue; Gallery5.Selected.Value) should declare and initialize a variable that stores the selected element in Gallery5, and I expect this to be accessible in the screen with the Dropdown2 element (I have a slight suspicion that the variable isn't accessible on both screens)

I have a PowerApps application that has several screens. One of the screens has a gallery called Gallery5 which lets the user select between the following options:

Scheduled meeting Registered Send offer Offer sent

The element that the user selected on this screen should change the value of a Dropdown element on another screen. I tried implementing a solution, but it doesn't work.

My suggested solution is to set the DropdownValue on the screen with the Gallery5 element to what the user selected and then set the default value of the Dropdown2 element to DropdownValue. This is the code that I currently have:

Setting DropdownValue

Setting the default value for the Dropdown2 element

I was expecting that the Dropdown2 element should have its value set to DropdownValue (what the user selected on the first screen). Instead the dropdown appears to be blank.

The line Set(DropdownValue; Gallery5.Selected.Value) should declare and initialize a variable that stores the selected element in Gallery5, and I expect this to be accessible in the screen with the Dropdown2 element (I have a slight suspicion that the variable isn't accessible on both screens)

Share Improve this question asked yesterday AdmirAdmir 12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I suspect you have another line of code setting the DropdownValue, perhaps on the Oversikt screen. Try updating your OnSelect so that the Navigate line is at the end and not at the start.

本文标签: