0
通过以下链接Alfresco custom control in stencil我已经提出了自定义多选择控制与在后(Alfresco Activiti)中提到的相同步骤,多选择工作正常,但我面临的问题现在仪式在能见度操作不起作用的控制例如有一个文本字段,并且在其可见性部分中,我应用条件,每当多选控制值的值为中间和高隐藏此控件,如附图中所述。 。多选择自定义控制代码自定义多选择控制在露天活动模板
<div ng-controller="multiselectController">
<select name="multiselect" multiple ng-model="field.value"
ng-options="option.code as option.name for option in field.options"
class="form-control ng-pristine ng-valid ng-scope ng-valid-required ng-touched"
>
<option value="">--Select State--</option>
</select>
</div>
角控制器代码
angular
.module('activitiApp')
.controller('multiselectController',
['$rootScope', '$scope', '$http',
function ($rootScope, $scope, $http) {
// that responds with JSON
$scope.field.options = [];
// in case of array values without rest services
if($scope.field.params.customProperties.ElxwfOptionsArrayMultiselect){
$scope.field.options = JSON.parse($scope.field.params.customProperties.ElxwfOptionsArrayMultiselect);
} else($scope.field.params.customProperties.ElxwfRestURLforMultiselect) {
$http.get($scope.field.params.customProperties.ElxwfRestURLforMultiselect).
success(function(data, status, headers, config) {
var tempResponseArray = data.RestResponse.result;
for (var i = 0; i < tempResponseArray.length; i++) {
var state = { name: tempResponseArray[i].name };
$scope.data.states.push(state);
}
}).
error(function(data, status, headers, config) {
alert('Error: '+ status);
tempResponseArray = [];
}
);
}
}]
);
帮我在这方面。
哈雷,在能见度部分没有包含这样的选项,你能帮我这方面如何实现这个东西? – Ali
我认为这是一个不平凡的问题。我会做什么来解决它是包含由formFieldUpdated事件触发的新Javascript。测试该字段是您的自定义选择器,然后以编程方式设置脚本中其他输入字段的可见性。不应该太难实现。 –