Well, I have been given the wonderful task of creating a simple report generator using Visual FoxPro 7.0. The endusers who will be using this are very unsophisticated so we tried to make everything as easy to use as possible (we created all of the views (remote, based on SQL Server database) for them, did all of the required linking, created test reports for them, created selection criteria generator for them, etc). The problem we are having now is whenever a report has gruping put on it it doesn't work the way I thought grouping was supposed to work. For example
given grouping on id:
id childid
1 1
1 2
2 1
1 3
I would have 3 "groupings" -- 1 for the first 2 ids of 1, 1 for the id of 2, and another group for the last id of 1. I want the grouping to have been only 2 groups -- all of the 1's in one and the 2 in the other
I think this is because of an ordering problem, but I'm not sure how to fix it. I thought of trying to have code in the report (or its dataenvironment) to detect what groupings are on the report and modify the view to order by it but I don't know how to do this either. Any help at all would be greatly appreciated.
Thanks,
Kevin
given grouping on id:
id childid
1 1
1 2
2 1
1 3
I would have 3 "groupings" -- 1 for the first 2 ids of 1, 1 for the id of 2, and another group for the last id of 1. I want the grouping to have been only 2 groups -- all of the 1's in one and the 2 in the other
I think this is because of an ordering problem, but I'm not sure how to fix it. I thought of trying to have code in the report (or its dataenvironment) to detect what groupings are on the report and modify the view to order by it but I don't know how to do this either. Any help at all would be greatly appreciated.
Thanks,
Kevin