我正在尝试在Automation Services中加载具有参数化信息链接的分析文件。目前,当我将分析加载到Automation Services时,它会抛出一个错误,因为没有传递给IL的参数。
是否有办法修改/更改XML代码以将参数传递给信息链接。
考虑以下示例,其中分析打开时出现错误“没有为参数NumberList提供值”。任何实现这种方法的想法都会有所帮助。
<?xml version="1.0" encoding="utf-8"?>
<as:Job xmlns:as="urn:tibco:spotfire.dxp.automation">
<as:Tasks>
<OpenAnalysisFromLibrary
xmlns="urn:tibco:spotfire.dxp.automation.tasks">
<as:Title>Open Analysis from Library</as:Title>
<AnalysisPath>/Library/Docs/Automation</AnalysisPath>
</OpenAnalysisFromLibrary>
</as:Tasks>
</as:Job>
答案 0 :(得分:1)
I haven't personally done this, but according to the Automation Services manual, page 24:
[When setting up a Load Analysis task] you can use a configuration block to configure the initial state of the analysis file that you want to open, such as applying a bookmark, or setting a filter to the analysis before it is opened.
some general info on configuraion blocks:
In the following example, the first two lines are parameter assignments, the following lines are configuration statements:
Region = "West";
Acme.Limits = { 10, 100, 1000 };
SetPage(pageTitle = "Overview");
ApplyBookmark(bookmarkName = "UserRegionOnly");
SetFilter(tableName = "Table 1", columnName = "Column 1", values = { "A", "B" });
SetMarking(tableName = "Table 2", whereClause = "Gender = 'Male' AND GeekFactor = 'High'");
check the TIBCO Community wiki for more info on creating config blocks. protip: DON'T FORGET THE SEMICOLONS :) very easy to omit those and then get frustrated when it doesn't work. each individual assignment needs a semicolon, just like the example.