Question

Aurena - execution of client side application


Userlevel 6
Badge +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

Userlevel 6
Badge +12

 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?

Badge +3

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.

Userlevel 6
Badge +12

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