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

Submit Form: Update property issue

[Update property of the datacards]

I have a form with several datacards containing Date + Hours fields.

The update property of each datacard contains the following condition:

 

If(fieldNameChange = false, "",DateValue82.SelectedDate + Time(Value(HourValue82.Selected.Value),Value(MinuteValue82.Selected.Value),0))

 

where the "fieldNameChange" is a variable that is set to true when the user inputs data in the datacard.

 

[Issue]

The system works perfectly when I am testing it in PowerApps studio: if the user didn't input data in the datacard, the field is empty in the database.

 

However, when I do the same thing on my iPhone, the field is not empty in the database and it is filled with default values (current date and 00:00 for the time). I have an iPhone 8 with the latest version of PowerApps

 

Why is everything working correctly in PowerApps studio but not on my phone?

2 ACCEPTED SOLUTIONS

Accepted Solutions
WarrenBelz
Super User III
Super User III

Hi @alexlrca ,

I have a number of apps using iPhones and iPads with dates and times, but have not had conditional updates.

I am suspecting the "" is causing the issue - the following might be worth a try

 

If(
   fieldNameChange,
   DateValue82.SelectedDate + 
   Time(
      Value(
         HourValue82.Selected.Value
      ),
      Value(
         MinuteValue82.Selected.Value
      ),
      0
   )
)

 

simply, if the value is not true, do not write anything.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Hi @alexlrca ,

Very strange indeed.

Just for interest (this does not solve your problem), try removing the update properties entirely and see if you get anything written back on the iPhone.

The other thing you might try is Patching it back with the same logic. This may give a more robust control over the process.

Happy to assist your efforts further if required.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

3 REPLIES 3
WarrenBelz
Super User III
Super User III

Hi @alexlrca ,

I have a number of apps using iPhones and iPads with dates and times, but have not had conditional updates.

I am suspecting the "" is causing the issue - the following might be worth a try

 

If(
   fieldNameChange,
   DateValue82.SelectedDate + 
   Time(
      Value(
         HourValue82.Selected.Value
      ),
      Value(
         MinuteValue82.Selected.Value
      ),
      0
   )
)

 

simply, if the value is not true, do not write anything.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Hi @WarrenBelz ,

 

I've just tried what you suggested, but the problem is still there..

 

Seems very strange that everything works fine on my laptop with PowerApps studio, but not on my iPhone. 

It is as if the condition is satisfied in PowerApps Studio, but not on mobile. In addition, I tried to open the app in web browser, and the problem also appears.

 

I've written some debugging text in each datacard to check if the condition was met.. and it actually is. I really don't understand what is going wrong 

Hi @alexlrca ,

Very strange indeed.

Just for interest (this does not solve your problem), try removing the update properties entirely and see if you get anything written back on the iPhone.

The other thing you might try is Patching it back with the same logic. This may give a more robust control over the process.

Happy to assist your efforts further if required.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,640)