Some of the options we are seeing to replace these java-script buttons in lightning are below
- Quick actions in lightning
Actions of type executing Lightning component
Unfortunately these tow options are not helping us much as we are not able to place these actions as list button on parent record, these are working only on child detailed layout. But we want to place this as the list button on the parent layout.
Another option is:
Create a button of type list button and action is to execute a VF page.
This looks to be ok , but here also we ran into a problem - as we are creating this button on child object with a standard controller, but performing click action from the parent record, the id that is coming by default is a parent id which is very much needed for us , but unfortunately the page is failing with an error
Id value a0I4D00445001LCt is not valid for the Child_Object__c standard controller.
Is there any workaround to create a list button in lightning for this scenario??