2 risposte
Hi,JUST SIMPLE:- You need to set the allowDML attribute of your component to true for DML to be allowed by your component. just example:-
if you need any assistanse, Please let me know!!Kindly mark my solution as the best answer if it helps you.ThanksMukesh<apex:component controller="MyComponentController" allowDML="true">
<apex:form>
<apex:commandButton value="Execute DML" action="{!executeDML}"/>
</apex:form>
</apex:component>