Hey Community,
I'm stuck with problem trying to apply detail business rule on my edit grid. So the problem that business rule is looking to UsrParent.UsrStatus column. And i have the error that this column was deleted or renamed.
I've tried some solutions on Community but nothing is working for me.
Here is my code:
methods: {
onActiveRowAction: function(buttonTag, primaryColumnValue) {
this.mixins.ConfigurationGridUtilitiesV2.onActiveRowAction.call(this, buttonTag, primaryColumnValue);
},
generateActiveRowControlsConfig: function(id, columnsConfig, rowConfig) {
//var gridDataColumns = getGridDataColumns();
this.columnsConfig = columnsConfig;
var gridLayoutItems = [];
var currentColumnIndex = 0;
this.Terrasoft.each(columnsConfig, function(columnConfig) {
var cellConfig = this.getActiveRowCellConfig(columnConfig, currentColumnIndex);
if (!cellConfig.hasOwnProperty("isNotFound")) {
gridLayoutItems.push(cellConfig);
}
currentColumnIndex += cellConfig.layout.colSpan;
}, this);
this.applyBusinessRulesForActiveRow(id, gridLayoutItems);
var viewGenerator = this.Ext.create(this.getRowViewGeneratorClassName());
viewGenerator.viewModelClass = this;
var gridLayoutConfig = viewGenerator.generateGridLayout({
name: this.name,
items: gridLayoutItems
});
rowConfig.push(gridLayoutConfig);
},
getGridDataColumns: function() {
var baseGridDataColumns = this.callParent(arguments);
var gridDataColumns = {
"UsrParent.UsrStatus": {path: "UsrParent.UsrStatus"},
};
return Ext.apply(baseGridDataColumns, gridDataColumns);
}
},
thanks!