Quantcast
Channel: Reports & Macros
Viewing all articles
Browse latest Browse all 1118

How to create the correct button "choose everything" for the table in Dialog.

$
0
0

Hello all,

I have some problems with the table inserted in the Dialog. The first column in my table is checkbox. I created the button "choose all" which marks all checkboxes in the first column as "true", but only once! When I click a second time - nothing happens.

Function example:

this.PUSH_BUTTON_REL_ALLASPECTS_pressed = function() {
    var relObjects = this.dialog.getDialogElement("TABLE_REL_OBJECTS").getItems();
        
    for (var row = 0; row < relObjects.length; row++) {
        relObjects[row][0] = "true";
    }
        
    this.dialog.getDialogElement("TABLE_REL_OBJECTS").setItems(relObjects);       
}

 

Thanks!


Viewing all articles
Browse latest Browse all 1118

Trending Articles