如何在Kofax Transformation脚本中使用批处理字段名称 [英] how to use batch field name in Kofax Transformation Script

查看:104
本文介绍了如何在Kofax Transformation脚本中使用批处理字段名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Kofax捕获中创建了一个批处理字段,名称为 Invoice_from _Email

I have created a batch field in Kofax capture as " Invoice_from _Email"

我需要在KTM脚本中调用以将其值设置为true。

which i need to call in KTM script to assing its value as true.

如何在KTM脚本中调用批处理字段值??

how can i call the batch field value in KTM script.?

推荐答案

如何执行此操作有两种不同的选择。

There are two different options on how to do this.

映射批处理/根文件夹字段:
绘制字段。在Project Builder中,打开项目设置,然后在常规选项卡上选中启用文件夹。这会将KC批处理映射到KTM根文件夹,并且不需要您实际创建任何其他文件夹。然后,您可以在根文件夹上创建一个大概命名为 Invoice_from_Email的字段,您可以将其映射到同步工具中批处理类的KC字段。

Mapping a batch/root folder field: The first would be to map the field. In Project Builder open Project Settings and check "Enable folders" on the General tab. This maps the KC batch to the KTM root folder and does not require you to actually create any additional folders. Then you can create a field, presumably named "Invoice_from_Email",on the root folder which you will be able to map to a KC field in the Synchronization Tool for the batch class.

因为该字段已映射,所以您具有读/写访问权限。

Because the field is mapped, you have read/write access.

要从脚本中使用它,将是:

To use from script it would be:

pXRootFolder.Fields.ItemByName("Invoice_from_Email").Text

无映射的只读访问权限

pXRootFolder.XValues.ItemByName("AC_FIELD_" & BatchFieldName)

来自文档:


注意如果无法通过脚本访问字段值,则需要
来检查是否选中了在脚本中填充只读访问
的所有索引字段选项在 Kofax转换模块-同步工具的扩展同步设置
窗口中。
此选项默认情况下是清除的,仅在安装Kofax Capture
10.0.2(Service Pack 2)或更高版本时可用。

Note If you cannot access the field values via script, then you need to check whether the "Populate all index fields for read-only access in script" option is selected on the Extended Synchronization Settings window of the Kofax Transformation Modules - Synchronization Tool. This option is cleared by default, and available only if Kofax Capture 10.0.2 (service pack 2) or a newer version is installed.

如果您没有看到此设置,则表示您在添加该版本之前就拥有该版本,而不必担心。

If you don't see this setting it means you have an version prior to when it was added and you don't have to worry about it.

这篇关于如何在Kofax Transformation脚本中使用批处理字段名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆