CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Setting cookies

Print topic Send  topic

Author Message
lquental

Posts: 15
Posted: 10/28/2004, 8:46 AM

Hi,

I have a problem with a listbox of a record form that diplays values from a table, and a
condition from the query that is used on the list box is read from a cookie.
The problem is I only can set that cookie when the page is loaded (need do read a paremeter passed on the URL and convert it to a cookie) and I tried putting the code on BeforeShow, On Initialize view but it seems to be to late because the query of the listbox is already built.

Any ideas how to do this the right way?

Regards,

Luis
View profile  Send private message
mrachow


Posts: 509
Posted: 10/28/2004, 2:32 PM

Yes your are right. The filling of the listboxes seems to be tied to the initialization of a pages variable, controls aso. I added a wish for having an earlier event already.

Is it possible for you to start with an empty listbox and submit the page after you have read your cooky?

Regards,
Michael
_________________
Best regards,
Michael
View profile  Send private message
lquental

Posts: 15
Posted: 10/29/2004, 2:36 AM

Hi Michael,

After a lot of struggling I finally got it.
This is the way I've done it:

On the code generated by CCS on the function clsRecord"FormName"
before bulding the listbox SQL I saved the cookie with the parameter value and the I assigned it to the default value of the SQL parameter, and it all seems to work now.

Regards,

Luis
View profile  Send private message

Add new topic Subscribe to topic   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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