Gå til indhold

Upgrade selector controls from 2016 to 2016 R2

Dette indhold er ikke tilgængeligt i dit sprog endnu.

In WorkZone Process 2016 R2 changes have been implemented for methods to select options in forms. Follow the guidelines below to upgrade forms:

  1. In forms that are created with a JavaScript controller, go to the line angular.module('wzp', ['…. and remove 'ui.select2', 'ui.selector', 'ui.forward','ui.rollbackselector'. Then, if it does not exist already, add the appropriate wzp controls.
  2. In all HTML forms, replace old controls with new ones as follows:
    Old elementNew elementComments
    ui:selectorwzp:selectorUse this for single selectors such as multiple:false, or use it if you don’t need the possibility to edit items.
    ui:selectorwzp-multi-selectorUse this for editable multiple selectors.
    ui:filter-selectorwzp:filter-selector
    ui:sequence-mask-selectorwzp:sequence-mask-selector
    ui:forwardwzp:forward
    usertask-rollbackselector-panel-helperwzp-usertask-rollbackselector-panel-helperUse this for HTML attributes
    ui:rollbackselector-panelwzp:rollbackselector-panel
    ui:rollbackselectorwzp:rollbackselector-panel
    ui-checkboxselectorwzp-checkboxselectorUse this for HTML attributes in the ui:selector element
  3. In all HTML forms replace the old ng-controller with new ones:
    Old controllerNew controller
    SelectODATACtrlwzpSelectODATACtrl
    SelectODATAWithFilterCtrlwzpSelectODATAWithFilterCtrl
    InitFormFilterForSelectorCtrlwzpInitFormFilterForSelectorCtrl
    InitFormSequenceMaskForSelectorCtrlwzpInitFormSequenceMaskForSelectorCtrl
    SelectUserTaskDocumentsCtrlwzpSelectUserTaskDocumentsCtrl
    SelectUserTaskActorsCtrlwzpSelectUserTaskActorsCtrl
    CustomEditDocumentControllerwzpCustomEditDocumentController
    SmartTaskFilterForSelectorCtrlzpSmartTaskFilterForSelectorCtrl
  4. Remove the attribute wzp-ad-selector-change-label and its value.
  5. Remove change-title-variable attribute and its value.
  6. For the new wzp:filter-selector control, change the attribute ng-controller-name to ng-controller.
  7. For instances of wzp-multi-selector or wzp:rollbackselector that contain instances of wzp:filter-selector or wzp:sequence-mask-selector, change the class attribute to class="newline wzp-task-documentlist wzp-select-with-filter".
  8. Separate each wzp-multi-selector by <div class="wzp-task-editdocument">.
  9. Set always-editable="true" for the instance of wzp-multi-selector or wzp:rollbackselector that you want only in editable mode. An example would be the use of these selectors in Init forms.