CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Params in Updatable Grid Form

Print topic Send  topic

Author Message
Tony Tomov
Posted: 01/25/2002, 7:48 AM

Using the example of updatetable
Grid I pass
a parameter to that form - by example my_date parameter from
other Page.
After submitting a form, I see all the records and
not the records that I have previosly selected
with this parameter.
How to preserve a my_date parameter so that after submitting
a form I can see the same record set.
Any help?
I use PHP with templates
Tony
Ken Hardwick
Posted: 01/25/2002, 8:37 AM

With ASP, I would use session variables...
Tony
Posted: 01/25/2002, 11:33 AM

Yes,

It is possible, but I have four parameters,
that are depending an the life data from db,
which is difficult to have session variable.
By Exmple the date - must I have 365 session variables?

:-)))
Tony
Nicole
Posted: 01/26/2002, 1:48 AM

Tony,
you don't need to create 365 session variables. I suppose one is enough. Put date value to session variable in e.g. Page Open event of the page with updateable grid form. The code would be like:
if (get_param("my_date") != "")
set_session("my_date", get_param("my_date"));

Don't add it as Input parameter for any form. Now session var value is available on any page and form.
Tony
Posted: 01/27/2002, 2:41 AM

Nicole and Ken,
Thank you. It works.
One additional comment.
The name of the session variable must be not equall on
those from the select statment. In this case this does not work.
By example if I have field from_date the session variable must
have diffrent name.

Again Thank you :-))))

Tony

   


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

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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