• Richard - Howard
  • NEWBIE
  • 0 Points
  • Member since 2019
  • Salesforce Admin

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
I am in the process of implementing the Enhanced Lightnig Data Grid app and in particular a list action on a Sortable Data Grid that already shows on the User Profile page for all users in my org.

This displays a list of records of the Taxonomy_Assignment__c object on a users profile page. The use case is to track areas of technical expertise within our user base and give users the ability to self manage their own areas of expertise.

App Listing: https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000EVK8iUAH (https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000EVK8iUAH" target="_blank)

The Sortable Data Grid is showing correctly as expected and my Add Area of Specialism Action link . button  appears in the SDG drop down.

However, when I click the action, I get the following component error message:

"Uncaught Action failed: sortablegrid:sdg$controller$RaiseListEventMenu [Cannot read property 'get' of undefined]"

Screenshot of lightning component error message on SDG list action failure

My Event Payload is currently set as follows, however I am not a developer and have no idea whether this is correct or not:

{"entityApiName":"Taxonomy_Assignment__c", "defaultFieldValues" : {"User__c":"#parentrecordId#"} , "defaultFieldValues" : {"RecordTypeId":"012D0000000NekmIAC"}}

If anyone has any advice as to how I may fix this, I would be most grateful.


SDG Configuration:
User-added image

SDG Action Configuration:
User-added image


Full error details are pasted below for reference:

Message:

Uncaught Action failed: sortablegrid:sdg$controller$RaiseListEventMenu [Cannot read property 'get' of undefined]

File Name:  
https://accelerator.lightning.force.com/auraFW/javascript/hhh5Vv8CJJLjCXfK6oE_Iw/aura_prod.js

Stack Trace:

Object.get()@https://accelerator.lightning.force.com/auraFW/javascript/hhh5Vv8CJJLjCXfK6oE_Iw/aura_prod.js:814:263
$.get()@https://accelerator.lightning.force.com/auraFW/javascript/hhh5Vv8CJJLjCXfK6oE_Iw/aura_prod.js:828:128
Object.value [as get]()@https://accelerator.lightning.force.com/auraFW/javascript/hhh5Vv8CJJLjCXfK6oE_Iw/aura_prod.js:24:25153
Object.FireEvent()@https://accelerator.lightning.force.com/lightning/r/User/005D0000008tWSKIA2/components/sortablegrid/sdg.js:660:33
RaiseListEventMenu()@https://accelerator.lightning.force.com/lightning/r/User/005D0000008tWSKIA2/components/sortablegrid/sdg.js:199:16
Object.selectItem()@https://accelerator.lightning.force.com/components/lightning/buttonMenu.js:16:16
Object.handleClickOnMenuItem()@https://accelerator.lightning.force.com/components/lightning/buttonMenu.js:17:143
HTMLDivElement.eval()@https://accelerator.lightning.force.com/components/lightning/buttonMenu.js:12:275
 
I am in the process of implementing the Enhanced Lightnig Data Grid app and in particular a list action on a Sortable Data Grid that already shows on the User Profile page for all users in my org.

This displays a list of records of the Taxonomy_Assignment__c object on a users profile page. The use case is to track areas of technical expertise within our user base and give users the ability to self manage their own areas of expertise.

App Listing: https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000EVK8iUAH (https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000EVK8iUAH" target="_blank)

The Sortable Data Grid is showing correctly as expected and my Add Area of Specialism Action link . button  appears in the SDG drop down.

However, when I click the action, I get the following component error message:

"Uncaught Action failed: sortablegrid:sdg$controller$RaiseListEventMenu [Cannot read property 'get' of undefined]"

Screenshot of lightning component error message on SDG list action failure

My Event Payload is currently set as follows, however I am not a developer and have no idea whether this is correct or not:

{"entityApiName":"Taxonomy_Assignment__c", "defaultFieldValues" : {"User__c":"#parentrecordId#"} , "defaultFieldValues" : {"RecordTypeId":"012D0000000NekmIAC"}}

If anyone has any advice as to how I may fix this, I would be most grateful.


SDG Configuration:
User-added image

SDG Action Configuration:
User-added image


Full error details are pasted below for reference:

Message:

Uncaught Action failed: sortablegrid:sdg$controller$RaiseListEventMenu [Cannot read property 'get' of undefined]

File Name:  
https://accelerator.lightning.force.com/auraFW/javascript/hhh5Vv8CJJLjCXfK6oE_Iw/aura_prod.js

Stack Trace:

Object.get()@https://accelerator.lightning.force.com/auraFW/javascript/hhh5Vv8CJJLjCXfK6oE_Iw/aura_prod.js:814:263
$.get()@https://accelerator.lightning.force.com/auraFW/javascript/hhh5Vv8CJJLjCXfK6oE_Iw/aura_prod.js:828:128
Object.value [as get]()@https://accelerator.lightning.force.com/auraFW/javascript/hhh5Vv8CJJLjCXfK6oE_Iw/aura_prod.js:24:25153
Object.FireEvent()@https://accelerator.lightning.force.com/lightning/r/User/005D0000008tWSKIA2/components/sortablegrid/sdg.js:660:33
RaiseListEventMenu()@https://accelerator.lightning.force.com/lightning/r/User/005D0000008tWSKIA2/components/sortablegrid/sdg.js:199:16
Object.selectItem()@https://accelerator.lightning.force.com/components/lightning/buttonMenu.js:16:16
Object.handleClickOnMenuItem()@https://accelerator.lightning.force.com/components/lightning/buttonMenu.js:17:143
HTMLDivElement.eval()@https://accelerator.lightning.force.com/components/lightning/buttonMenu.js:12:275
 
Message: Uncaught Error in $A.getCallback() [Invalid date value]
Callback failed: apex://sortablegrid.sdgController/ACTION$GetSDGInitialLoad

In the sortable data grid i created there is no date field 

component descriptor:
markup://sortablegrid:sdg

File Name:
auraFW/javascript/9cP17KDqrLzgsg8CdQTfjw/aura_proddebug.js

Function:
Action.$finishAction$

Skip trace:

Action.$finishAction$()@https:/auraFW/javascript/9cP17KDqrLzgsg8CdQTfjw/aura_proddebug.js:13728:22
QueuedActionsMetricsPlugin.$actionFinishOverride$()@https:/auraFW/javascript/9cP17KDqrLzgsg8CdQTfjw/aura_proddebug.js:27804:24
Object.Aura.$Utils$.$Override$.$continuation$()@https:/auraFW/javascript/9cP17KDqrLzgsg8CdQTfjw/aura_proddebug.js:7021:20
Action.bound [as $finishAction$]()@https:/auraFW/javascript/9cP17KDqrLzgsg8CdQTfjw/aura_proddebug.js:6958:29
AuraClientService.$singleAction$()@https:/auraFW/javascript/9cP17KDqrLzgsg8CdQTfjw/aura_proddebug.js:15570:14
AuraClientService.$processResponses$()@https:/auraFW/javascript/9cP17KDqrLzgsg8CdQTfjw/aura_proddebug.js:17134:14
QueuedActionsMetricsPlugin.$actionsProcessResponses$()@https:/auraFW/javascript/9cP17KDqrLzgsg8CdQTfjw/aura_proddebug.js:27823:23

The sortable data grid i created doesn't have a date field at all