SwfConnector/formSubmitDataRequest: What route was clicked?

Good afternoon

The installer is: LiveCycle ES2, Flex3 application form.

The use case boils down to having more than one action/road available anytime, that is visible and active. Because there is more than one possible action at any time, when you run the FORM_SUBMIT_DATA_REQUEST callback occurs the first 'task' is to know which button has been clicked.

Code stub for use above is shown 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, this feature seems to be missing glaring given that:

  • Event.Target is a reference to SwfConnector, which has no property tell which button has been clicked.
  • done event.currentTarget also refers to SwfConnector;
  • The event object is actually an instance of the event class that can be confirmed using describeType().

The documentation on this is contradictory: in regards to the recall in question, the document "Creating Flex Applications enabled for.
LiveCycle Workspace ES2"is unclear:

  • Page 26 says that "set the function to return void and take a parameter of type, DataEvent. ';
  • Page 28: "private function HandleSubmitFormDataRequestListener(event:Event):void {}.

So exactly how are we supposed to apply * stream * if end users are limited to one point, click a single button?

I must be very clear that the form * must * have more than one available action: relying on hacks as hide or disable buttons depending on the State of form current is exactly that: a hack. For example, imagine that the form displays only the data (IE, the user is not allowed to change this) and just the decision of users request: approve, reject.

In addition, adding a ComboBox/RadioButtonGroup to form flex to contain the decision and have a 'Done' button is ridiculous: it makes the unnecessary out-of-the-box audit trail, it generates the decisions in the shape and not the process where they belong. So, it's also a hack!

Or have I missed some fineprint altogether?

Best regards

I've never tried, but let's try something.

Use the following method signature: private function form_onSubmitDataListener (event: SwfDataEvent): void

Then you should be able to use event.task.selectedRoute

Jasmine

Tags: Adobe LiveCycle

Similar Questions

Maybe you are looking for