I have a report which has a Context. Now when refreshing the report using a VBA , Is there any way , I can handle thecontext in VBA…I mean is there any option thru which I can select the context.
If you want to select a particular context, then you could (possibly - I’ve not tried it) add another condition using vba that will force the query down a particular path of joins.
Just curious - are you working against an OLTP or DW database? If Data Warehouing, if you are selecting a measure from a fact table, then the contexts should be sorted out for you anyway. What’s the scenario where you are having trouble?
To my knowledge, there is nothing in the object model that lets you specify a context. As previous posts have suggested, you should focus on the universe itself and how the contexts are defined. As long as a fact table is included in the query, there should be no prompt for context.
Hi,
I am intereseted too in this matter. We’re trying to automate the testing phase for our universe and we’re running many scenarios.If the context prompt appears something is wrong :? . Is there a way in VBA for Bo XIR2 to handle or detect this ?
Thanks