Tuesday, 16 September 2014

Access Query Dialog range values in Controller class and assign to new report parameter created in Design

// Add method in Controller class
protected void preRunmodifyContract()
{
    query query;
    String255 wh="";
    SrsReportDataContract dataContract = this.parmReportContract();
    SrsReportRdlDataContract contract = dataContract.parmRdlContract();
    query  = this.getFirstQuery();
    wh = Query.dataSourceName('ReceiptAudit').findRange(fieldNum(ReceiptAudit,InventLocationId)).value();
    if(wh!="")
       contract.setValue("Warehouse",wh);
}

No comments:

Post a Comment