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/html/wwhelp....
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?
Views
Replies
Total Likes
by the way, If i set my process to be short-lived process. and change
var token:AsyncToken = addNewMember.invoke_Async(params); to
var token:AsyncToken = addNewMember.invoke(params);
Everything works fine.
Views
Replies
Total Likes
nvm, the codes work fine. the user i logged in to flex application didn't have permission to call process. I will open another thread for this permission problem.
Views
Replies
Total Likes
Thanks for letting us know... I was starting to build a sample
Views
Replies
Total Likes