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 96 forks source link

Creating New buttons for Custom Actions #4

Open mrsmay opened 6 years ago

mrsmay commented 6 years ago

How to configured new actions for that component to place it as buttons? I want to call some VF pages that I have created. And open a component. Could someone help?

Thanks

dylangold commented 6 years ago

Instructions are available on page 18 of the user guide

mrsmay commented 6 years ago

Ey!

Thanks so much. Actually I am having quite problems as the buttons I need to place there are custom buttons that calls a visualforce page. And that's what I cannot achieve.

Additionally, I am trying with the e.force:createRecord and it works ok. but with Edit I am doing something wrong but I do not know what.

May you give me a hand?

image

Thanks a lot

justinclarke-sc commented 4 years ago

This is an old comment, but in case this helps anyone.

For editing you want to use the event "e.force:editRecord" (not "c.force:editRecord"

And the payload should be: {"recordId" : "#Id#"}