cancel
Showing results for 
Search instead for 
Did you mean: 

Data Binding

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Sorry,

Should have said, I need to do this in Livecycle.

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks for the help, I will give it a try.

I have only been working with livecycle/SAP for 2 months so I am not aware of any better ways to do the binding so If it works, then it will save hours of field mapping between SAP and Livecycle.

Thanks for the help.