You need to sign in to do that
Don't have an account?
imAkashGarg
"DML currently not allowed" on PDF page
I have a VF page rendered as PDF.
I have to perform a DML operation on this page.
I am getting the error:
"DML currently not allowed"
How to perform a DML operation on this PDF page?
Are you attempting DML in the constructor (or a getter)? This isn't allowed I'm afraid. I've blogged a workaround at:
http://bobbuzzard.blogspot.com/2011/08/dml-during-initialisation.html
is this any help?