cancel
Showing results for 
Search instead for 
Did you mean: 

Read the data from the dataview in AIF

Former Member
0 Kudos

Hi,

One basic question. In my dataview I have plenty of fields and few of them I have added it in the form. In the form I want to do some validation based on the field which I did not add it in the form.

I don't know how to read the dataview. But all the time I added those field into the form(Hidden) if it require for validation. I dont want to do that again and again.

How can I read the dataview fields in both scripting language. It will be really appreciated.

Thanks

GJ

Accepted Solutions (1)

Accepted Solutions (1)

OttoGold
Active Contributor
0 Kudos

Example:

var List = ref(xfa.record.lists.list1)
var i = 0
while ( List.nodes.item(i+1).value ne "3")do
$.addItem (List.nodes.item(i).value,List.nodes.item(i+1).value)
i = i + 2
endwhile

comes from: http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf

Otto

Former Member
0 Kudos

Hi Otto,

Thanks for your response.

var List = ref(xfa.record.lists.list1) -- so list1 is the field in the context list1. If my understanding is correct, "Var List" will hold the current record list value ?.

Any example for javascript to read the dataview?. Please let me know which is the rightway, like add the fields on the form and use that value for validation or read it from the dataview?

Thanks

GJ

Answers (0)