2 Replies Latest reply on May 29, 2008 11:23 AM by Daniel Bevenius

    Access field of an Object in a Controller variable

    Daniel Bevenius Master

      Hi,

      I'm trying to access a field (firstName) of an Object instance (entireCustomerAsObject) like this:

      <task-node name="Review Order" async="true">
       <task name="Order Review">
       <assignment actor-id="user"/>
       <controller>
       <variable name="entireCustomerAsObject.firstName" access="read,write,required" mapped-name="customer_firstName"/>
       </controller>
       </task>
       <transition name="" to="Calculate Discount"/>
      </task-node>
      

      An object named 'entireCustomerAsObject' exists and is populated (if I remove the '.firstName' the object toString method is invoked and displayed in the form).
      Is it possbile to access a field of an object in the name attribute field like shown above? I've tried different combinations but without success.

      Thanks,

      /Daniel