Skip to main content
Kofax

Retrieve Available Capture Values

15331

QAID # 15331 Published

Question / Problem:

I want to implement the same functionality in the Export Connector Setup screen where, when an Index Field is selected, a popup menu is displayed showing the available Document and Batch Index Fields, Capture Values, etc.

How can I retrieve the available Kofax Capture Values?

Answer / Solution:

These are contained in the BatchVariables collection in the ReleaseSetupData object. Below is a method that returns a list of these items:

public static List< string> GetBatchVariableNames(ReleaseSetupData SetupDat)
{
if (BVNames == null)
{
BVNames = new List<string>();
System.Collections.IEnumerator iMyEnum =
(System.Collections.IEnumerable)SetupDat.BatchVariableNames).GetEnumerator();
iMyEnum.Reset();
while (iMyEnum.MoveNext())
{
BVNames.Add((string)iMyEnum.Current);
}
GC.KeepAlive(iMyEnum);
}
return BVNames;
}

Applies to:

Product Version
CAPTURE 8.0
  9.0
  • Was this article helpful?