Announcement Announcement Module
Collapse
No announcement yet.
Access the action-state directly before the start of actual flow. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Access the action-state directly before the start of actual flow.

    I am new to web-flow so please bear with me.

    I want to directly access action state from the given webflow. For eg. If I am trying to access

    "/ecommerce?eventId=addToCart" this is redirecting me to the default view-state which is selectProduct. This call should be made from ajax.

    Following is excerpt from my ecommerce flow

    Code:
    <view-state id="selectProduct" view="pages/ecommerce/products">
    	<transition on="addToCart" to="addProductToCart"/>
    </view-state>
    
    <action-state id="addProductToCart">
    	<evaluate expression="eCommerceService.addRateCard()" />
    	<render
    </action-state>
Working...
X