IBM / paxapi

This repository hosts the API documentation for IBM Planning Analytics for Microsoft Excel. For full product documentation, please visit the Knowledge Center:
https://www.ibm.com/support/knowledgecenter/SSD29G_2.0.0/kc_gen/com.ibm.swg.ba.cognos.ipa.doc_using_planning_analytics_toc-gen2.html
Apache License 2.0
6 stars 5 forks source link

Any way to reference Reporting.Explorations without a specific sheet name #16

Open ahavas opened 4 years ago

ahavas commented 4 years ago

Hello,

I can programatically interact with Quick Reports using an ID number rather than a specific cell, e.g. Reporting.QuickReports.Get(<qridnumber>).Commit which is very useful when iterating over an array of the qr id numbers.

Is there an equivalent for Explorations? The documentation seems pretty insistent that the correct form is: Reporting.Exploration.GetAt(<excelsheetname>).SomeFunction. I ask because I see there is a Reporting.Explorations.GetReports() accessor, but its use case is not at all clear. What I am trying to do is programatically refresh certain Explorations but not others, without needing to know the sheet name.

Thanks!

tedphillips commented 4 years ago

because Exploration Reports is a one-per-worksheet technology, the 'id' equivalent is the worksheet (within the scope of the book).

how would you be looking to selectively consume the explorations, as in, what matching criteria do you envision?

GetReports() produces a collection of all Explorations in the book, which you can then iterate in a loop in a similar way.

ahavas commented 4 years ago

Understood and it makes sense.

Would you be able to provide a sample on how to use GetReports()?