Update the runtime data file with the recognized text

After you locate the data field, you must write the data to the runtime hierarchy.

You write data to the runtime hierarchy by using the UpdateField action from the Locate library. The UpdateField action updates the page data file with the recognized value and position of the located word.

The CreateFields action is responsible for setting up each field in the runtime hierarchy. Initially both the field position and the field data are empty, as shown in the left column on the following example. The right column shows the field after it is populated by using the UpdateField action. The position information is used later to display the corresponding image snippet to the operator during verification.

After CreateFields(): After UpdateField():
<F id="Pickup_Date">
   <V n="TYPE">Pickup_Date</V>
   <V n="Position">0,0,0,0</V>
   <V n="STATUS">0</V>
</F>
<F id="Pickup_Date">
   <V n="TYPE">Pickup_Date</V>
   <V n="Position">539,419,789,452</V>
   <V n="STATUS">0</V>
   <C cn="10" cr="543,423,565,444">77</C>    M
   <C cn="10" cr="570,429,585,444">111</C>   o
   <C cn="10" cr="588,429,600,444">110</C>   n
   <C cn="9" cr="605,440,610,448">44</C>     ,
   <C cn="9" cr="0,0,0,0">32</C>
   <C cn="9" cr="620,423,628,444">74</C>     J
   <C cn="10" cr="630,429,643,444">97</C>    a
   <C cn="10" cr="648,429,660,444">110</C>   n
   <C cn="9" cr="0,0,0,0">32</C>
   <C cn="10" cr="674,423,685,444">49</C>    1
   <C cn="10" cr="689,423,704,444">48</C>    0
   <C cn="9" cr="705,440,710,448">44</C>     ,
   <C cn="9" cr="0,0,0,0">32</C>
   <C cn="10" cr="723,423,735,444">50</C>    2
   <C cn="10" cr="739,423,754,444">48</C>    0
   <C cn="10" cr="756,423,769,444">49</C>    1
   <C cn="10" cr="774,423,785,444">49</C>    1
</F>