Announcement Announcement Module
Collapse
No announcement yet.
How to run code before displaying view in view-state? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to run code before displaying view in view-state?

    How to run code before displaying view in view-state? this does not work.

    <view-state id="testing" view="SchoolVisitReportSmall.jsp" model="visit">
    <evaluate expression="flowActions.initializeView()" />
    <transition on="submit" to="endState" />
    <transition on="cancel" to="endState" bind="false"/>
    </view-state>

  • #2
    Hello there

    Try putting the <evaluate ..../> inside an <on-entry> or <on-render> tag. on-entry is executed first, on-render just before rendering the view.

    Comment

    Working...
    X