CodeChargenewbie
Posts: 114
|
| Posted: 09/07/2007, 7:45 AM |
|
Is there a relatively simple way to create dynamic grid boxes based on search criteria without using back-end code?
Let's say I have a search box with 2 fields called Field A and Field B. If I enter data into Field A, the grid box will list results in columns 1, 2, 3, 4, and 5. If I enter data into Field B, the grid box will list results in columns 1, 2, and 3. I don't wish to make two seperate grid boxes to accomplish this feat.
Also, the grid box shows all the tabulated data, 10 rows per page. What I'd like is when the page loads, i see the search box with the 2 whitebox fields (again, called A and B, respectively) and below that is the grid box, which serves as the results of the search. I don't want the grid box to list any data before I search. Is there a certain way to accomplish this in CodeCharge?
Thank you very much.
|
 |
 |
wkempees
|
| Posted: 09/10/2007, 4:48 AM |
|
The first one as far as I understand, can be achieved by testing the valus
og FieldB and hiding the appropriate grid column panels.
The second is easy, amend the default values of the Grids SQL in such a way
that the result is 0 rows.
For instance:
If the field in the grids VQB Where part is s_FieldA and it is a numeric set
the default to be -1
This one is discussed in the Forum many times.
Walter
|
|
|
 |
|