IAnalyticReporting.GetImageOfFieldsForDataSource (String, ref Boolean) Method

Reads the data from a .QDVFldConfig file.
Function GetImageOfFieldsForDataSource( _ 
ByVal qdvFldConfigFilePath As String, _ 
ByRef groupsAreCollapsed As Boolean
) As List(Of FieldForQdvFldConfigFile)
This language is not supported or no code example is available.
List<FieldForQdvFldConfigFile> GetImageOfFieldsForDataSource( 
string qdvFldConfigFilePath
ref bool groupsAreCollapsed 
)
This language is not supported or no code example is available.

Parameters

qdvFldConfigFilePath
string

groupsAreCollapsed
bool

Will return true when groups must be collapsed, otherwise will return false.

Return Value

List<FieldForQdvFldConfigFile>

A list of FieldForQdvFldConfigFile objects, where each item represents whether a WBS field, a minutes (detailed) field, a global variable or a sheet of the overhead whose named ranges are to be pushed to the data-source.

Remarks
 
For historical reasons and for backward compatibility with old macros, this methods doesn't throw exceptions when an error is encountered. Instead, it sets a global error message. This allows to report just one (first) error. These global error messages are automatically displayed by QDV after a macro has finished.

You can read this error info programmatically. You can get it from IQdvEnvironment.GlobalErrors property. In macros, it's accessible from the Context parameter:

 Context.QdvManager.Environment.GlobalErrors
 					
Version
 
Available since QDV 7.13.0001.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition