除了 IndexFields 和 BatchFields 之外,还获取 KofaxValues
get KofaxValues besides IndexFields and BatchFields
我想访问 KofaxValues。目前我知道如何使用 IndexFields 和 BatchFields,但我不知道如何在我的设置脚本中访问这些 KofaxValues。
ReleaseSetup
对象包含 IndexFields 和 BatchFields。在 Kofax Capture 管理模块中启动文本导出器时,您可以将 Kofax 值映射到您自己的值。
(语言为德语)
可以遍历字段
foreach (IndexField field in releaseSetupData.IndexFields)
{
// do something with the field
}
foreach (BatchField field in releaseSetupData.BatchFields)
{
// do something with the field
}
但是在哪里可以找到 Kofax 值?我使用 Kofax Capture 导出类型库 API 参考指南
编辑:
说到发布,我知道我可以做类似的事情
foreach (Value val in releaseData.Values)
{
bool isKofaxValue = val.SourceType == KfxLinkSourceType.KFX_REL_VARIABLE;
if (val.TableName.IsEmpty())
{
string sourceName = val.SourceName;
string sourceValue = val.Value;
// ...
}
}
但我不知道如何从设置对象访问它们。
一个伪代码示例是
foreach (KofaxValue val in releaseSetupData.KofaxValues)
{
releaseSetupData.Links.Add(val.Name, KfxLinkSourceType.KFX_REL_VARIABLE, val.Name);
}
快到了。它们可以在 SetupData
对象的 BatchVariableNames
集合中找到。以下示例将它们全部添加到 Links
集合中,即将它们公开以供发布:
foreach (var item in setupData.BatchVariableNames)
{
setupData.Links.Add(item, KfxLinkSourceType.KFX_REL_VARIABLE, item);
}
我想访问 KofaxValues。目前我知道如何使用 IndexFields 和 BatchFields,但我不知道如何在我的设置脚本中访问这些 KofaxValues。
ReleaseSetup
对象包含 IndexFields 和 BatchFields。在 Kofax Capture 管理模块中启动文本导出器时,您可以将 Kofax 值映射到您自己的值。
(语言为德语)
可以遍历字段
foreach (IndexField field in releaseSetupData.IndexFields)
{
// do something with the field
}
foreach (BatchField field in releaseSetupData.BatchFields)
{
// do something with the field
}
但是在哪里可以找到 Kofax 值?我使用 Kofax Capture 导出类型库 API 参考指南
编辑:
说到发布,我知道我可以做类似的事情
foreach (Value val in releaseData.Values)
{
bool isKofaxValue = val.SourceType == KfxLinkSourceType.KFX_REL_VARIABLE;
if (val.TableName.IsEmpty())
{
string sourceName = val.SourceName;
string sourceValue = val.Value;
// ...
}
}
但我不知道如何从设置对象访问它们。
一个伪代码示例是
foreach (KofaxValue val in releaseSetupData.KofaxValues)
{
releaseSetupData.Links.Add(val.Name, KfxLinkSourceType.KFX_REL_VARIABLE, val.Name);
}
快到了。它们可以在 SetupData
对象的 BatchVariableNames
集合中找到。以下示例将它们全部添加到 Links
集合中,即将它们公开以供发布:
foreach (var item in setupData.BatchVariableNames)
{
setupData.Links.Add(item, KfxLinkSourceType.KFX_REL_VARIABLE, item);
}