Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4ec4ec629 |
@@ -4022,6 +4022,19 @@ export class EditorComponent
|
||||
// rules must stay index-aligned with headerColumns).
|
||||
this.headerColumns.push(EDIT_STATUS_COLUMN_NAME)
|
||||
|
||||
/**
|
||||
* columnHeader is the same list, taken once it is final (Delete? renamed,
|
||||
* EDIT_STATUS appended) - it is the grid's own column order, which is what
|
||||
* every hook that maps a visual column index to a name needs.
|
||||
*
|
||||
* This has to happen HERE, before the updateSettings below installs
|
||||
* afterGetColHeader / afterGetCellMeta: those fire during the render that
|
||||
* updateSettings triggers, and reading a columnHeader that was still being
|
||||
* assigned further down meant they saw the previous table's columns (or
|
||||
* nothing). That is what put the derived-block marker on the wrong column.
|
||||
*/
|
||||
this.columnHeader = this.headerColumns.slice()
|
||||
|
||||
if (response.data.sasparams[0].DTVARS !== '') {
|
||||
this.dateHeaders = response.data.sasparams[0].DTVARS.split(' ')
|
||||
}
|
||||
@@ -4143,8 +4156,9 @@ export class EditorComponent
|
||||
this.dataSourceUnchanged = this.helperService.deepClone(this.dataSource)
|
||||
this.overlayFormulaRawValuesOnUnchanged(this.dataSourceUnchanged)
|
||||
|
||||
// Note: this.headerColumns and this.columnHeader contains same data
|
||||
// need to resolve redundancy
|
||||
// columnHeader is a copy of headerColumns taken above, once the Delete?
|
||||
// rename and the EDIT_STATUS append had been applied - the hooks read it
|
||||
// for grid-index-to-name mapping, so the two must not drift apart again.
|
||||
|
||||
// default schema - includes NOTNULL defaults from DQ rules
|
||||
for (let i = 0; i < this.headerColumns.length; i++) {
|
||||
@@ -4503,9 +4517,6 @@ export class EditorComponent
|
||||
// hot.getPlugin('manualColumnFreeze').freezeColumn(0);
|
||||
|
||||
this.queryText = response.data.sasparams[0].FILTER_TEXT
|
||||
this.columnHeader = response.data.sasparams[0].COLHEADERS.split(',')
|
||||
// First column is always used to mark records for deletion
|
||||
this.columnHeader[0] = 'Delete?'
|
||||
this.readOnlyFields = response.data.sasparams[0].PKCNT
|
||||
|
||||
hot.addHook(
|
||||
|
||||
Reference in new issue
Block a user