Hi,
I'm working on a UX with a few List controls. The UX will ultimately be used in a disconnected mobile app using Phonegap. I want to use the DynamicConnection feature of Alpha Anywhere whereby a session variable named session.__protected__[ConnName] is set to the connection string to use for the session. Subsequent uses of a connection named DynamicConnection_[ConnName] use the value in the session variable. I've got this working fine in a standard web app built with Alpha Anywhere.
My questions:
1. What is best practice for setting a session variable to be used in a mobile app? Can it be done? i have not been able to find definitive information or examples about setting and using session variables on the client side in a disconnected mobile app. There is a method {dialog.object}.getSessionVariable('VARNAME') but it's not clear to me how one would use the value retrieved to, for example, filter a List so that only records that match the logged-in user's username are returned. It's clear that one can use a session variable, in the form session.VARNAME, to filter a List query, but how to use the value returned by {dialog.object}.getSessionVariable('VARNAME')?
2. Since it depends on finding an appropriately named session variable, does the DynamicConnection feature work for a mobile app (using Phonegap)? Has anyone done this kind of thing successfully?
For now I'm just going forward with a trial-and-error approach. If anyone has insight to share on this I would sure appreciate reading it.
Thanks.
I'm working on a UX with a few List controls. The UX will ultimately be used in a disconnected mobile app using Phonegap. I want to use the DynamicConnection feature of Alpha Anywhere whereby a session variable named session.__protected__[ConnName] is set to the connection string to use for the session. Subsequent uses of a connection named DynamicConnection_[ConnName] use the value in the session variable. I've got this working fine in a standard web app built with Alpha Anywhere.
My questions:
1. What is best practice for setting a session variable to be used in a mobile app? Can it be done? i have not been able to find definitive information or examples about setting and using session variables on the client side in a disconnected mobile app. There is a method {dialog.object}.getSessionVariable('VARNAME') but it's not clear to me how one would use the value retrieved to, for example, filter a List so that only records that match the logged-in user's username are returned. It's clear that one can use a session variable, in the form session.VARNAME, to filter a List query, but how to use the value returned by {dialog.object}.getSessionVariable('VARNAME')?
2. Since it depends on finding an appropriately named session variable, does the DynamicConnection feature work for a mobile app (using Phonegap)? Has anyone done this kind of thing successfully?
For now I'm just going forward with a trial-and-error approach. If anyone has insight to share on this I would sure appreciate reading it.
Thanks.
Comment