Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Making/Tricking Asynch SubmitForm into Synchronous ?

Avatar

Former Community Member
We are trying to submit a PDF over the Internet that is received and then dropped to a share for pick-up (a few millisecond delay). A second process then picks up the PDF, attaches it and then sends it out. We want to execute these two events in the form.<br /><br />What happens in the following code is that the asynch submitForm event happens when it wants to (usually after the signOffEmail that picks and sends the e-mail is done executing). Ideas to make this happen in the correct order with handles or whatever? ANY input or ideas to try would be helpful! :)<br /><br />var id = 1; <br /><br />try { <br /> // Send form to server (drop folder) to e-mail <br /> event.target.submitForm({cURL:"<URL>"+id , cSubmitAs:"PDF", cCharset:"utf-8"}); <br />} <br />catch (e) { <br /> mainController.traceLog(e.message); <br />} <br /><br />// Call service to find form in drop folder, attach and send e-mail with form <br />xfa.connectionSet.signOffEmail.execute(0);
0 Replies