From my understand, you need to create your own DataSubmissionService (and replace the default one using ServiceLocator) which inherit from original one, then you override the method PerformDataSubmit add your extra data to the SubmitActionResult object returned. That return object will be send to client which you can catch from javascript.
Since the result of the actor's Run method is not sent in SubmitActionResult, you only can modify the PostSubmissionActorBase.SubmissionData to add your extra information then catch it in your DataSubmissionService.
Thanks for reply!
Yes, I know that injecting my own services is possible to achieve the goal. But is there any build in mechanism into Forms that allow me to propagate result from Run method to the response from controller (out of the box)?
Thanks,
Tomasz
Currently, there is no mechanism like that, but it might be consider as a feature request and implement in future.
Thanks
Hello,
Is there any possibility to pass data from custom PostSubmissionActor Run(object input) method to be available in java script?
I already created custom PostSubmissionActor, set IsSyncedWithSubmissionProcess to true, created custom object that is returned from Run method and I am wondering if there is possibility to somehow get object that is returned from method in view in java script event handler.
FYI: During my investigations I saw that DataSubmissionService is responsible for running ActorsExecutingService that is responsible for running particular PostSubmittionActors but I do not found place where the result of Run method is propagated to SubmitActionResult that is returned from DataSubmitController.
Could you help me with this problem?
Thanks in advance,
Tomasz