Setting an autosearch parameter that is a date
Hello
This is what I see in the part of my request.content
&newsearch=T&asg0f0se=1&asg0f0sa=&asg0f0eb=1&asg0f1se=2003-3-1-0-0-0&asg0f1s
a=&asg0f1eb=4%2F1%2F2003&asg0f2se=2003-11-31-0-0-0&asg0f2sa=&asg0f2eb=12%2F3
1%2F2003
my autosearch paramater criteria is something like ID = 1 and Date1 >=
4/1/2003 and Date2 <= 12/31/2003
When setting a date on an autosearch parameter like Date <= 12/31/2003 why
does the asg0f2se get set to
2003-11-31-0-0-0 and the asg0f2eb get set to 12%2F31%2F2003. The report
works but I don't know why the asg0f2se is set to a month prior? Also, what
is the asg0f2eb for?
thanks
Ian
This is what I see in the part of my request.content
&newsearch=T&asg0f0se=1&asg0f0sa=&asg0f0eb=1&asg0f1se=2003-3-1-0-0-0&asg0f1s
a=&asg0f1eb=4%2F1%2F2003&asg0f2se=2003-11-31-0-0-0&asg0f2sa=&asg0f2eb=12%2F3
1%2F2003
my autosearch paramater criteria is something like ID = 1 and Date1 >=
4/1/2003 and Date2 <= 12/31/2003
When setting a date on an autosearch parameter like Date <= 12/31/2003 why
does the asg0f2se get set to
2003-11-31-0-0-0 and the asg0f2eb get set to 12%2F31%2F2003. The report
works but I don't know why the asg0f2se is set to a month prior? Also, what
is the asg0f2eb for?
thanks
Ian
This discussion has been closed.
Comments
The JavaScript used within the search page is using the JavaScript Date
object which maps months starting at 0. When the Delphi code on the WebTier
receives the request, it converts the 2003-11-31-0-0-0 to a valid TDateTime.
It handles adding 1 to the specified month.
The asg0f2eb parameter is the text that was entered into the edit box. This
is used to initialize the edit boxes on the autosearch dialog the next time
the user presses the search button to display the dialog.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com