SalesforceLabs / EnhancedLightningGrid

Component that allows you to sort and filter data within the Lightning Experience. Use as a replacement for a Related List, or create a new grid that shows results from a custom query.
BSD 3-Clause "New" or "Revised" License
136 stars 97 forks source link

Error thrown when attempting to use the grid component in custom lightning component. #14

Open vinodr opened 6 years ago

vinodr commented 6 years ago

I'm trying to utilize the grid component in a custom lightning component I am building but getting the following error:

screen shot 2018-10-15 at 5 49 10 pm

Upon further investigation, I found that the error is coming from the file "components/sortablegrid/sdgBase.js" when the code is trying to initialize sdgBase component:

var def = $A.componentService.getDef("markup://sortablegrid:sdgBase");

I think this is due to the fact that sdgBase is not global and lockerservice is blocking it.

Sample Code: <sortablegrid:sdg DefaultPageSize="10" ShowSDGError="true" ShowFilters="true" isPaging="true" HideOnError="false" MultiSelectMode="true" Title="Approved Recent Purchase Orders" SVGName="standard:account" SDGConfiguration="Apex:ApprovedPurchaseOrdersGridCon" UseCache="false" />

elmoreag commented 6 years ago

vinodr - have you been able to come up with a resolution to this? it seems to have happened only when installing new in Winter19. If the app was installed before W19, no issues, but installed or upgraded afterwards, we get the same errors.

vinodr commented 6 years ago

@elmoreag Sorry, no. I am not using this anymore and haven't tried to make it work after the error as I realized this doesn't solve all my usecases.