Показать сообщение отдельно
Старый 23.06.2004, 15:08   #2  
George Nordic is offline
George Nordic
Модератор
Аватар для George Nordic
Злыдни
 
4,480 / 1255 (50) ++++++++
Регистрация: 17.12.2003
Адрес: Moscow
Записей в блоге: 9
Можно стандартными средствами:
допустим, в прологе перекрываешь
PHP код:
public void executeSection()
{
    ;
    
sysReportRun::executePrintRangeSection(element);
    
super();

или в inite пишешь:
PHP код:
    sysReportRun    reportRun this;
    ;
    
reportRun.printRanges(true); 
А можно и поизвращаться:
PHP код:
    QueryBuildDataSource    qbds = new QueryBuildDataSource();
    
QueryBuildRange         qbr = new QueryBuildRange();
    
int                     range;
    
int                     ranges 0;
    
int                     links;
    
int                     elements;
    
FieldId                 fieldId;
    
DictTable               tableDescr;
    
DictField               fieldDescr;
    ;
    
qbds outputSelection.query().dataSourceNo(1);
    if (
qbds.enabled())
        
ranges qbds.rangeCount();

    
//info(strfmt("Ranges: %1; Links: %2", qbds.rangeCount(), qbds.linkCount()));

    
for (range 1range <= rangesrange++)
    {
        
qbr qbds.range(range);
        
tableDescr = new DictTable(tableIdentificator);
        
fieldId tableDescr.fieldName2Id(qbr.name());
        
fieldDescr = new DictField(tableIdentificatorfieldId);
        
//info(strfmt("Range: %1; %2 %3 %4", range, qbr.label(), qbr.name(), fieldDescr.label()));// qbr.AOTToString() ));
        
this.addControl(tableIdentificator,fieldId);
    }

    
super();