diff --git a/flow_screen_components/datatable/README.md b/flow_screen_components/datatable/README.md index 882d3deee..8bf2799aa 100644 --- a/flow_screen_components/datatable/README.md +++ b/flow_screen_components/datatable/README.md @@ -51,8 +51,8 @@ https://unofficialsf.com/flow-action-and-screen-component-basepacks/ --- **Install Datatable** -[Version 4.1.1 (Production or Developer)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5G000004J7LzQAK) -[Version 4.1.1 (Sandbox)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t5G000004J7LzQAK) +[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.** @@ -72,14 +72,21 @@ 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 + ## 06/04/23 - Eric Smith - Version 4.1.1 **Updates:** -- Added reactivity for Apex-Defind objects (Pre-Selected Rows are not reactive) -- Made the placeholder for 'Enter search term ...' a translatable label +- Added reactivity for Apex-Defind objects (Pre-Selected Rows are not reactive) +- Made the placeholder for 'Enter search term ...' a translatable label **Bug Fixes:** -- Fixed reactivity for DataFetcher on initial load of screen +- Fixed reactivity for DataFetcher on initial load of screen ## 05/21/23 - Eric Smith - Version 4.1.0 **Updates:** diff --git a/flow_screen_components/datatable/force-app/main/default/lwc/datatable/datatable.js b/flow_screen_components/datatable/force-app/main/default/lwc/datatable/datatable.js index a58c3c1d9..f60534ed2 100644 --- a/flow_screen_components/datatable/force-app/main/default/lwc/datatable/datatable.js +++ b/flow_screen_components/datatable/force-app/main/default/lwc/datatable/datatable.js @@ -336,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 = []; @@ -792,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'); diff --git a/flow_screen_components/datatable/force-app/main/default/lwc/ers_datatableUtils/ers_datatableUtils.js b/flow_screen_components/datatable/force-app/main/default/lwc/ers_datatableUtils/ers_datatableUtils.js index c28ac070e..173408df7 100644 --- a/flow_screen_components/datatable/force-app/main/default/lwc/ers_datatableUtils/ers_datatableUtils.js +++ b/flow_screen_components/datatable/force-app/main/default/lwc/ers_datatableUtils/ers_datatableUtils.js @@ -33,7 +33,7 @@ console.log("DATATABLE isCommunity, isFlowBuilder:", isCommunity, isFlowBuilder) const getConstants = () => { return { - VERSION_NUMBER : '4.1.1', // 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 diff --git a/flow_screen_components/datatable/sfdx-project.json b/flow_screen_components/datatable/sfdx-project.json index 14cc9a722..db58ebf87 100644 --- a/flow_screen_components/datatable/sfdx-project.json +++ b/flow_screen_components/datatable/sfdx-project.json @@ -85,6 +85,9 @@ "datatable@4.0.11-0": "04t5G0000043wpmQAA", "datatable@4.0.12-0": "04t5G0000043wt5QAA", "datatable@4.1.0": "04t5G000004J7LQQA0", - "datatable@4.1.1": "04t5G000004J7LzQAK" + "datatable@4.1.1": "04t5G000004J7LzQAK", + "datatable@4.1.2": "04t5G000004J7MnQAK", + "datatable@4.1.3": "04t5G000004J7MsQAK", + "datatable@4.1.4": "04t5G000004J7MxQAK" } } \ No newline at end of file