You need to sign in to do that
Don't have an account?

ERROR: Formula Expression is required on the action attributes.
Hi All,
Public pageReference redirectaction(){
update ssss; //Database operation before redirection
String url = 'www.google.com';
PageReference pr = new PageReference(url);
pr.setRedirect(true);
return pr;
}
This is throwing the following error: Formula Expression is required on the action attributes.
I want this to be done using commandbutton action.. Becoz before redirection I have to perform some database operation.
Could you please help me in getting this resolved?
Thanks in Advance.
Hi Natraj,
I think the problem is with the way you are calling this function(redirectaction) from the <apex:commandButton>
Sample code is : <apex:commandButton action="{!your function name}" value="your button name" />
Please let me know if any issues apart from this.
Regards
Jogendra