IMinute.GetSetImageAsObject Method

Gets the information about inputs to the set.
Function GetSetImageAsObject( _ 
ByVal row As Integer
) As InputFieldsFromSetImage
This language is not supported or no code example is available.
InputFieldsFromSetImage GetSetImageAsObject( 
int row 
)
This language is not supported or no code example is available.

Parameters

row
int

The row in the minute where the set image info is stored (1-9999).

Return Value

InputFieldsFromSetImage

The value containing info about inputs to the set.

Remarks
 

The set image contains the values of the imported set. They are stored in the heading rows of sets.

You can test if the Set Image contains a file or values to be converted into an object by invoking GetTypeOfSetImage function. You can use this function only when the Set Image contains values to be converted into an object.

Example
 

The following example reads the input fields of the set image from row 2 of task A.1, adds a new field and writes the fields back.

' This code reads the input fields of the set image from row 2 of task A.1, adds a new field and writes the fields back.
 
 ' Get the task and the minute.
 Dim Task As ITask = Es.CurrentVersion.Wbs.GetTask("001001001000000000000000")
 Dim Minute As Qdv.UserApi.Iminute = Task.Minute
 
 ' Read the input fields.
 If Minute.GetTypeOfSetImage(2) <> SetImageManagement.SetImageType.InputsObject Then
  ' There are no input fields on this row.
  Throw New InvalidOperationException("The specified row doesn't contain input fields.")
 End If
 Dim Inputfields As SetImageManagement.InputFieldsFromSetImage = Minute.GetSetImageAsObject(2)
 
 ' add a new input field
 Dim inputFld As SetImageManagement.InputFieldFromSetImage = New SetImageManagement.InputFieldFromSetImage()
 inputFld.ControlAddress = "$H$6"
 inputFld.ControlSheetIndex = 2
 inputFld.FieldName = "new_input_field"
 inputFld.Value = "123"
 Inputfields.Fields.Add(inputFld)
 
 ' store the updated input fields
 Minute.StoreSetImageAsObject(2, Inputfields)					
This language is not supported or no code example is available.

Version
 
Available since QDV 7.15.546.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition