1

I want to pass multiple parameters like year, month, week, etc., to a webi report in repository.

How can I achieve this?

Thanks

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
TKV
  • 2,533
  • 11
  • 43
  • 56

2 Answers2

3

From what I recall it is just a matter of constructing your URL query string in standard fashion, e.g.

[URL_path]?paramA=123&paramB=xyz

As when forming any URL, you will need to make sure you URLEncode your parameters.

Here's a link to a BO XI 31 guide to opendoc syntax: Viewing Documents Using OpenDocument.

The BO API lets you query each "prompt" for its "type", e.g. single valued (lsM) or multi-valued. You may need to include parameter types in the URLs you build. The BO documentation explains this.

When passing date information, you may encounter localization issues depending on how your reports are set up and how you create your session with BO.

ewan.chalmers
  • 16,145
  • 43
  • 60
  • thnx for the response..but i already tried the url format that you give [URL_path]?paramA=123&paramB=xyz.. but it is not working.. – TKV May 05 '11 at 10:01
  • I'm afraid the answer is - it works if you get the syntax right. – ewan.chalmers May 05 '11 at 10:05
  • Actually, this *used to work* with BO 3.x, but in BO 4.x, everything has changed. Even after following the updated BO OpenDocument documentation, I can't get this to work anymore.... – Mike Gledhill Apr 06 '16 at 10:02
0

I can provide you an example from my side:

https://URL_path/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&sType=wid&sRefresh=Y&iDocID=AUcrjvCCPOVHtSvXJV9Qs0k&lsMYBO_BU=A;B&lsSYBO_CALYEAR=201410&lsSYBO_CRNCY=EUR

where:

sIDType=CUID --> I will provide the CUID of the WebI report

&sType=wid --> type is WEBI-Report

&sRefresh=Y --> the report should be refreshed = yes

&iDocID=AUcrjvCCPOVxxxvXJV9Qs0k --> this is the CUID of the report

&lsMYBO_BU=A;B --> this is a M (Multiple value variable) called YBO_BU, and I am giving the values A and B

&lsSYBO_CALYEAR=201410 --> this is a S (Single value variable) called YBO_CALYEAR, and I am giving the value 201410 (format might be important if you have users with different date formats, so use YYYYMM)

&lsSYBO_CRNCY=EUR --> this is a S (Single value variable) called YBO_CRNCY, and I am giving the value EUR

I hope it helps.

BR,

Belén.

bish
  • 3,381
  • 9
  • 48
  • 69