You need to sign in to do that
Don't have an account?
Glen Cubinar
Run Visualforce Page from Trigger
Hi,
I have a class that is called by a visualforce page as shown below, and I would like to seek assistance on how can I run it using a Trigger.
Visualforce Page:
<apex:page standardController="Account" extensions="ArchiveController" action="{!submitRequest}">
<apex:form >
<apex:actionFunction name="cancelProcess" action="{!cancelProcess}"/>
</apex:form>
<script>
var message = "{!message}";
var checkProcess = "{!checkProcess}";
function Archive(){
if(checkProcess == 'true'){
alert(message);
cancelProcess();
}
}
Archive();
</script>
</apex:page>
I have a class that is called by a visualforce page as shown below, and I would like to seek assistance on how can I run it using a Trigger.
Visualforce Page:
<apex:page standardController="Account" extensions="ArchiveController" action="{!submitRequest}">
<apex:form >
<apex:actionFunction name="cancelProcess" action="{!cancelProcess}"/>
</apex:form>
<script>
var message = "{!message}";
var checkProcess = "{!checkProcess}";
function Archive(){
if(checkProcess == 'true'){
alert(message);
cancelProcess();
}
}
Archive();
</script>
</apex:page>
You can just call the class instance from trigger, with the method you need. like:
I would like to run sa VF page since in the class im getting some of the values from the controller.
public ArchiveController(ApexPages.StandardController controller) {