NetTalk Central

Author Topic: Progress Bar woes...  (Read 23 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 439
    • View Profile
    • Email
Progress Bar woes...
« on: Today at 07:07:45 AM »
Hi,
Using C11.1 and NT 14.37.
I have a procedure with a javascript timer and I am trying to turn on the progress bar and time it down with my timer.  My timer DOES work correctly but I can't get my progress bar to show up.
On Memform.   I have a progress field with the Equate of: ProgressName with a timer of 3500 and NO Hyperlink creation.
My TimerButton is firing every 2 seconds and I have the ProgressName as a field to be updated with this control.
I create the Progress Bar with:
   
!     ! initialize the progress bar
  loc:ProgressName = p_web.GetValue('_ProgressName_')
  p_web.SetProgress(loc:ProgressName,1,'')

Then, in my Timer button, I have this code:
    if int(p_web.GSV('countervalue')) <= 45 and p_web.GSV('countervalue') <> '-'
         if  int(p_web.GSV('countervalue')) <=1
                p_web.SSV('countervalue','Drawer will close soon..')   
                p_web.SetProgress(loc:ProgressName,100,'' )
         ELSE
               p_web.trace('counter value: ' & p_web.GSV('countervalue'))
                p_web.SSV('countervalue',int(p_web.GSV('countervalue')-2))
                 PercentageComplete = int(p_web.GSV('countervalue')) * 2       ! calculate the percentage complete, using whatever code is applicable to your process
                p_web.SetProgress(loc:ProgressName,PercentageComplete,'') ! set the progress bar to that number.
         end     
     end     

As I said, my timer counts down but progress bar does NOT show up.  What am I missing?
THanks,
Ron

rjolda

  • Sr. Member
  • ****
  • Posts: 439
    • View Profile
    • Email
Re: Progress Bar woes...
« Reply #1 on: Today at 12:28:20 PM »
Hi All,
I was trying too much trickery... going to try to implement a javascript progress bar.  It will operate without server communication for the duration of 45 seconds.  I simply want to keep it contained within the client and not have to hit the server for progress bar updates...
I am sure that I will have questions on implementing the javascript progress bar.
Ron