3 Replies Latest reply on May 21, 2009 2:05 PM by MarcelBoucher

    Invoke long process in flex application

    zubinshi Level 1

      There is a long process I created in workbench to save a new member.

       

      I following a guide here http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/common/ht ml/wwhelp.htm?context=sdkHelp&file=000261.html

       

      There were no errors showed up by calling the process in flex application, but the process wasn't called(by use recording and play process).

       

      btw, the process itself works fine if i invoke the process in workbench.  following are my codes:

       

      public function CreateNewMemberManager(memberId:String, firstName:String, lastName:String, dob:Date)

      {

      addNewMember.channelSet=ChannelSetHelper.getRemoteObjectInstance().channelSet;

      addNewMember.addEventListener(ResultEvent.RESULT, resultHandle);

       

      this.firstName = firstName;

      this.lastName = lastName;

      this.memberId = memberId;

      this.dob = dob;

      }

       

      //This method invokes the "add new member" process

      public function executeInvokeProcess():void

      {

      //Create an Object to store the input value for the EncryptDocument process    

      var params:Object=new Object();

      params[FIRST_NAME]= firstName;

      params[LAST_NAME]= lastName;

      params[MEMBER_ID]= memberId;

      params[DOB]= dob;

       

      var token:AsyncToken = addNewMember.invoke_Async(params);

      }

       

      // This method handles a successful conversion invocation

      private function resultHandle(event:ResultEvent):void{

      Alert.show("Member: "+memberId+" is created!");

      }

       

      any idea?