Hi Rafael;
The DW Control's "Describe()" command does not give you access to either the Group levels or their current Sort criteria (unfortunately) nor are there applicable GetXxxxx() commands for those either. You can get the Table Sorting criteria but not for a group(s).
Suggestion: You can read the DWO Source though at runtime ( ie: .Describe("DataWindow.Syntax") ) into a String variable. From there you can parse out this information as follows:
For example:
- sort="department_dept_name A employee_state A "
- group(level=1 header.height=92 trailer.height=80 by=("department_dept_name" , "employee_state" )
What you are asking for though would (IMHO) make a great enhancement suggestions. Please feel free to create enhancement request Support Tickets for these requirements.
HTH
Regards ... Chris