I have this code on a button in a gallery:
Navigate(
scrBrowseQuotes,
Transition.None
)
Then on the scrBrowseQuotes screen, I make reference to the selected item several times, for example, this is in the header for the screen:
"Quotes for " & galItemSelection.Selected.ItemNumberVersion & " " & galItemSelection.Selected.ItemDescription1 & " (" & galItemSelection.Selected.DisplayType & ")"
It always works in development, but in production it will occasionally be empty, returning just "Quotes for ()".
And the other controls on the screen are empty or blank.
I know the gallery item was selected because the button in the gallery wouldn't have transitioned the user to the new screen otherwise. The only fix for the user is to hit BACK then select the button by the item in the gallery again, which always works the 2nd time.
This isn't a browser issue - I've seen it fail in the exact same browser in production vs development, where it never fails.
I can redo the screens to work around this by setting a global variable in the gallery button to carry the item's name, then populate that way vs using gallery.Selected.blahblah, but didn't want to if that isn't ideal. Plus, I'll have to create several variables to capture all of the data I need.
Any ideas on why this happens?