I'm building out an application and have been running into some issues with exporting fields from pages.
My end goal is to copy the fields from multiple pages of a scanned document and export them to an xml. The extra pages contain the same fields and values as that first page. I've been having inconsistent results when exporting the fields though. With my current ruleset, I can get my desired results on a document with 2 pages, but exporting one single page document or a document with 3 or more pages is where everything gets inconsistent.
The action I'm using is CopyFieldAndChildren for this with the following parameters:
@D\Page
@P\Field2
Looking at some of the rrs logs, it appears the function just skips running over the first page and starts to copy the fields from the 2nd page onward.
The export results on the 2 page document gives me the desired xml formatting.
<?xml version="1.0" encoding="UTF-8"?>
<Tag>
<FileName>20230712.000000.01.tif
<DATA>
<TYPE>P.TYPE</TYPE>
<Field1>Value</Field1>
<Field2>Value2</Field2>
</DATA>
</FileName>
</Tag>
These are the results I run into with 1 page:
<?xml version="1.0" encoding="UTF-8"?>
<Tag>
<FileName>20230712.000001.01.tif</FileName>
</Tag>
And results from 3 or more pages:
<?xml version="1.0" encoding="UTF-8"?>
<Tag>
<FileName>20230712.000002.01.tif
<DATA>
<TYPE>P.TYPE</TYPE>
<Field1>Value1</Field1>
<Field2>Value2</Field2>
</DATA>
<DATA>
<TYPE>P.TYPE</TYPE>
<Field1>Value1</Field1>
<Field2>Value2</Field2>
</DATA>
<DATA>
<TYPE>P.TYPE</TYPE>
<Field1>Value1</Field1>
<Field2>Value2</Field2>
</DATA>
</FileName>
</Tag>
Is there a better action to use for copying fields for exporting to XML actions, or am I a bit stuck here?
------------------------------
Matt May
------------------------------