Hi,
i am launching the component from main component(closing current window and launching new one with new components URL). but since we are closing the current window so onUnload() event is trigered and we have set its value to 60 seconds in custom App.xml but since new component is a "FORM" so if user takes more than 60 seconds to save the form. timeout occurs.but we want to avoid it.
why we are not incresing the timeout time in app.xml: since if user directly closes the window, timeout should occur after 60 seconds.
our requirment: but from menu bar if user launches the component it should be overridden(http session timeout)
what i think: when user launch component(open new window and closes current one). i am adding the attribute to SessionState but when we close the window onUnload() method is triggered from top frame so when i get this attribute in the top frame it is always null. i think thi is because top frame jsp object is created before adding this attribute to session so we are getting null. if i get the value here i can make if else condition here..
| <script> |
|
|
| function onUnload() |
| { var launchCom="<%=SessionState.getAttribute(launch_component)%>"; alert("value is "+launchCom) |
| promptIfUnsavedChangesExist(); |
| manageTimeout(frames["timeoutcontrol"]); |
| } |
| </script> |
please suggest me some solution about this approach or suggest me any other approch for the above problem.
Thank you,
Ujjwal