Hi All,
I'm receiving an error message when trying to reference a Context Variable on a screen within my app.
The Context Variable is being set as part of the "OnVisible" property within screenSuccess.
UpdateContext({ctxtReqID: frmNewRequest.LastSubmit.ID})
Pretty straightforward. The referenced form (frmNewRequest) is on the previous screen. Once submitted, the user is navigated to screenSuccess. Thus, the idea is to simply set ctxtReqID to the ID # of the request (BTW, this is being submitted to a SharePoint List).
At the top of screenSuccess is a header component; the HeaderText property has the following:
"Request #" & ctxtReqID & " has been submitted!"
However, the app is displaying an error message which states:
"Name isn't valid; 'ctxtReqID' isn't recognized"
If I update the HeaderText property to the following, it works fine:
"Request #" & frmNewRequest.LastSubmit.ID & " has been submitted!"
Obviously, there's no reason I couldn't simply use this instead of setting/referencing a Context Variable, but I'm still a bit mystified on why it wouldn't work through a Context Variable since it's being set (or, should be) to that same exact property of the Last Submit ID.