SwfConnector/formSubmitDataRequest: Which route was clicked?


good afternoon,

 

setup is: livecycle es2, flex3 form application.

 

the use-case boils down having more 1 action/route available @ given moment, i.e. visible , enabled. given there more single action possible @ given time, when running callback form_submit_data_request occurs first "task" find out button clicked on.

 

the stub code above use-case illustrated below:

 

private function form_onsubmitdatalistener( event: event ) : void
{
     var route : string = ???
     
     if ( form_isvalid( route ) == false )
          return;
     
     var data : xml = form_dataemit( route );
     lcconnector.setsubmitdata( data );
}

 

unfortunately, functionality seems glaringly missing given that:

  • event.target references swfconnector, has no properties saying on button clicked;
  • event.currenttarget references swfconnector;
  • the event object instance of event class, can confirmed using describetype().

 

even documentation on matter conflicting: regards callback in question, document"creating flex applications enabled for
livecycle workspace es2" isn't clear:

  • page 26 states "configure function return void , take parameter of type dataevent.";
  • page 28: "private function handlesubmitformdatarequestlistener(event:event):void{"

 

so how supposed implement *workflow* processes if end users restricted, @ given moment, clicking on single button?

 

i must clear form *must* have more single  action available: relying on hacks such hiding and/or disabling  buttons according current form state that: hack. as  example, consider form displays data (ie, user is  not allowed change of it) , requests users decision:  approve, reject.

 

additionally, adding a  combobox/radiobuttongroup flex form contain decision and  having single "complete" button ludicrous: renders the  out-of-the-box audit trail useless, builds decisions the  form , not process should belong. a  hack!

 

or missing fineprint altogether?

 

best regards,

i've never tried let's try something.

 

use following method's signature: private function form_onsubmitdatalistener (event:swfdataevent):void

 

then should able use event.task.selectedroute

 

jasmin



More discussions in LiveCycle Workspace


adobe

Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい