You need to sign in to do that
Don't have an account?
Frank Carter
Lightning - list button to delete records
Hello,
I created an object, Billing Detail, for invoices. It's related on opportunity. Every Opportunity won must have one or more billing details. An object Billing detail can be of type PPU(pay for use), UNA TANTUM and FEE(canon). We have several button on related list billing detail on opportunity. "New" to create with a trigger multiple object billing details on that opportunity. Example if we have an annual contract with monthly invoice we can create with one click 12 billing details. The javascript buttons That I want on lightning are: Delete PPu, Delete UNA TANTUM , DElete FEE. THese buttons make a query to delete a type of billing details example If i click "Delete FEE" the button deletes only the billing detail of type FEE except for the FEe in status BILLED. I need this button with this function on lightning. I tried creating a vf page with inside the javascript code but is not working. I want to know waht is the correct approach to have the same button on related list on Lightning?
I created an object, Billing Detail, for invoices. It's related on opportunity. Every Opportunity won must have one or more billing details. An object Billing detail can be of type PPU(pay for use), UNA TANTUM and FEE(canon). We have several button on related list billing detail on opportunity. "New" to create with a trigger multiple object billing details on that opportunity. Example if we have an annual contract with monthly invoice we can create with one click 12 billing details. The javascript buttons That I want on lightning are: Delete PPu, Delete UNA TANTUM , DElete FEE. THese buttons make a query to delete a type of billing details example If i click "Delete FEE" the button deletes only the billing detail of type FEE except for the FEe in status BILLED. I need this button with this function on lightning. I tried creating a vf page with inside the javascript code but is not working. I want to know waht is the correct approach to have the same button on related list on Lightning?
controller:
apex class:
I have this error when I try to save apex class
Invalid bind expression type of Schema.SObjectField for column of type Id
Can someone help me?
thanks,
Frank