I searched the forum but can't seem to find any discussions that touch on this problem.
I can't tell if the behavior in A5v7 is normal or not. I am unable to complete more than three query/sort operations, one on top of the other, using buttons on a form with an embedded browse. Let me explain:
I created a set with two tables - Transhist-----CUSTOMERS
I have about five indexes, Trans_Num, Cust_Num, Make, Brand, Model
I created a form with an embedded browse.
I start with the form showing all records in the set, sorted by Trans_Num. There are about 5371 records.
I want to narrow the list of records down by sorting on any of several category fields.
I created several controls on the form that, when clicked, will run a saved query/sort. I created the query's using the "Button" control and the query genie and have each one set to run the query on top of the current query, if one exists.
This works fine for about three or four button clicks and then I get an error and can't go any further. For instance:
Start with full 5371 records. Click on "Limit by Date" button, enter two dates for the range, and then the query shows only the records withing the date range. Lets say there are now only 3000 records selected. Next, click on "Limit by Brand" and enter a brand code. The query runs and narrows the selection to only the brand I typed in, choosing only from the 3000 records in the current query. The result is now down to 1000 records. Next, click on "Limit to service calls" and the sort narrows the list down to 300 records. Next, I click on "Remove Gas Appliances" and I will get an error. This last button was the fourth search in a row. It doesn't seem to matter in what order I select the sort buttons. The first three seem to always work fine, the fourth gets an error.
This leads me to believe the form only supports three of these types of buttons in a row. Not sure why. Maybe I have to use Xbasic to go deeper than three or four nested sorts?
Is there a way to run more than three or four nested querys/filters using form controls?
Thanks,
Sean Kennedy
weekend a5 developer
I can't tell if the behavior in A5v7 is normal or not. I am unable to complete more than three query/sort operations, one on top of the other, using buttons on a form with an embedded browse. Let me explain:
I created a set with two tables - Transhist-----CUSTOMERS
I have about five indexes, Trans_Num, Cust_Num, Make, Brand, Model
I created a form with an embedded browse.
I start with the form showing all records in the set, sorted by Trans_Num. There are about 5371 records.
I want to narrow the list of records down by sorting on any of several category fields.
I created several controls on the form that, when clicked, will run a saved query/sort. I created the query's using the "Button" control and the query genie and have each one set to run the query on top of the current query, if one exists.
This works fine for about three or four button clicks and then I get an error and can't go any further. For instance:
Start with full 5371 records. Click on "Limit by Date" button, enter two dates for the range, and then the query shows only the records withing the date range. Lets say there are now only 3000 records selected. Next, click on "Limit by Brand" and enter a brand code. The query runs and narrows the selection to only the brand I typed in, choosing only from the 3000 records in the current query. The result is now down to 1000 records. Next, click on "Limit to service calls" and the sort narrows the list down to 300 records. Next, I click on "Remove Gas Appliances" and I will get an error. This last button was the fourth search in a row. It doesn't seem to matter in what order I select the sort buttons. The first three seem to always work fine, the fourth gets an error.
This leads me to believe the form only supports three of these types of buttons in a row. Not sure why. Maybe I have to use Xbasic to go deeper than three or four nested sorts?
Is there a way to run more than three or four nested querys/filters using form controls?
Thanks,
Sean Kennedy
weekend a5 developer
Comment