Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Reading webi report variable using .NET SDK

Hi All,

I'm trying to access and read variables in Webi reports programmatically.

Having used .NET in the past and having no experience of Java I have opted for the .NET route.

I have got as far as connecting to a Webi document using BusinessObjects.ReportEngine. I can then list and access the DataProviders which is different queries but can not find how to access the variables.

I'm using XI3.1 and the latest V12 SDK files.

Can anyone help or point me in the right direction please?

Cheers,

John

replied

My Code Is

IDocumentInstance webiDoc = webiReportEngine.OpenDocument(report.ID);

IPrompts prompts = webiDoc.GetPrompts();

foreach(IPrompt prompt in prompts)

{

// set prompt values here if report have prompts

...

}

webiDoc.SetPrompts();

Using ASP.NET C#

Now i want to view this document using openDocument.aspx? like

string webiURL = "http://" machineName "/OpenDocument/opendoc/opendocument.aspx?iDocID=" + webiID + "&sType=wid&sWindow=Same&token=" + token + "

.

The issue is how to pass parameters value if reports have prompts ...

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question