Hi,
I need some pointers on how to create a mixed query while switching indexes on the fly. Let me explain.
The user searches the deedroom documents table for all documents that contains the words "red oak tree". That returns a cursor that contains 5 records. When switching from record to record we are navigating the returned cursor in a normal way. Lets say the 5 records looks like this:
1. Deed book 25 page 212,
2. Deed book 88 page 30,
3. Lease book 112 page 66,
4. Mortgage book 241 page 355,
5. Mortgage book 66 page 489
Note that when navigating the table, the form shows the corresponding images and fields. Nothing special so far.... Now, I need some pointers on how best way to construct this next part.
While viewing the record, we need to view the record that is before and/or after the one we are currently viewing. For example, lets say we are looking at the 3rd item from above, "Lease book 112 page 66" and we need to turn the page (forward or backward) in the book in order to view "Lease book 112 page 65 (going backwards), or page 67 (going forward).
The form has 2 set of buttons that controls this action. The first set includes First, Prev, Next, and Last and navigates the cursor that was returned that matched the users query. The 2nd set has nothing to do with the the returned cursor above, instead it only looks at the page that is currently being shown. It includes 2 buttons named "Prev Page" and "Next Page" and when clicked, it displays the page beside the current page.
Picture it as holding a book in your hand and looking in the index for an entry of interest, you turn to that page, and now you want to flip backwards a page, or forwards a page. If you click it again, it moves backwards or forwards relative to the current page.
I have been doing this for 12 years now in a VFP app using direct table access and switching indexes. Now I need to do this with SQL and partial record sets and have no way of knowing when the user is going to select the next and prev page options. The native vfp table always had all records available all the time, just switch indexes, and it is lighting fast.
How can I pull this behavior off in SQL? Speed is vital.
Thanks, Stanley
I need some pointers on how to create a mixed query while switching indexes on the fly. Let me explain.
The user searches the deedroom documents table for all documents that contains the words "red oak tree". That returns a cursor that contains 5 records. When switching from record to record we are navigating the returned cursor in a normal way. Lets say the 5 records looks like this:
1. Deed book 25 page 212,
2. Deed book 88 page 30,
3. Lease book 112 page 66,
4. Mortgage book 241 page 355,
5. Mortgage book 66 page 489
Note that when navigating the table, the form shows the corresponding images and fields. Nothing special so far.... Now, I need some pointers on how best way to construct this next part.
While viewing the record, we need to view the record that is before and/or after the one we are currently viewing. For example, lets say we are looking at the 3rd item from above, "Lease book 112 page 66" and we need to turn the page (forward or backward) in the book in order to view "Lease book 112 page 65 (going backwards), or page 67 (going forward).
The form has 2 set of buttons that controls this action. The first set includes First, Prev, Next, and Last and navigates the cursor that was returned that matched the users query. The 2nd set has nothing to do with the the returned cursor above, instead it only looks at the page that is currently being shown. It includes 2 buttons named "Prev Page" and "Next Page" and when clicked, it displays the page beside the current page.
Picture it as holding a book in your hand and looking in the index for an entry of interest, you turn to that page, and now you want to flip backwards a page, or forwards a page. If you click it again, it moves backwards or forwards relative to the current page.
I have been doing this for 12 years now in a VFP app using direct table access and switching indexes. Now I need to do this with SQL and partial record sets and have no way of knowing when the user is going to select the next and prev page options. The native vfp table always had all records available all the time, just switch indexes, and it is lighting fast.
How can I pull this behavior off in SQL? Speed is vital.
Thanks, Stanley