NetTalk Central

Author Topic: Processes with Progress Bar  (Read 3534 times)

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Processes with Progress Bar
« on: December 05, 2013, 09:22:27 AM »
Hi All,

I have a Memory WebForm that has a start and end date selection with a progress bar.
I also have a button that calls the source procedure that runs a process.

Questions;

1,) If the process takes an half an hour will the webpage set to a 15 minute expiration time, time out?

2.) If the user moves to another web page will this cause any problems?
     Seems the progress bar starts were it left off, is this correct?

3.) How would you stop the process if they clicked the "Start" button and realized they selected the wrong dates?
    Cancel Button to tell the process through p_web to stop by setting a session value?

Regards

Ashley

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Processes with Progress Bar
« Reply #1 on: December 05, 2013, 11:47:41 PM »
Hi Ashley,

>> 1) If the process takes an half an hour will the [session] set to a 15 minute expiration time, time out?

No. The client page is refreshing the progress bar, and by doing that acts to keep the session alive. ie the progress-bar-update-request from the browser acts to restart the session timeout countdown.

>> 2.) If the user moves to another web page will this cause any problems?

depends a bit on what you mean. Assuming you mean "in that tab, they lose interest in the process, and move on" then no that won't cause problems. The process will carry on running. (Although it does open the door to the session timing out because the progress update requests will stop.)

>>     Seems the progress bar starts were it left off, is this correct?

not really. but not 100% sure what you mean. Usually the variable is reset to 0 when you click the Start button.

>> 3.) How would you stop the process if they clicked the "Start" button and realized they selected the wrong dates?
>>   Cancel Button to tell the process through p_web to stop by setting a session value?

yeah, something like that. Set some sort of session value on "Cancel" and then in the source procedure keep an eye on the session value, and just terminate the source procedure.

Cheers
Bruce


astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Re: Processes with Progress Bar
« Reply #2 on: December 06, 2013, 05:15:29 AM »
Hi Bruce,

Thanks thats what I needed to know.


Ashley

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Re: Processes with Progress Bar
« Reply #3 on: December 10, 2013, 06:41:29 PM »
Hi Bruce,

Is there a way for one to warn the user that they are about to start the process and that it cannot be reversed? They would either continue or cancel if they were not sure.


Ashley

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Processes with Progress Bar
« Reply #4 on: December 10, 2013, 09:37:56 PM »
Hi Ashley,

I guess the obvious approach is to move the START button onto another form - then call the new form from the button on the existing form.

cheers
Bruce

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Re: Processes with Progress Bar
« Reply #5 on: December 11, 2013, 03:56:49 AM »
Hi Bruce,

Now why did I not think of that. Duh!!!

Thanks a bunch!


Ashley