-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue where hidden columns breaking column retrieval
- Loading branch information
Showing
1 changed file
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* @description : | ||
* @author : [email protected] | ||
* @last modified on : 09-13-2024 | ||
* @last modified on : 11-20-2024 | ||
* @last modified by : [email protected] | ||
* Modifications Log | ||
* Ver Date Author Modification | ||
|
@@ -286,23 +286,26 @@ public with sharing class ListViewCustomManual extends ListViewCustomManualAbstr | |
Integer columnIndex = 1; | ||
for (ListViewHelper.StandardColumn column: cols.values()) | ||
{ | ||
FieldWrapper field = new FieldWrapper(column.label, | ||
column.type, | ||
column.fieldNameOrPath, | ||
columnIndex); | ||
if (dataRows?.size() > 0 && !column.hidden) | ||
{ | ||
FieldWrapper field = new FieldWrapper(column.label, | ||
column.type, | ||
column.fieldNameOrPath, | ||
columnIndex); | ||
|
||
field.setFunction(column.function); | ||
field.setFunction(column.function); | ||
|
||
if (sortDataByFieldName.containsKey(column.fieldNameOrPath)) | ||
{ | ||
field.sortIndex = String.valueOf(sortDataByFieldName.get(column.fieldNameOrPath).sortIndex); | ||
field.sortDir = sortDataByFieldName.get(column.fieldNameOrPath).sortDirection; | ||
} | ||
if (sortDataByFieldName.containsKey(column.fieldNameOrPath)) | ||
{ | ||
field.sortIndex = String.valueOf(sortDataByFieldName.get(column.fieldNameOrPath).sortIndex); | ||
field.sortDir = sortDataByFieldName.get(column.fieldNameOrPath).sortDirection; | ||
} | ||
|
||
rows.addFieldMetaData(field); | ||
rows.addFieldMetaData(field); | ||
|
||
columns.add(column); | ||
columnIndex++; | ||
columns.add(column); | ||
columnIndex++; | ||
} | ||
} | ||
|
||
//get all preset column widths | ||
|