1

I'm pretty new to adobe forms development. I'm using LiveCycle Designer to create a PDF that is bound to an XML document. My .NET solution will generate an XML structure that is placed in an XDP form that has the PDF form template embedded in it. When the form is opened, the data binding, will bind to the form/subforms to create rows, etc. I have that portion working, but I'm not sure how to reference the current xml node while the binding is occurring so that I can grab values needed for formatting logic, performing calculations etc. I'm using JavaScript during the initialize events. Can anyone point me to a good resource for this or provide a sample?

Thanks for your help!

Some additional detail: I have an xml structure like so:

<DeviceTypes>
  <DeviceType>
   <Records>
     <Record>
       <RecordId>1</RecordId>
       <Order>1</Order>
           <Columns>
             <Column>
                 <ColumnId>1</ColumnId>
                 <Value>Test</Value>
             </Column>
             <Column>
                <ColumnId>2</ColumnId>
                <Value>Test2</Value>
             </Column>
           </Columns>
        </Record>
    </Records>
</DeviceType>
</DeviceTypes>

I have a subform bound to DeviceType which repeats vertically. Then a subform bound to Record which is repeats vertically. Then a subform bound to Columns repeating horizontally (creating table columns) and then within that a repeating table bound to Column with a Row containing a text box bound to Value.

I'm performing calculations during the Row.Value::initialize event, but not sure how to access the underlying XML node and traverse up.

For example, if I want to concat Value and ColumnId, what would be the javascript for that? Or if I wanted to concat Value with its parent Record Order?

I've tried this on the Row Value initialize event to concat Value and ColumnId but it didn't work:

this.rawValue = this.rawValue + this.parent.dataNode.resolveNode("ColumnId").value;
  • Welcome to StackOverflow. This site is about specific *coding* questions. So you'll probably get better responses if you post the portion of code you have problems with. – mabi Jun 12 '14 at 18:25
  • Thanks @mabi, I provided some additional detail. – user1100272 Jun 13 '14 at 02:02

0 Answers0