Skip to content

Commit

Permalink
Version 4.1.4 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ericrsmith35 committed Jun 14, 2023
1 parent 17f34b9 commit 346cfb9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
8 changes: 6 additions & 2 deletions flow_screen_components/datatable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ https://unofficialsf.com/flow-action-and-screen-component-basepacks/

---
**Install Datatable**
[Version 4.1.3 (Production or Developer)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5G000004J7MsQAK)
[Version 4.1.3 (Sandbox)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5G000004J7MsQAK)
[Version 4.1.4 (Production or Developer)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5G000004J7MxQAK)
[Version 4.1.4 (Sandbox)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5G000004J7MxQAK)

---
**Starting with the Winter '21 Release, Salesforce requires that a User's Profile or Permission Set is given specific permission to access any @AuraEnabled Apex Method.**
Expand All @@ -72,6 +72,10 @@ A Permission Set (**USF Flow Screen Component - Datatable**) is included with th
---
# Release Notes

## 06/14/23 - Eric Smith - Version 4.1.4
**Bug Fixes:**
- Fixed issue with tables showing as empty if row selection was disabled

## 06/13/23 - Eric Smith - Version 4.1.3
**Bug Fixes:**
- Fixed issue where Datatables fed by DataFetcher were defaulting to single row selection only
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ export default class Datatable extends LightningElement {
set tableData(data = []) {
if(this.isUpdateTable) {
if (Array.isArray(data)) {
this.maxRowSelection = (this.singleRowSelection) ? 1 : this._tableData.length + 1; // If maxRowSelection=1 then Radio Buttons are used (v4.1.2)
this._tableData = data;
if(this.columnFields) {
this.processDatatable();
Expand Down Expand Up @@ -337,7 +336,9 @@ export default class Datatable extends LightningElement {
// Other Datatable attributes
@api sortedBy = '';
@api sortDirection = '';
@api maxRowSelection;
@api get maxRowSelection() {
return (this.singleRowSelection) ? 1 : this._tableData.length + 1; // If maxRowSelection=1 then Radio Buttons are used
}
@api errors;
@api columnWidthValues;
@track columns = [];
Expand Down Expand Up @@ -793,7 +794,6 @@ export default class Datatable extends LightningElement {
if (this._tableData) {

// Set other initial values here
this.maxRowSelection = (this.singleRowSelection) ? 1 : this._tableData.length + 1; // If maxRowSelection=1 then Radio Buttons are used
this.wizColumnFields = this.columnFields;

console.log('Processing Datatable');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ console.log("DATATABLE isCommunity, isFlowBuilder:", isCommunity, isFlowBuilder)

const getConstants = () => {
return {
VERSION_NUMBER : '4.1.3', // Current Source Code Version #
VERSION_NUMBER : '4.1.4', // Current Source Code Version #
MAXROWCOUNT : 2000, // Limit the total number of records to be handled by this component
ROUNDWIDTH : 5, // Used to round off the column widths during Config Mode to nearest value
WIZROWCOUNT : 6, // Number of records to display in the Column Wizard datatable
Expand Down
3 changes: 2 additions & 1 deletion flow_screen_components/datatable/sfdx-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"datatable@4.1.0": "04t5G000004J7LQQA0",
"datatable@4.1.1": "04t5G000004J7LzQAK",
"datatable@4.1.2": "04t5G000004J7MnQAK",
"datatable@4.1.3": "04t5G000004J7MsQAK"
"datatable@4.1.3": "04t5G000004J7MsQAK",
"datatable@4.1.4": "04t5G000004J7MxQAK"
}
}

0 comments on commit 346cfb9

Please sign in to comment.