stephenk
|
Posted: 09/25/2003, 9:44 AM |
|
I am trying to dynamically change my where clause in a grid form
On other pages I managed to modify it in two ways
(before execute select event.)
If the first didnt work the second did:
1)
<code>
Global $gridname;
$gridname->ds->Where = "new clause";
</code>
2)
<code>
Global $pagename;
$pagename->gridname->ds->Where = "new clause";
</code>
I now have a page in which neither works
Please help me
|
|
|
Karen
|
Posted: 09/25/2003, 9:40 PM |
|
Try the first option in the Before Build Select event. Just an idea and hope it works.
-Karen
|
|
|
stephenk
|
Posted: 09/26/2003, 12:20 AM |
|
I solved the problem by having a bogus where clause in the datasource.
-The clause must have a default value
-If it doesn't it seems that the property is never initialised
Thanks Karen for helping
|
|
|
|