Hi,
I'm using LLApi (https://knowledge.opentext.com/knowledge/cs.dll/fetch/-15106263/15106294/16113761/18493266/54520049/55315694/55970301/56066538/M_Opentext_LAPI_LapiDocuments_RunReport_1.htm) from ES 10.5 in order to execute LiveReports from my CS 10.5. For reports without parametes everything works as expected. Have you guys any idea about how should I Create the LLList of params? Tried in this way but doesn't work.
import Ixos.Scan.Extension.Livelink;
import OpenText.Imaging.LLAPI;
import OpenText.Imaging.LLAPI.Base;
import System.Windows.Forms;
...
... blah blah lapisession blah blah
...
var lapiDocument : LapiDocuments = new LapiDocuments(Context["lapisession"]);
var params : LLList = new LLList();
var assocFolder : LLAssoc = new LLAssoc();
var assocFile : LLAssoc = new LLAssoc();
var rec : LLRecArray = new LLRecArray();
//first livereport's parameter
assocFolder.Add("InputType",new LLString("Integer"));
assocFolder.Add("Label",new LLString("inputlabel1"));
assocFolder.Add("Value",new LLInteger(245657))
//second livereport's parameter
assocFile.Add("InputType",new LLString("String"));
assocFile.Add("Label",new LLString("inputlabel2"));
assocFile.Add("Value",new LLString("test.jpg"))
params.Add(assocFolder);
params.Add(assocFile);
rec = lapiDocument.RunReport(0,813772,params);
IXClient.log:
ERROR 2015/09/07 15:11:18.602 EnterpriseScan.exe:2296\CCLayerU_Scan.dll:2620 <N/A>,1 MSG0 Ixos.Scan.App.Scripting.ScriptEngineCodeDOM.Execute(): Error during script execution!ERROR 2015/09/07 15:11:18.602 EnterpriseScan.exe:2296\CCLayerU_Scan.dll:2620 <N/A>,1 MSG0 Ixos.Scan.App.Scripting.ScriptEngineCodeDOM.Execute(): Input Parameter ? is not in the order expected by report.ERROR 2015/09/07 15:11:18.602 EnterpriseScan.exe:2296\CCLayerU_Scan.dll:2620 <N/A>,1 MSG0 Ixos.Scan.App.Scripting.ScriptEngineCodeDOM.Execute(): Exception has been thrown by the target of an invocation.ERROR 2015/09/07 15:11:18.602 EnterpriseScan.exe:2296\CCLayerU_Scan.dll:2620 <N/A>,1 MSG0 Ixos.Scan.Indexing.PreArchiveScript.Execute(): ERROR: System.Exception: Error during 'PreArchive' script execution. Input Parameter ? is not in the order expected by report.ERROR 2015/09/07 15:11:18.602 EnterpriseScan.exe:2296\CCLayerU_Scan.dll:2620 <N/A>,1 MSG0 at Ixos.Scan.App.Scripting.ScriptEngineCodeDOM.Execute()ERROR 2015/09/07 15:11:18.602 EnterpriseScan.exe:2296\CCLayerU_Scan.dll:2620 <N/A>,1 MSG0 at Ixos.Scan.Indexing.PreArchiveScript.Execute(IConfigNode config, ITransaction transaction, IDocument document, String& errorMessage)
Thank you. R.