Lines 77-83
Link Here
|
77 |
private Resource m_resource; |
77 |
private Resource m_resource; |
78 |
private XDatabaseDocumentUI m_documentUI; |
78 |
private XDatabaseDocumentUI m_documentUI; |
79 |
private static final int MAXIMUM_GROUPCOUNT = 4; |
79 |
private static final int MAXIMUM_GROUPCOUNT = 4; |
80 |
private String[] groupNames = null; |
|
|
81 |
|
80 |
|
82 |
private ReportBuilderImplementation(XMultiServiceFactory _serviceFactory) |
81 |
private ReportBuilderImplementation(XMultiServiceFactory _serviceFactory) |
83 |
{ |
82 |
{ |
Lines 507-523
Link Here
|
507 |
public void setSorting(String[][] _aSortFieldNames) |
506 |
public void setSorting(String[][] _aSortFieldNames) |
508 |
{ |
507 |
{ |
509 |
getRecordParser().setSortFieldNames(_aSortFieldNames); |
508 |
getRecordParser().setSortFieldNames(_aSortFieldNames); |
510 |
if (groupNames != null) |
|
|
511 |
{ |
512 |
getRecordParser().prependSortFieldNames(groupNames); |
513 |
} |
514 |
getReportBuilderLayouter().insertSortingNames(_aSortFieldNames); |
509 |
getReportBuilderLayouter().insertSortingNames(_aSortFieldNames); |
515 |
getReportBuilderLayouter().layout(); |
510 |
getReportBuilderLayouter().layout(); |
516 |
} |
511 |
} |
517 |
|
512 |
|
518 |
public void setGrouping(String[] _aGroupFieldNames) |
513 |
public void setGrouping(String[] _aGroupFieldNames) |
519 |
{ |
514 |
{ |
520 |
groupNames = _aGroupFieldNames; |
|
|
521 |
getRecordParser().prependSortFieldNames(_aGroupFieldNames); |
515 |
getRecordParser().prependSortFieldNames(_aGroupFieldNames); |
522 |
|
516 |
|
523 |
getReportBuilderLayouter().insertGroupNames(_aGroupFieldNames); |
517 |
getReportBuilderLayouter().insertGroupNames(_aGroupFieldNames); |