Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Question about the session page stack
Question about the session page stack [message #1172] Mon, 26 November 2007 12:39 Go to next message
allspiritseve is currently offline  allspiritseve
Messages: 2
Registered: November 2007
Junior Member
Is the session page stack deleted every time a menu task is requested? According to the article about back button blues, the menu script should look for itself in the stack, not find it, and redirect to the last page in the stack, but I know this isn't what happens.

Thanks,

Cory
Re: Question about the session page stack [message #1173 is a reply to message #1172] Mon, 26 November 2007 18:50 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
What makes you say that you know that it doesn't happen? Do you have any examples? Have you stepped through with your debugger to see the code in action?

Re: Question about the session page stack [message #1174 is a reply to message #1173] Tue, 27 November 2007 05:29 Go to previous messageGo to next message
allspiritseve is currently offline  allspiritseve
Messages: 2
Registered: November 2007
Junior Member
Just that it wouldn't make sense. If you click on another menu task, you'd expect to be taken to that menu task, not the last page in the task. I'm just wondering how the page stack works.

Thanks,

Cory
Re: Question about the session page stack [message #1175 is a reply to message #1174] Tue, 27 November 2007 06:21 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
What do you mean by "you'd expect to be taken to that menu task, not the last page in the task"?

When you select a task of type 'menu' all it does is change the menu buttons. There is no concept of 'pages' with menus.

Take a look at http://www.tonymarston.net/php-mysql/dialog-types.html#menu- bar


Re: Question about the session page stack [message #2143 is a reply to message #1175] Sun, 21 June 2009 09:58 Go to previous message
AJM is currently offline  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
It is possible that by "If you click on another menu task you'd expect to be taken to that menu task, not the last page in the task" that you mean a task which is selected from a menu button, and not a task which is a menu.

If this is the case then there is a reason why, when returning to such a task, that it displays the same page that it last displayed instead of reverting back to the first page. This is because of the Keep Data on Exit switch which is available on the Update Task record. If this is set to 'Yes' then the task's state will be preserved in the session data so that it can be restored when the task is next selected. If this is set to 'No' then the task's state will be lost, which means that when the task is next selected it will start from an initial state.


Previous Topic: System Shutdown Times
Next Topic: LIST2 Pattern Problem
Goto Forum:
  


Current Time: Wed Apr 24 13:29:42 EDT 2024

Total time taken to generate the page: 0.01012 seconds