timauld
Posts: 5
|
| Posted: 10/14/2005, 12:30 PM |
|
In a recent application I was building, I think I have found a bug in the Navigators in version 2.3. I'm just wondering if anyone has a good suggestion to get around it. The scenario is as follows.
I built a normal grid application with a search feature comprising a number of different search criteria.
1. I entered something in the first search param text box, pressed Search and the application returned four pages of data. I'm able to move Next and Previous through the four pages.
2. I go to the third page, then change something in the search criteria and press Search again. The application should now display just one page of data, but it displays nothing as if it found nothing for this new search criteria.
3. I notice that while it is displaying nothing for the new search criteria, the First and Next links down the bottom are active. When I press "First" the single page of data that I was expecting is displayed.
Question: Can anyone tell me how I can reset the Navigator pagination when changing the search criteria and doing a new search?
|
 |
 |
Walter Kempees
|
| Posted: 10/14/2005, 4:21 PM |
|
Generate another search/grid just be able to look at the code, but this time
click the "Advanced" button when on the "Search"tab.
Have a look at the generated source and go from there.
Because your search parameters are probably not clear properly OR your SQL
does not COUNT() properly.
Search the forum for COUNT
Walt
"timauld" <timauld@forum.codecharge> schreef in bericht
news:64350074b96e2d@news.codecharge.com...
> In a recent application I was building, I think I have found a bug in the
> Navigators in version 2.3. I'm just wondering if anyone has a good
> suggestion
> to get around it. The scenario is as follows.
>
> I built a normal grid application with a search feature comprising a
> number of
> different search criteria.
>
> 1. I entered something in the first search param text box, pressed Search
> and
> the application returned four pages of data. I'm able to move Next and
> Previous through the four pages.
>
> 2. I go to the third page, then change something in the search criteria
> and
> press Search again. The application should now display just one page of
> data,
> but it displays nothing as if it found nothing for this new search
> criteria.
>
> 3. I notice that while it is displaying nothing for the new search
> criteria,
> the First and Next links down the bottom are active. When I press "First"
> the
> single page of data that I was expecting is displayed.
>
> Question: Can anyone tell me how I can reset the Navigator pagination when
> changing the search criteria and doing a new search?
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Edd
Posts: 547
|
| Posted: 10/15/2005, 9:27 PM |
|
The problem probably lies in the Page Number from Navigation.
I aways add a hidden field to my search criteria which contains the navigational page number name and always set the value to 1. This way when you press search you get Page 1 as you should.
Edd
_________________
Accepting and instigating change are life's challenges.
http://www.syntech.com.au |
 |
 |
Walter Kempees
|
| Posted: 10/16/2005, 7:12 AM |
|
clever, nice, thanks Edd
Walter
"Edd" <Edd@forum.codecharge> schreef in bericht
news:64351d6aae7f42@news.codecharge.com...
> The problem probably lies in the Page Number from Navigation.
>
> I aways add a hidden field to my search criteria which contains the
> navigational page number name and always set the value to 1. This way when
> you
> press search you get Page 1 as you should.
>
> Edd
> _________________
> a simple idea....
> www.syntech.com.au
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|