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 / Setting global variabl...
Power Apps
Unanswered

Setting global variable does not update on secondary screen while using mobile, but works perfectly fine on pc?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey guys!
I'm currently experiencing a weird issue with my app.
as of right now, I have 2 screens

HomeScreen
ViewItemScreen

I have built a custom component to create a fade in pop up animation for a barcode scanner with two buttons, scan and confirm.
The component have an output property that's called .scanID which basically saves the scanned barcode.

Afterwards on the "OnHidden" property of the HomeScreen im doing:
Set(itemSerialNumber, BarcodeScannerComponent.scanID);

Then on the "OnVisible" of the viewItemScreen im doing:
Set(scannedItemRow, LookUp(WInventoryList, SerialNumber = itemSerialNumber));
To present it on the form.

Now for some insanely weird reason, the Global Variable itemSerialNumber won't update on mobile, but will do on pc without any issues!
I tried using a label to test and see when exactly the variable "goes missing", and it always updates on the first screen, but it does not exist on the secondary screen (did isBlank for testing).
But on pc it works perfectly fine and I have no idea why!

Anyone ran into it?
Thanks!!

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

    Sometimes, if you are getting a different behavior on another device, the problem is that either you not have published the app on the developers device or if you have published it, the second device has not been updated to the latest version. Please check the versions on both devices.  Other than that, I don't have an explanation. 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard