DML operations are not allowed
1. Inside the constructor.
2. Method which is called from the constructor.
3. Check whether allowDML=”true” is set in your apex:Component.
Cheers!!!
1. Inside the constructor.
2. Method which is called from the constructor.
3. Check whether allowDML=”true” is set in your apex:Component.
Cheers!!!
You must be logged in to post a comment.
Can i know why Dml doesn't works in Constructor ?
This might help
https://developer.salesforce.com/forums?id=906F000000099dgIAA
action parameter will do the work
Thanks
right syntex
If a method is called from get methods too will not allow DMLs…
Constructor initialising the memory for only veriable.