ProjTable::editSubProjects Method
Updates a field in subprojects that are children of the current project record.
Syntax
server public static void editSubProjects(
ProjId _parentProject,
FieldId _fieldId,
anytype _newValue,
ProjTableEditSubProj _editAll,
[anytype _formerValue,
ArrayIdx _arrayIdx])
Run On
Server
Parameters
- _parentProject
Type: ProjId Extended Data Type
The ID of the parent project.
- _fieldId
Type: FieldId Extended Data Type
The ID for the field in the ProjTable table to update.
- _newValue
Type: anytype
The new value to update the field ID in the subprojects.
- _editAll
Type: ProjTableEditSubProj Enumeration
A Boolean value that indicates whether all subprojects or only projects that have the same value as the original value of the current parent project will be updated.
- _formerValue
Type: anytype
The original fieldId value for the parent project; optional.
- _arrayIdx
Type: ArrayIdx Extended Data Type
The index of the element to update if the _fieldId is an array field; optional.
Remarks
This method either updates the field in all the subprojects or only in subprojects that have the same original value as the original value in current parent project.