5

this refers to the default class and not window. Container component (not owner) can add event listeners and access elements directly on this and not template. So, we should use this.addEventListener and this.querySelector Owner component has to add event-listeners and identification through template. So, we should use this.template.addEventListener and this....


4

To make sure you have access to class variables, bind this to the function: { type: 'action', typeAttributes: { rowActions: this.getRowActions.bind(this) } },


2

Adding more details in addition @sfdcfox answer You are facing that problem because of lexical scoping. You can use binding (as suggested by @sfdcfox) RowActions: this.getRowActions.bind(this) } OR you can simple use arrow function in method: getRowActions = (row, doneCallback) => { NOTE: For automatically fetching records, (no need of implementing ...


1

Not only do you need to use the Data Extension ExternalID for initializing this data extension to be read from, it must be in the same business unit. IE. You cannot open a shared data extension from another business unit using a name like "ent.DataExtensionName" nor by its external id from the other business unit. Retrieve always seems to return no rows in ...


Only top voted, non community-wiki answers of a minimum length are eligible