How to allow DML operations in apex:component in Salesforce?

How to allow DML operations in apex:component in Salesforce?

In order to allow DML operations in apex:component, allowDML attribute should be made true.

Sample Code:


<apex:component controller=”TearPagesController” allowDML=”true”>

Leave a Reply