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))
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...
And a screen shot of the values written to the SharePoint list...
Thanks in advance.
N03L
FYI,. SelectedText was deprecated and should not be used.
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.
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.
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.
If you are referencing the values from the SP list, do another refresh after the patch occurs?
Following your patch, capture the two values (Desk and Parking space) in two Set() functions, then use the global variables on your success screen.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.