Processreport()
method without getreport parameters() method SSRS:
[
SysEntryPointAttribute(false)]
public
void processReport()
{
QueryRun
queryRun;
Query
query;
CustTable
custTable;
SRSRDPCustTableContractClass
srsRDPCustTableContractClass;
AccountNum
accountNum;
QueryBuildDataSource
queryBuildDataSource;
QueryBuildRange
queryBuildRange;
query =
this.parmQuery();
srsRDPCustTableContractClass
= this.parmDataContract() as SRSRDPCustTableContractClass;
accountNum
= srsRDPCustTableContractClass.parmAccountNum();
// Add
parameters to the query.
queryBuildDataSource
= query.dataSourceTable(tablenum(CustTable));
if(accountNum)
{
queryBuildRange
= queryBuildDataSource.findRange(fieldnum(CustTable, AccountNum));
if
(!queryBuildRange)
{
queryBuildRange
= queryBuildDataSource.addRange(fieldnum(CustTable, AccountNum));
}
// If an
account number has not been set, then use the parameter value to set it.
if(!queryBuildRange.value())
queryBuildRange.value(accountNum);
}
queryRun =
new QueryRun(query);
while(queryRun.next())
{
custTable
= queryRun.get(tableNum(CustTable));
this.insertTmpTable(CustTable);
}
}
No comments:
Post a Comment