cancel
Showing results for 
Search instead for 
Did you mean: 

Modeler: movePropertyUp/Down in 'Form Properties' does not work

garfield
Champ in-the-making
Champ in-the-making
Hi,

The selected row disappears when I click move up or down button in the popup window [Change value for "Form properties"].

Is there any suggestion for this issue?

Apache-tomcat-7.0.62
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Firefox 40.0
Chrome Version 43.0.2357.132 m


Thanks

-garfield
3 REPLIES 3

garfield
Champ in-the-making
Champ in-the-making
Solved! Changes is listed as follows. Actually, $timeout is a wrapper of setTimeout in angularJS, it seems to be same, but i still don't know why it doesn't work…
<javascript>
//$timeout(function(){
    //$scope.formProperties.splice(index + -1, 0, temp);
//}, 100);

setTimeout(function () {
$scope.$apply(function () {
  $scope.formProperties.splice(index + -1, 0, temp);
});
}, 100);
</javascript>

vasile_dirla
Star Contributor
Star Contributor
Hi,
Thanks for your solution but I suggest you to inject the $timeout into the controller like that:

file: properties-form-properties-controller.js
<code>
var KisBpmFormPropertiesPopupCtrl = ['$scope', '$q', '$translate', '$timeout', function($scope, $q, $translate ,$timeout) {
</code>

This must solve the problem.

That's great!

Thanks