I have a datawindow where I'm using the setfilter() function after I retrieve the rows.
I situation is as follows:
When the window is first opened it retrieves the rows based on default parameters. If the user wants to change the result set, there are options to change the parameters for the datawindow retrieve on the window. Once the user changes the parameters, the user clicks on a button that will re-retrieve the data based on the new parameters. The code behind the retrieve is as follows:
1. retrieve the data
2. for each row retrieved, I calculate a value and do a setitem for a field on each row.
3. call the setfilter() and filter() functions for the datawindow.
The first time the user clicks on the 'retrieve' button on the window, everything works fine. Rows are retrieved and the proper filter is executed.
However, if the user clicks on the retrieve a second time, without changing any of the parameters, the retrieve() function returns 0(zero) rows.
Why would this happen? I don't understand why no rows would get returned.
Keith
I situation is as follows:
When the window is first opened it retrieves the rows based on default parameters. If the user wants to change the result set, there are options to change the parameters for the datawindow retrieve on the window. Once the user changes the parameters, the user clicks on a button that will re-retrieve the data based on the new parameters. The code behind the retrieve is as follows:
1. retrieve the data
2. for each row retrieved, I calculate a value and do a setitem for a field on each row.
3. call the setfilter() and filter() functions for the datawindow.
The first time the user clicks on the 'retrieve' button on the window, everything works fine. Rows are retrieved and the proper filter is executed.
However, if the user clicks on the retrieve a second time, without changing any of the parameters, the retrieve() function returns 0(zero) rows.
Why would this happen? I don't understand why no rows would get returned.
Keith