XFA Specification
Chapter 11, Forms That Initiate Interactions with Servers
Invoking ADO APIs Through the Source Set DOM
345
Template features used with the Source Set DOM
Fields bound to columns in the data base
In the example the table (or view) being queried has two columns, for a contact’s first and last name.
These columns are bound to fields in the form using the
bind
property of each field. A skeleton of the
template for the two fields is as follows:
<field ...>
<value>
<text/>
</value>
<ui>
<textEdit/>
</ui>
<bind
match="dataRef" ref="$record.contact.FirstName"/>
</field>
<field ...>
<value>
<text/>
</value>
<ui>
<textEdit/>
</ui>
<bind
match="dataRef" ref="$record.contact.LastName"/>
</field>
The push buttons
In the example the form has a separate button for each database function. The skeleton for a typical
button is shown below:
<field name="FFButton7" ...>
<ui>
<button/>
</ui>
<caption>
<value>
<text>Del</text>
</value>
</caption>
<event activity="click">
<script>$sourceSet.FFADOData1.delete()</script>
</event>
</field>
When the button in the example is pressed it deletes the current record from the record set.
FFADOData1
is the name of the
source
object which controls the query.
Home Index Bookmark Pages
Pages: Home Index All Pages