in reply to CGI::Application Run Modes Not Applying

If you want CGI:App to perform a specific run mode when you hit submit you'll need to do a number of things:
  • Declare the run mode in your setup routine. My declaration looks like (YMMV):
    $self->run_modes([qw/ AUTOLOAD report master_edit ... etc. ... /]);
  • Put the desired run mode into a hidden variable in your form's HTML:
    ... more stuff <input type="hidden" name="rm" value="master_edit" /> ... more stuff ...
  • Finally, you'll need to code your run mode's sub. You probably know how to do that already. ;-)
  • -------------------------------------
    Nothing is too wonderful to be true
    -- Michael Faraday