IMinute.StoreSetImageAsObject Method
Sub StoreSetImageAsObject( _
ByVal row As Integer, _
ByVal inputFields As InputFieldsFromSetImage _
)
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 |
---|---|
A problem occurred. |
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.
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.
Available since QDV 7.19.764.