on 05-15-2008 1:29 AM
Hi Experts
I am very new to ADOBE forms and need some explainations please.
in Javascript, please tell me the what are the difference in "xfa.record..", "xfa.layout..", "xfa.form...", "xfa.datasets..", "xfa.data.."
I am reading Adobe pdf manual but can't seem to find the answer.. Thanks
Points will be rewarded for any reply.
Hi Liem,
Dont know if you have the below guide or not, It might be very helpful for you.
http://partners.adobe.com/public/developer/en/tips/CalcScripts.pdf
Regards,
Arafat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
clemens.li I would use either this html version: https://help.adobe.com/en_US/livecycle/11.0/DesignerScriptingRef/index.html or this PDF version that can be downloaded (I prefer this so I can save a long term reference): https://helpx.adobe.com/pdf/aem-forms/6-3/scripting-reference.pdf
Hi Liem,
xfa is used as accessor of form properties. For example xfa.record accesses a record say in a table, xfa.layout access the layout of an UI element, xfa.form accesses the form properties, xfa.datasets.data represents the root of the data model and so on.
Similar to these following are also some accessors:
(To see it correctly go to designer help and search with keyword xfa and choose accessor syntex).
Accessor syntax
The following table outlines the correct syntax for all accessors.
Notation Description
$ (FormCalc)
this (JavaScript)
Refers to the current field or object. For example:
$ = "Tony Blue"
this.rawValue = "Tony Blue"
The above examples set the value of the current field or object to Tony Blue using both FormCalc and JavaScript.
Note: These accessors must appear at the beginning of a hierarchy reference, that is, before the first period.
!
Represents the root of the data model, xfa.datasets. For example:
!dbresults
is equivalent to:
xfa.datasets.dbresults
Note: This accessor must appear at the beginning of a hierarchy reference, that is, before the first period.
$data (FormCalc)
xfa.datasets.data (JavaScript)
Represents the root of the data model, xfa.datasets.data. For example:
$data.purchaseOrder.total
is equivalent to:
xfa.datasets.data.purchaseOrder.total
Note: This accessor must appear at the beginning of a hierarchy reference, that is, before the first period.
$template (FormCalc)
xfa.template
(JavaScript)
Represents the root of the template model, xfa.template. For example:
$template.purchaseOrder.item[1]
is equivalent to:
xfa.template.purchaseOrder.item[1]
Note: This accessor must appear at the beginning of a hierarchy reference, that is, before the first period.
$form (FormCalc)
xfa.form (JavaScript)
Represents the root of the form model, xfa.form. For example:
$form.purchaseOrder.tax[0]
is equivalent to stating:
xfa.form.purchaseOrder.tax[0]
Note: This accessor must appear at the beginning of a hierarchy reference, that is, before the first period.
$layout (FormCalc)
xfa.layout (JavaScript)
Represents the root of the layout model, xfa.layout. For example:
$layout.purchaseOrder.tax[0]
is equivalent to stating:
xfa.layout.purchaseOrder.tax[0]
$record (FormCalc)
xfa.record (JavaScript)
Represents the current record of a collection of data, such as from an XML file. For example:
$record.header.txtOrderedByCity
references the txtOrderedByCity node within the header node of the current XML data.
Note: This accessor must appear at the beginning of a hierarchy reference, that is, before the first period.
$event (FormCalc)
xfa.event (JavaScript)
Represents the current form object event. For example:
$event.name
is equivalent to:
xfa.event.name
Note: This accessor must appear at the beginning of a hierarchy reference, that is, before the first period.
For more information see About the event accessor.
$host (FormCalc)
xfa.host (JavaScript)
Represents the host object. For example:
$host.name
is equivalent to:
xfa.host.name
Note: This accessor must appear at the beginning of a hierarchy reference, that is, before the first period.
For more information, see About the host accessor.
Hope it will help.
Regards,
Vaibhav Tiwari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.