使用自动化服务加载具有参数化信息链接的 dxp 文件

Loading a dxp file which has a parametrized information links using Automation Services

我正在尝试在具有参数化信息 link 的自动化服务中加载分析文件。目前,当我将分析加载到自动化服务时,它会抛出一个错误,因为没有传递给 IL 的参数。

有没有办法modify/alter XML 代码将参数传递给Information Link。

考虑以下示例,其中分析打开时出现错误 "No value was provided for parameter 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>

我没有亲自做过,但根据 Automation Services manual,第 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.

关于配置块的一些一般信息:

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'");

查看 TIBCO Community wiki 以获取有关创建配置块的更多信息。 protip:不要忘记分号 :) 很容易忽略这些分号,然后在它不起作用时感到沮丧。每个单独的作业都需要一个分号,就像示例一样。