Question

Usage of Multiple Reports Printing in 21R2, from cEDM Class

  • 4 April 2022
  • 1 reply
  • 145 views

Badge +1

Hi @Mathias Dahl,

Currently one of the customization we are trying to uplift from App9 uses a standard method from cEDM class to print multiple reports.

 

But the standard method, which was implemented in the cEDM class, we did not seem to find in 21R2.

Could you Please, kindly let us know what is the standard method which had been having the same logic as cEDM's PrintExecuteMultiple() method. Else, if it was a different approach used in Aurena/Cloud, could you please let us know that as well.

I have herewith attached the files (cEDM) and the screenshot of the cEDM's method being used in the Uplift Customization for your reference.

 

We would be muchly appreciated if you could let us know at the earliest.

 

Ccing :- @EntHeshaH, @EntJanakB , @DinushaNuwan 


1 reply

Userlevel 7
Badge +30

Hi Suganthan, thanks for posting here.

As you know, Aurena and IFS Cloud is something completely different from the IEE platform. There is nothing like the cEDM class you could use there.

We have something that will allow you to do some of the things you could do there though: the Aurena Agent.

Here's some general information about it, how to install it and troubleshoot it:

https://docs.ifs.com/techdocs/22r1/070_remote_deploy/400_installation_options/040_aurena_agent/

Below is some development information.

Before you try to use the Aurena Agent from your code you need to check if it is enabled using the agentenabled command:

https://docs.ifs.com/techdocs/22r1/060_development/022_user_interface/030_aurena_dev/130_aurena_component_reference/120_client_controls/command/#agentenabled

Once you know the Aurena Agent is in place you can have it execute "commands" using the agentcall syntax:

https://docs.ifs.com/techdocs/22r1/060_development/022_user_interface/030_aurena_dev/130_aurena_component_reference/120_client_controls/command/#agentcall

Here is a list of commands that are currently available:

https://docs.ifs.com/techdocs/22r1/060_development/022_user_interface/030_aurena_dev/100_how_to_develop_aurena_pages/045_aurena_agent/

The best way the learn more about how it can be used is to check the source code for the Aurena pages. I recommend you start by looking at the file FileOperationCommands.fragment which is used from more or less any Aurena page that enables document file operations.

And, to get back to your exact question there, about multiple printing. It can be done using the DownloadAndPrint command. In order to print multiple files you need to provide multiple URLs and multiple file names in the odata and filename parameters, respectively. If you need to provide multiple URLs and filenames, they should be separated by the ASCII 30 character. Again, look at the source code to see how it is done. An example is the function Get_Doc_Data_Print___ in FileOperationCommands.plsvc which is used by FileOperationCommands.fragment.

A word of warning: You should keep in mind that the Aurena Agent does not work on all browsers and on all operating systems. Currently only Chrome and Edge are supported, on Windows, which rules out the use on Linux, Mac OSX and most mobile devices. We might or might not make it available for other platforms. We also have a longer term vision to move away from things like the Aurena Agent and replace it with functionality that exists "in" the web browser itself. There are no concrete plans to get rid of it, but be sure to look out for deprecation information in release notes in the future.

Good luck!

 

Reply