• DetlefR
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hello,

Is there a way to use urlfor($Action.Account.New) from a custom controller? I'm trying to redirect a user to a new Account page after performing an action on the server. I have a command button w/ an "action" attribute pointing to a custom save function in the controller named "newAccount()". After updating other Accounts I'd like to redirect the user to a new Account page, passing in certain parameters.

I can't find a way to get to the $Action global variable in the controller. Is there a way to do this? I thought about passing the $Action.Account.New to a property on the controller, but that seems hacky and kinda messy.