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
|
 |
 |
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 |
 |
 |
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
|
 |
 |
|