GetDataAutomatically Property
Sets or returns whether the Report object retrieves
data automatically each time it is modified.
Syntax
Report.GetDataAutomatically
Applies To
Discussion
If True, the data is updated with each report modifying action such as ranking and calculations. If False, calculations, ranking, and other report modifying actions will update the number of columns and rows, but the data will not be updated. Set the property to False when using a large amount of data. Once completed, you can get the data using the GetDataNow method. This way, the Application object is not constantly polling the cube for new information.
Default: False
Type
Boolean
Access
Read/Write
Example
This example opens a report, and updates the data in the report using the GetDataNow method, if the GetDataAutomatically property is set to False.
Sub Main()
Dim objPPRep as Object
Set objPPRep = CreateObject ("CognosPowerPlay.Report")
objPPRep.Open "C:\Cubes and Reports\Sample2.ppx"
If objPPRep.GetDataAutomatically = 0 then
objPPRep.GetDataNow
End if
Set objPPRep = Nothing
End Sub