Greeting everyon
i've created a new report and it's works fine
but when i didn't put parameter it's give me error
and that parameter i want it not requires to apply my report
here the error showing me how can i ignore that parameter if null?
[SysEntryPointAttribute] public void processReport() { Query query; QueryRun queryRun; AssetGroup assetGroup; QueryBuildDataSource qbdsAssetGroup; ListIterator groupListIterator; date fromDate,toDate; contract = this.parmDataContract() as FixedAssetTransReportContract; fromDate=contract.parmFromDate(); toDate=contract.parmToDate(); groupListIterator = new ListIterator(contract.parmFixedAssetGroup()); query = new Query(queryStr(QueryAssetGroup)); qbdsAssetGroup = query.dataSourceTable(tableNum(AssetGroup)); while(groupListIterator.more()) { qbdsAssetGroup.addRange( fieldNum(AssetGroup, GroupId)).value(groupListIterator.value()); groupListIterator.next(); } queryRun = new QueryRun(query); while(queryRun.next()) { assetGroup = queryRun.get(tableNum(assetGroup)); this.populateTmpTable(assetGroup.GroupId,fromDate,fromDate); } }