function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bramha1Bramha1 

Update a field while we click on record(i.e @ refreshing the detail page)

Hi,

  I have a Inline VF Page from an Object. when i want to view a record(detail page), i want to update a field in other Object. Is this possible? becoz i have been trying and if i have a update statemnet in the method the InLine Vf Page content is not displaying. The error is Content cannot be displayed: DML currently not allowed . Any idea about this?

 

 

Cheers

 

Bramha

 

DevGarethmdDevGarethmd

You normally get an error like this if you are putting a DML operation inside a class constructor, or within an object getter/setter method or in a  VF component that does not have the allowDML=true attribute set.