Process (Method)

Applies To:

(CubeQuery)QuerySection object, OLAPQuerySection, QuerySection

Description:

Executes a query. This method is equivalent to selecting the Process Current item from the Tools menu.

Syntax:

Expression.Process()

Expression Required:

An expression that returns an OLAPQuerySection or a QuerySection object

Example:

This example shows how to process every query in an Interactive Reporting document file:

for (j =1; j <= ActiveDocument.Sections.Count; j++)
{
     if (ActiveDocument.Sections[j].Type == bqQuery)
     {
             var MyCon = ActiveDocument.Sections[j].DataModel.Connection
              MyCon.Username = "Hyperion"
              MyCon.SetPassword("Hyperion")
              MyCon.Connect()
              ActiveDocument.Sections[j].Process()
              Console.Writeln(ActiveDocument.Sections[j].Name + " was processed.")
    }
}