1

Is it possible to call dml operations like insert list_SObject ; inside a controller method that is refrenced in visualforce page not some trigger class? please give some references.

1

You mean something like this :

VF page :

<apex:commandButton action="{!controllerMethod}"/>

Controller :

public void controllerMethod() {
    // Do some stuff with your list

    insert list_SObject;
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.