cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

Patching an option set works on desktop but not on mobile

Using the below formula in desktop PowerApps the 'Type of Logger' field in the data source (CDS) is updated with the relevant option set value (it is selected on a dropdown elsewhere in the app).

 

However, when publishing and using the app on mobile the Patch works but the option set value for 'Type of Logger' does not update in the datasource with any information and no clue as to why this is.

 

Any ideas? Thanks.

 

Patch(
'Logger Deployments',
Defaults('Logger Deployments'),
{
Address: Address,
'Date Deployed': DateDeployed,
'Type of Logger': ssplc_typeoflogger.Value
}
);

4 REPLIES 4
Helper II
Helper II

I have also tried the following: 

 

'Type of Logger': LookUp(Choices('TW Types of Logger'), Value = ssplc_typeoflogger.Value).Value,

 

Again: works on desktop, not on mobile.

Now I've tried patching it directly with a value instead of using logic/filtering:

 

'Type of Logger': 'TW Types of Logger'.Forensic,

 

Once again: works on desktop, not on mobile.

Community Support
Community Support

Hi @chris61 ,

 

Do you want to patch option set field to CDS?

 

I have made a test both on PC and mobile, and both of them can be patched successfully.

My formula:

Patch(Accounts,Gallery1.Selected,{TestOption:'TestOption (Accounts)'.'2'})

PCPCMobileMobile

So it seems to be not easy to reproduce your issue, could you create a new option set field, and have a try again to check if your issue is gone?

Best regards,

Sik

 

Thank you for your reply. Having conducted further testing what I'm finding is that the option set updates when it is triggered using an OnSelect event of a button, however, it does not work using OnTimerEnd on a Timer. Why would this be?

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (12,834)