Using this blog post I've managed to store user names as global variables in ArcPad. The next step is to use those variables in form 'controls' aka form fields.
Per the author's comments under his original quote I've attempted to go this route:
- If you are writing the value to a field that is linked to a control on the form, set the control value: pForm.Pages("PAGE1").Controls("EMPLOYEE").Value = Application.UserProperties("LoggedInEmployee")
Unfortunately I'm not getting anything written into the field when I open the form (this is an onLoad event handling script). I'm not getting an error message at this point, and the value in the control box is changing from to being totally empty.
I have managed to 'echo' or 'alert' back the user-name with Application.MessageBox Application.UserProperties("LoggedInEmployee") associated with an onUnload event, so I know that it's stored properly.
Any Ideas?
