on 12-21-2020 9:55 AM
Hi
I want to provide the user with a button which can clear all Input content of a particular Column.
I.ex. if i have a Table with 7 rows; SalesOrderItem, ItemText, ItemValue
How do i clear ItemValue in all rows of table?
Is thre an easy way?
Hi,
You need to clear data in your table's model. Then you contol will be updated automatically.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Whel i did it the other way:
var items = this.byId("itemTable").getItems();
for(var i = 0, len = items.length;i<len; i++){
var cells = items[i].getCells();
cells[2].setValue();
cells[3].setValue();
cells[6].setValue();
if (cells[8].bOutput === true){
cells[8].setEnabled(false);
}
}
The only issue is the last one: cells[8] is a Checkbox and i need to set it to unchecked. setEnabled is not checked/unchecked - but i can´t get the right one?!
User | Count |
---|---|
71 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.