I have read some stuff on the forums about using session variables in javascript but they all pertain to putting the javascript in the pages source code rather than using a tabbed UI's setting for "Javascript on startup". I am trying to use a session variable in the latter example in order to open certain tabs based on the page the user is coming from (as in the page they are coming from as a session variables value set). I know the value is being set properly because I can display it in the header of the tabbed UI but I am wanting to use the value to open specific tabs (as stated before). So here are a couple of ideas I had..
1) The easiest to me would be to put a hidden textbox or label with the default value set to the session variable value and then using the .getValue() method to utilize this value in the "javascript on startup" in order to open certain tabs. However I don't see a way of putting a textbox or label into a tabbedUI?
2) Thought there might be a way to open tabs using xbasic in a server-side event but this doesn't seem possible as the only events deal with login?
3) I tried to insert an IF/ELSE statement into the tabbedUI's xbasic around the property for autoLaunchOnStartup for the specific tab I wanted to open but it seems this xbasic isn't able to be customized (as my changes seemed to be overwritten as soon as I saved)?
So any ideas on how I can dynamically open certain tabs on startup based on either a session variable or some other way? (Other than duplicating the tabbedUI and having two copies that are used depending on where the user is coming from as this seems very robust).
Thanks
1) The easiest to me would be to put a hidden textbox or label with the default value set to the session variable value and then using the .getValue() method to utilize this value in the "javascript on startup" in order to open certain tabs. However I don't see a way of putting a textbox or label into a tabbedUI?
2) Thought there might be a way to open tabs using xbasic in a server-side event but this doesn't seem possible as the only events deal with login?
3) I tried to insert an IF/ELSE statement into the tabbedUI's xbasic around the property for autoLaunchOnStartup for the specific tab I wanted to open but it seems this xbasic isn't able to be customized (as my changes seemed to be overwritten as soon as I saved)?
So any ideas on how I can dynamically open certain tabs on startup based on either a session variable or some other way? (Other than duplicating the tabbedUI and having two copies that are used depending on where the user is coming from as this seems very robust).
Thanks
Comment