on 12-17-2013 4:09 PM
In my Adobe Interactive form,
I have Course Type ID and Course Name fields.
Course name is a dropdown that gets filled in the Form Ready event and the "Specify Item Values" is attached to
!connectionData.FetchCourseType.Body.ZFETCHCOURSETYPEResponse.ZCOURSETYPES.item[*]
Now in the TAB event of Course Type ID, I am fetching the Course name and adding to the above dropdown.
But it is adding duplciates.
So to delete the duplicates, I need to read the WebService response in the TAB even of Course ID.
I tried something like
particulars = xfa.datasets.resolveNode("this.parent.COURSENAME");
(var i = 1; i < particulars.nodes.length; i++)
{
p = particulars.nodes.item(i);
But here p.vlaue is blank
break;
}
Can you please provide suitable syntax to achieve this?
Try this code:
var particulars = this.parent.COURSENAME.resolveNode("#items");
this will bring the dropdown list into the variable particulars
then
for (var i = 1; i < particulars.nodes.length; i++)
{
p = particulars.nodes.item(i);
here p.value will have the dropdown line by line;
add your valdiations etc
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had to umark this as correct.
The above code is helpful in reading the dropdown.
p.value is returning the Course Name but I still have an issue in that I have compare the Course ID in the first field against the course ID bound to the dropdown and then fill proper text.
So this is still not working from the above code.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.