Init form
Actor sequences in smart task Init forms
Actor sequence can be used for selecting actors in the InitForm\SmartTask selector control for actors (or a similar register) with the new wzp:sequence-mask-selector control.
Follow these steps to configure this option.
- Add the css class
wzp-select-with-filtertowzp:selectororwzp:rollbackselector. - Add the
wzp:sequence-mask-selectorcontrol inside the parent selector with the attributes described in the table below: -
Attribute name Description Example or comments ng-modelA pointer to the source model property, which this control is bound to. Should be unique. twoWayBindings.ActorSequenceMasksng-controllerThe name of the controller.
“wzpInitFormSequenceMaskForSelectorCtrl”for InitForm,“wzpSmartTaskSequenceMaskForSelectorCtrl”for SmartTaskparent-ng-model-variableShould be equal to the 'ng-model'attribute of the parentwzp.selectororwzp.rollbackselector, and contains'.'dataSource.Actors
Example: A wzp:selector with a wzp:sequence-mask-selector control for an Init form:
<wzp:selector ng-controller="wzpSelectODATACtrl"
ng-model="dataSource.Actors"
labelgroup="SUBMISSIONFORM"
label="ACTORS"
placeholder="SELECT_ACTORS"
options="{
showSelected:true,
register: 'WzpFileUserRights',
text: ['ID', 'Summary','NameType_Value','NameCode_Value'],
filter: addcontactfilter(),
expand:'NameKey,NameKey/AddressKey',
freetextfield:'tolower(Summary)',
openItem:{icon:'metadata',title:'metadata' , actionRegister:'Contact'} ,
orderby :'Summary',
iconType:'contacts'}"
class="newline wzp-select-with-filter"
required
ng-disabled="formisdisabled">
<wzp:sequence-mask-selector
ng-controller="wzpInitFormSequenceMaskForSelectorCtrl"
ng-model="twoWayBindings.ActorSequenceMasks"
parent-ng-model-variable="dataSource.Actors"
class="newline">
</wzp:sequence-mask-selector>
</wzp:selector>
Example: A wzp:rollbackselector with a wzp:sequence-mask-selector control for a Smart Task:
<wzp:rollbackselector
ng-model="twoWayBindings.Actors"
ng-controller="CustomEditDocumentController"
default-data-context-name="ActiveActors"
item-convertor-name="converterFromOdataToSelectorForActors"
save-result-convertor-name="updateActorsFromSomethingConverter"
options="{showSelected:true,
openItem:{icon:'metadata',title:'metadata' , actionRegister:'Contact'} ,
iconType:'contacts',
datacontextName: 'ValidActors'
}"
readonly="noCapability('execute','online')"
labelgroup="CONTROL"
label="ACTORS"
placeholder="SELECT_PARTIES"
hide-indicator="twoWayBindings.editActorControlIsHidden"
class="newline wzp-task-documentlist body-column wzp-select-with-filter">
<wzp:sequence-mask-selector
ng-controller="wzpSmartTaskSequenceMaskForSelectorCtrl"
ng-model="twoWayBindings.ActorSequenceMasks"
ng-hide="noCapability('execute','online')"
parent-ng-model-variable="twoWayBindings.Actors"
class="newline">
</wzp:sequence-mask-selector>
</wzp:rollbackselector>