NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd on January 30, 2013, 11:02:31 PM

Title: Pass date variable to progress make
Post by: terryd on January 30, 2013, 11:02:31 PM
Using Web72 Progress example (7.04)
I'm trying to pass a date value from The StartProcess Form to the ProcessMakePage Source
Steps
Add a local variable Long FromDate to the StartProcessForm
Add a local variable Long FromDate to the ProcessMakePage Source
Add Fromdate as a date entry field to StartProcess File tab (see image 1.jpg)
In ProcessmakeFile
Add a line   FromDate = p_web.GetValue('FromDate') after end of progressbar initialisation in ProcessCode Embed
and   p_web._trace('FromDate ' & FromDate) just below
compile
run
Then select the date as (say) 1 January 2013
The result in the trace is 1  (see image 2.jpg)

Is there a method to receive the Clarion date rather that the day of the month, or should I be receiving the Clarion date and this is a bug?

[attachment deleted by admin]
Title: Re: Pass date variable to progress make
Post by: Bruce on February 01, 2013, 12:57:30 AM
perhaps you can post your modified example so I can duplicate it here?

cheers
Bruce
Title: Re: Pass date variable to progress make
Post by: terryd on February 01, 2013, 01:58:52 AM
A pleasure. File attached

[attachment deleted by admin]
Title: Re: Pass date variable to progress make
Post by: Bruce on February 01, 2013, 02:24:56 AM
perhaps more of a hint than an answer.

In ProcessMakeFile change your Trace statement to read;

  p_web._trace('FromDate ' & FromDate & ' GSV=' &p_web.GSV('FromDate') & ' V=' & p_web.GetValue('FromDate') )

I think that will be enough for you to progress.

cheers
Bruce