Back to
Latest changes:
2020/01/13 19:15

This is an old revision of the document!


How to add a column with the same attribute as in newly added condition

var query = EQ.client.getQuery();
query.addChangedCallback(function (params) {
    if (params.changeType == "condition.add") {
        var cond = params.condition;
        if (cond.expressions) {
            var attrID = cond.expressions[0].id;
            var ColumnsPanelWidget = $('#ColumnsPanel');
            ColumnsPanelWidget.ColumnsPanel("addNewColumn", attrID);
        }
    }
});

Discussion

Enter your comment: