web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Variable Setting Bug?
Power Apps
Answered

Variable Setting Bug?

(0) ShareShare
ReportReport
Posted on by 98

I seem to be having an issue passing a set variable between items on different screens. Here are the steps that produce my issue (with pics):

  1. I have a link in a menu on one screen (Tab 3 below) that, when selected, will navigate to another screen (Tab 1 below) with a gallery, and select the item from Tab 3 in that gallery; the gallery is an SP list and the linked item below is an item in that list. The intent is the user clicks the link and doesn't have to search or scroll for it in the gallery on Tab 1.

Variable passing issue step 1Variable passing issue step 1

I have the following code for the OnSelect of that particular value, "L-454" in this case:

Set(QSelectValue,LocalValue.Text);...several additional actions...;Navigate(Tab1Scrn)

2. Tab 1 shows this:

Variable passing issue step 2Variable passing issue step 2

Note the random floating label (for process verification) about the middle whose Text value is set to:

QSelectValue

It made the most sense to pass the QSelectValue to the search box above the list on the left so that when the search box is cleared, the user can still search for labor values from my SP list. I've set the search box's Default value to:

If(QSelectValue="","",QSelectValue)

I have the Clear value of the search box set to true.

3. At this point, when I hit the clear button of the search box, I get my SP list (as expected):

Variable passing issue step 3Variable passing issue step 3

4. Now, when I go back to the Sites tab (Tab 3 above) and click on the same "L-454" label, I get the screenshot above. It is not passing the QSelectValue to the search box, no matter how many times I go back and click on "L-454". However, if I click on a site in the Sites tab (tab 3 above) that has a different "L-" label, the QSelectValue passes through to the search box as expected. What am I doing wrong?

Categories:
I have the same question (0)
  • Verified answer
    cweaver Profile Picture
    98 on at

    For anyone who has run into a similar problem, I seemed to have solved my issue by adding in the following code to the OnHidden property of Tab 1:

     

    If(QSelectValue<>""&&Tab1SearchBox.Text="",Set(QSelectValue,""))

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard