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 / UpdateContext Doesn't ...
Power Apps
Unanswered

UpdateContext Doesn't Work on Mobile

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I have a caluclator page that switches between imperial and metric units based on a dropdown selection at the top of the page. When the units are switched I have the inputs automatically convert to between metric and imperial through the use of an updatecontext function that references it's own text input. It works in the desktop app but doesnt work on mobile (the numbers don't convert and the output wont calculate. Here is the code I use for the OnChange for the drop down menu at the top:

 

If(Units.Selected.Value="Imperial",UpdateContext({FluidDensityInput:FluidDensityInput*0.0083454}) And UpdateContext({JetNozzleInput:JetNozzleInput*0.393701}) And UpdateContext({PressureDifferentialInput: PressureDifferentialInput*0.00689476}),UpdateContext({FluidDensityInput:FluidDensityInput*119.826}) And UpdateContext({JetNozzleInput:JetNozzleInput*2.54}) And UpdateContext({PressureDifferentialInput: PressureDifferentialInput*145.038}))

 

The calculation for the final output is as follows:

 

If(Units.Selected.Value="Metric",Round(60*DischargeCoefficientInput*(JetNozzleInput/100)^2*NumberofNozzles*Pi()
/4*Sqrt((2*PressureDifferentialInput*10^6)/(FluidDensityInput*(1-(4*JetNozzleInput/3.81)^4))),3),Round(60*DischargeCoefficientInput*(JetNozzleInput)^2*NumberofNozzles*Pi()/4*Sqrt((2*PressureDifferentialInput)/(FluidDensityInput*231*(1-(4*JetNozzleInput/1.5)^4))),3))

Capture.PNG
Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Those smiley faces are the : P without spaces

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 413

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
timl Profile Picture

timl 315 Super User 2026 Season 1

Last 30 days Overall leaderboard