Announcement Announcement Module
Collapse
No announcement yet.
Flow requestParameters input mapping Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Flow requestParameters input mapping

    Folks,
    I should be able to do this at the top of my flow definition (SWF 2.0.8.RELEASE) to capture a request parameter into a flowScope variable, right?
    Code:
    <input name="command" value="flowScope.commandId" type="int"/>
    It doesn't work so I have to do this in a transition to capture the value:

    Code:
            
    <transition to="detail" on="detail">
        <set name="requestScope.commandId" value="requestParameters.command" type="int" />
        <evaluate expression="myExpressionHere.get(commandId)" result="flowScope.xyz"/>
    </transition>
    Is this a bug or am I mis-reading the documentation?

    Jon

  • #2
    If you would implement it correctly it works... Currently you are assigning the value of flowScope.commandId to a attribute named command.

    Comment


    • #3
      But if I change the request to

      Code:
      <input name="command" value="requestParemeters.commandId" type="int"/>
      I get some gnarly exception about the request parameters not being found. Thoughts?

      Comment


      • #4
        input mapping only works at the start of a flow, not from a transition, instead of specifing requestParameters simply put 'commandId' webflow will try to detect it from somewhere.

        Next to that 'requestParemeters' isn't a valid name 'requestParameters' is.

        Comment

        Working...
        X