Announcement Announcement Module
Collapse
No announcement yet.
How to redirect to other action inside view-state ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to redirect to other action inside view-state ?

    HI all, i have a view-state:

    Code:
    <view-state>
    
    		<transition on="REGISTER" to="buttonCheck"  >?????</transition>
    		
    		<transition on="ADD" to="xxx"></transition>
    
    		<transition on="UPDATE" to="yyy"></transition>
    
    </view-state>
    I have a question, how i can do this thing ?

    When i submit form with "REGISTER" action.
    If "flowScope.button=='copy'", redirect to ADD action
    If "flowScope.button=='change'", redirect to UPDATE action

    Please help me how to do. Thank in advance!
Working...
X