Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Disappearing values!!! ARRRGGG!!!

Posted on by 41

I've been steadily progressing with my Desk Booking app, with the help of @Drrickryp and @cha_cha and everything is working brilliantly, except for one last thing.
The final bug bear is driving me crazy.
The confirmation screen has a pair of Text Labels showing the selected values from the Drop Downs on the previous screen so that when the booking is successfully made and the 'Patch' back to the SharePoint list is complete, the user is shown their selections one last time, along with a nicely worded message and an option to go back and make another booking.
The issue is that the drop downs and date picker are only reset by the OnSelect action on that back button and yet the values presented in the Text Labels appear for a brief second and then disappear. It's as if the selections are reset by the mere change of screen which I'm sure isn't how this works. I've also noticed that it's intermittent. The values almost always disappear but they have stayed present on a few occasions. I can't see any pattern to why they did hold fast those few times but, like I said, more often than not, they either disappear after less than a second or they don't appear at all.
I always end up with the default values from those Lookup lists and not what is actually captured and patched back to the main list as the users selection.

E.G:

Values selected...

"Desk No. 2" and "Parking Space 3".

Values written to the list...

"Desk No. 2" and "Parking Space 3".

Values displayed on the confirmation screen...

"Select..." and "Select..." (The default values for the drop down choices (items at the top of the lookup lists that provide the choices(lowest ID value))

N03L_1-1671563789987.png

Can anyone imagine what might be causing this strange behaviour.
I've checked everything that I can think to check and there's no rhyme or reason to it.

Here's a screen shot of the "Submit" button's ONSELECT, in case it helps...

N03L_0-1671563469323.png

And a screen shot of the values written to the SharePoint list...

N03L_2-1671564279931.png

 

Thanks in advance.

N03L

  • Drrickryp Profile Picture
    Drrickryp 30,510 on at
    Re: Disappearing values!!! ARRRGGG!!!

    @N03L

    FYI,. SelectedText was deprecated and should not be used. 

  • N03L Profile Picture
    N03L 41 on at
    Re: Disappearing values!!! ARRRGGG!!!

    I've just had another instance of one of the variable values being wrong and one being right so there's clearly something a bit odd about this and I might raise it directly with Microsoft, just in case, but I'm still in a much better position now than before.

  • N03L Profile Picture
    N03L 41 on at
    Re: Disappearing values!!! ARRRGGG!!!

    I've just got it working consistently.
    The 'Patch' values for the two drop downs were still set to Selected.Name when I'd updated everything else to Selected.Title and while it doesn't really make any sense, getting those inline with everything else, seems to have made the variables stay set to what they should be.

    Bizarre but true.

    Thanks again @Drrickryp for the suggestion.

  • N03L Profile Picture
    N03L 41 on at
    Re: Disappearing values!!! ARRRGGG!!!

    Thanks, both of you.
    I'm sad to say that neither of those suggestions have worked.
    I've even created a new button, just for testing, that refreshes the list, again and populates the two new variables that I've created and it works perfectly but on the final confirmation screen, the same text labels that show the contents of the variables are reset to their default values.
    I'm at a loss.

  • cwebb365 Profile Picture
    cwebb365 3,309 on at
    Re: Disappearing values!!! ARRRGGG!!!

    If you are referencing the values from the SP list, do another refresh after the patch occurs? 

  • Verified answer
    Drrickryp Profile Picture
    Drrickryp 30,510 on at
    Re: Disappearing values!!! ARRRGGG!!!

    @N03L 

    Following your patch, capture the two values (Desk and Parking space) in two Set() functions, then use the global variables  on your success screen.

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard