1
0
-1

I have attempted to use Util.descendents and iterate through the children.value and setting to blank to no avail.

var fields = Util.descendants(item.$$parent.$$parent.$$parent)
for(var i = 0; i < fields.length; i++) {
  fields[i].value = "";
}

(The item in question is a button in a dialog)

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      The code needs to be changed to the following:

      var fields = Util.descendants(item.$$parent.$$parent.$$parent)
      for(var i = 0; i < fields.length; i++) {
        data[fields[i].id] = "";
      }
        CommentAdd your comment...