>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