IMinute.StoreSetImageAsObject Method

Stores the information about inputs to the set.
Sub StoreSetImageAsObject( _ 
ByVal row As Integer, _ 
ByVal inputFields As InputFieldsFromSetImage
)
This language is not supported or no code example is available.
void StoreSetImageAsObject( 
int row
InputFieldsFromSetImage inputFields 
)
This language is not supported or no code example is available.

Parameters

row
int

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

inputFields
InputFieldsFromSetImage

The info about inputs to the set.

Exception type Condition

QdvApiException

A problem occurred.

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.

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.19.764.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition