I need some help. I have a desktop application that is working, and I am trying to develop a web interface for it. It will operate as both a desktop and web interface. My problem I am having is that I can not seem to get the logged in user information to follow the different dialog/pages. I am using the A5 security component for the login. My DB has a user select an event and if they wish, sign up for that event. It consists of 4 tables, person (personal info), event(events available), linktable(log of people to events), signups(additional info-optional). I have got it to where I can pull up the selected event info, but I can not seem to get the user info. I was able to get it to display the user after the login on the event selection page but when I get to the event details dialog, I loose the user info. It is at the event details part that the signup would take place or not.
So some things I have tried were to put the userid into a session variable. session.userid = a5ws_getcurrentuser() When I try to read the variable on the dialog window, it either comes up blank or undefined. I know this is kinda vague to describe. If I can have someone help me with trying to keep the logged is user info follow all the pages/dialogs that may be opened. From what I have searched, this should work. I also tried to set it as a e._state variable with no luck.
So here is how the DB works:
user logs in and is presented with a list of events
user selects event and gets details about the event
If user decides it is something they want to participate in, they click a sign up button
button performs table update and/or prompts for additional info (signup) - linktable creates a new record with event id, userid, signupid(optional)
if user not interested can return to event list
user returned to event list
So I need to be able to retrieve the current user per session to log the signup properly but like I said, I seem to be doing something wrong where it seems I loose the info.
The desktop version works correctly, and has no issues. I am still learning javascript and xbasic and how to design this web interface. I managed to do some on my own with researching topics on the message board here. I am just completely stumped on this one issue. I can post the whole DB if that helps.
So some things I have tried were to put the userid into a session variable. session.userid = a5ws_getcurrentuser() When I try to read the variable on the dialog window, it either comes up blank or undefined. I know this is kinda vague to describe. If I can have someone help me with trying to keep the logged is user info follow all the pages/dialogs that may be opened. From what I have searched, this should work. I also tried to set it as a e._state variable with no luck.
So here is how the DB works:
user logs in and is presented with a list of events
user selects event and gets details about the event
If user decides it is something they want to participate in, they click a sign up button
button performs table update and/or prompts for additional info (signup) - linktable creates a new record with event id, userid, signupid(optional)
if user not interested can return to event list
user returned to event list
So I need to be able to retrieve the current user per session to log the signup properly but like I said, I seem to be doing something wrong where it seems I loose the info.
The desktop version works correctly, and has no issues. I am still learning javascript and xbasic and how to design this web interface. I managed to do some on my own with researching topics on the message board here. I am just completely stumped on this one issue. I can post the whole DB if that helps.
Comment