Skip to main content
Question

Aurena - execution of client side application


InfFilipV
Hero (Partner)
Forum|alt.badge.img+12

HI,
is there any way how to execute client-side application? 

Is possible to use Aurena Agent to achieve this?

E.g.: Prepare XML file in DB, save on client and provide it to client side application.
 

BR

3 replies

InfFilipV
Hero (Partner)
Forum|alt.badge.img+12
  • Author
  • Hero (Partner)
  • 197 replies
  • May 25, 2022

 I found this for APP10: Arena Agent (ifs.com), but only this (Command - Technical Documentation For IFS Cloud) in IFS Cloud docs.

So maybe it is possible like this:
agentcall Download
agentcall RunLocalMacro

Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run("""C:\Program Files (x86)\CipherGraph\LaunchStub.exe"" <filepath>")

 

is it really possible in IFS Cloud ? where is documentation then?


Forum|alt.badge.img+3
  • Sidekick (Employee)
  • 10 replies
  • October 6, 2022

I have a similar problem. I have to check if it is possible to:

  1. check out and download a document attachment from DOCMAN,
  2. modify it by execution of one program installed on a local PC,
  3. check in a new revision.

Check-out and check-in are possible with Aurena Agent, I found sample code.

However, I cannot execute a program…

The only documentation for Aurena Agent for IFS Cloud which I found is https://docs.ifs.com/techdocs/22r1/060_development/022_user_interface/030_aurena_dev/100_how_to_develop_aurena_pages/045_aurena_agent/, but it is similar to what you have found.


InfFilipV
Hero (Partner)
Forum|alt.badge.img+12
  • Author
  • Hero (Partner)
  • 197 replies
  • October 6, 2022

Hi @Piotr Dorynek,
I tried it this way:
 

execute {
   call ExportReport() into ExpVar {
      when SUCCESS {
         agentenabled into IsAgentEnabled;

         if [ExpVar.AppUrl != null and IsAgentEnabled = "TRUE"] {
            agentcall ChooseLocalFolder("Export file location") into FilePath;
            set FilePath = "${FilePath}\\${ExpVar.FileName}";
            agentcall Download("FileDataSet(LoadFileId=${ExpVar.LoadId})/FileData", FilePath) {
               when FAIL {
                  error("Something went wrong when downloading file using the Aurena Agent. Error message: ${error.Message}");
                  download "FileDataSet(LoadFileId=$[ExpVar.LoadId])/FileData";
                  exit OK;
               }
            }
            set FilePath = "${ExpVar.AppUrl}${FilePath}";
            navigate "${FilePath}";
         }
         else {
            download "FileDataSet(LoadFileId=$[ExpVar.LoadId])/FileData";
         }
      }
   }
}

In my case is opened ClickOnce application, so I can use URL with parameters.
Maybe this approach can be used also for open document with usage of local path (file://…/Desktop/file.docx), but maybe it will download it again… 

BR


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings