Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Swapping groups
Message
 
 
To
16/07/2010 15:39:55
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01472740
Message ID:
01472742
Views:
35
>I have a class that calls my reports. I have done this before by having my groups refer to a property in my class. You can either define the group as this.myproperty or eval(this.myproperty).
>
>>Hi everybody,
>>
>>I have a quite complex report with a few groups. I want to change the order of the result in the report which will require swapping the groups.
>>
>>Do you know if there is some trick (hack) around to do it in simple way rather than trying to manually re-arrange the groups?
>>
>>Thanks in advance.

In other words, you're keeping the fields used in the group expression inside this variable, right?

E.g. if you want to group by Department + Category, the myProperty will be 'Department + Category' and group expression (and fields) will be eval(myProperty)?

It's a good idea though it may make this report run slower...

I'm thinking, though, that for this report I'll bite the bullet and re-design manually. We're not using this technique in our reports and I don't want to introduce this new thing into existing reports.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform