The Central Data Access operation provides access to certain
elements of a field-nominated data file (DAT file) within a LiveCycle
process. It extracts the ^field, ^global, ^form, and ^job commands
from the data file and transforms them into an intermediate XML
document. Your process can use XPath expressions to access the values
of specific entries within that XML file. It can use the accessed values
to make decisions, and it can pass the intermediate XML file to
other services available in LiveCycle.
Workbench provides an XPath builder dialog box that simplifies
the task of creating XPath expressions.
Note: The Central Data Access operation does not fully
convert field-nominated data files into an equivalent XML representation.
Instead, it converts specific elements into an intermediate XML
representation.
The Central Data Access operation makes it easier to integrate
existing Central Pro applications into LiveCycle. Here is an example
that uses this operation to determine the values of specific field-nominated
commands in the data file:
Invoke the Central Data Access operation to obtain the
intermediate XML representation of the commands from the data file.
Use an XPath expression to get the value of the ^job field-nominated command
(the job value).
Use the job value to determine which template to use with
the data.
Invoke the Central Merge operation to merge the selected
template with the original data file and to produce a PDF document.
Use an XPath expression to get the value of the ^field EMAILADDRESS
from the intermediate XML representation.
Invoke the Email service to send the PDF file to the job
originator through email.
The Central Data Access operation
does not run a Central command.
|
|
|