You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

multiple ParameterValues

edited Feb 22, 2021 12:15PM in Sales 3 comments

Content

I need to call runReport webserivce in groovy and pass two parameters to the report (see my groovy below). Could someone please provide a sample groovy that can send multiple parameters? I've tried using the below Oracle doc as reference but wasn't able to send 2 parameters.
 
How To Set Parameters To BI Publisher Reports Using Web Service API (Doc ID 2378541.1)
 
def reportRequest =
  [
byPassCache :true,
flattenXML :false,
reportAbsolutePath :'Premise_BPNum_AccName_Report.xdo',
sizeOfDataChunkDownload :'-1',       
parameterNameValues:
[
  item:
  [[
UIType :'Text',
dataType :'xsd:string',
name :'premId',
values:
[
  item:
    [[
     item :premId,
    ]] ,
  ],    
  ]],
 ]
]
def reportResponse = adf.webServices.ReportWebSvc.runReport(reportRequest,'');   
def repResponse = reportResponse.get('reportBytes');

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!