I want to use view navigation in my app, but I also want a Logout button. So I'm trying to create a view which uses an OnLoad script to redirect to my login page, effectively logging the user out.
I created my view and went into the Events tab of the View properties, then selected the OnLoad event from the dropdown, and typed this script code into the script text area:
Upon losing focus, the Events tab apparently tries to compile the script, but I get this error message:
"Unhandled exception has occured in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, th application will close immediately. Access to the path 'C:\Program Files (x86)\Verivo Software\Application Studio\be0f88e9-73ee-4aa8-9945-05188414e276.lua' is denied."
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\Verivo Software\Application Studio\be0f88e9-73ee-4aa8-9945-05188414e276.lua' is denied.
at PyxisMobile.BusinessObjects.EventScript.SetAndCompileScript(String script)
at PyxisMobile.AppStudioUserInterface.ViewBuilder.ViewEventsController.ScriptTextChanged(String text)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at DevExpress.XtraEditors.BaseEdit.OnLeave(EventArgs e)
Any ideas what is causing this?