These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Binding issue between choice in XML and e-form fields

nouknouk
Registered: May 14 2007
Posts: 2

Hi everybody,

I am unable to well bind my XSD schema (containing choices) with fields in a subformSet of my e-form.
Here is the complexType of the instance i would like to bind :

(where Months is a complex type and Quarters is a collection of the Quarter complex type).

After having created a new eform, imported my XSD file and dragged and dropped the entry that corresponds to the type above, I get a structure like that in my form's hierarchy:

[...]
Period
(Untitled Subform Set)
(untitled Subform)
Date
Months
StartMonth
EndMonth
Quarters
Quarter
Year
Quarter

Then, I switch to the 'PDF preview' view, and I get only the Date element shown (ok, as the choice is an exclusive one).

My problem is that i would like to be able to choose which one of the choices is enabled to:
- display the right sub-field(s) collection and let the user fill it (Date, Months Xor Quarters).
- choose which one of the choice has to be serialized when I export data in an XML file.

I've tried to use the setInstances() function on several different parts of my hierarchy but it doesn't seem to work.

What is wrong ?

Many thanks in advance.

pdftrainer
Expert
Registered: Dec 14 2005
Posts: 180
I'd suggest you post over at the LiveCycle Designer forum instead of here. We are pretty focused on Acrobat.

http://www.adobeforums.com/cgi-bin/webx/.3bb7d189/

Carl Young
www.pdfconference.com

A certified expert on Adobe Acrobat, Carl Young is an Adobe Acrobat and LiveCycle Designer trainer and consultant based in Phoenix. He is the producer of the [link=http://www.pdfconference.com/]PDF Conference[/link].

crodriguez1976
Registered: Jul 2 2008
Posts: 1
nouknouk,
did you ever find a way to correct this issue? i'm having a very simular issue and need help.

i can bind multipule schema elements, but not when they are contained within (choice groups). how can i bind all the elements within a choice group?

here is the javascript i'm using to bind multipule schema elements when they are not within a choice group. Where form = the the name of the subform in the schema and element1 and 2 = the two elements i'm binding to.

// Concatenate the address information.

this.rawValue = $record.ReturnData.Form.element1.value + '\u000a' +
$record.ReturnData.Form.element2.value;