cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

UpdateContext Doesn't Work on Mobile

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))

1 REPLY 1
Anonymous
Not applicable

Re: UpdateContext Doesn't Work on Mobile

Those smiley faces are the : P without spaces

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,163)