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

Page re-direct
Hi!
Does anyone know why this line works in development mode only?
After the user clicks save:
In development mode, the next page is lmi2. Which is what I want.
In non-development mode, the it returns to standard edit page for the custom object.
Thanks.
Code:
<apex:commandButton action="{!save}" value="Save" onclick="window.parent.location.href='/apex/lmi2'"/>
However I think you should go back and review the doc for action methods and commandButton. You return the next page you want to go to from your save method.
If you're using a standard controller, look at the section on extensions. You can override the save method, delegate the save call to the standard controller, and then return Page.lmi2.