on 01-23-2012 3:10 PM
Hi all,
Can anyone give me an example script for binding a variable or a calculated value to an object in the data view?
At the moment I am having to create budget tables and bind each cell to the data view object, but I need a way to do this dynamically to save space on the form and improve performance.
If you can help it would be greatly appreciated.
Thanks
Sorry,
Should have said, I need to do this in Livecycle.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steve,
You can use following script for setting values in the DataView, without using Tables, structures on the form:
FIHDATA is the node with 1..1 cardinality and TOTAL is an attribute under it, LV_SUM is variable and can have any value:
$record.FIHDATA.TOTAL = lv_sum
For setting values in the table:
var List = ref( xfa.record.FIIDATA )
var i = 1
for i = 0 upto 10 step 1 do
List.nodes.item(i).TOTAL.value = lv_sum
endfor
Hope this will help you.
Amit
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.