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