CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 How to modify search parameter

Print topic Send  topic

Author Message
Rene
Posted: 12/12/2003, 7:26 AM

I have a search form with a field "WkDate". What I am trying to accomplish
is:
After the users selects a date (any date) and clicks on the Search button, I
want to modify the date to force it to the Monday date of that week. I
inserted the formula in the Server On Click Event:
WkDate = WkDate-Weekday( WkDate,2)+1
But I get a "Not defined variable" for WkDate. I am using ASP 3.0

Any help?
p.s. I am rookie in ASP/Vbscript
Rene
--

Rene Bravo
Director General
Itera - development process
Tel.(+52) 55 5281-7670
Fax(+52) 55 5280-8962
http://www.itera.com.mx

DonB
Posted: 12/12/2003, 12:03 PM

I would just accept the value and perform the calculate in the datasource
(wherever the search form sends you to retreive data). The validate event
will not result in the date field being updated in the search form (at least
I don't think it will). So just accept that value and process it before you
query the database.

You could put in some javascript (such as the onclick event of your Search
button) and set the value in the text box that way if you really need to. I
try to avoid scripting the browser side because you never know - they might
have it disabled.

--
DonB

http://www.gotodon.com/ccbth


"Rene" <rbravoz@yahoo.com> wrote in message
news:brcmnf$3jh$1@news.codecharge.com...
> I have a search form with a field "WkDate". What I am trying to accomplish
> is:
> After the users selects a date (any date) and clicks on the Search button,
I
> want to modify the date to force it to the Monday date of that week. I
> inserted the formula in the Server On Click Event:
> WkDate = WkDate-Weekday( WkDate,2)+1
> But I get a "Not defined variable" for WkDate. I am using ASP 3.0
>
> Any help?
> p.s. I am rookie in ASP/Vbscript
> Rene
> --
>
> Rene Bravo
> Director General
> Itera - development process
> Tel.(+52) 55 5281-7670
> Fax(+52) 55 5280-8962
> http://www.itera.com.mx
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.