submitted data from drop-down list


hello all,

i got following problem:
i made xdp template drop-down box following databinding:

  1
  groningen


  2
  veendam


  3
  enschede


the dynamic properties of drop-down list are:

binding: $record.location[*]
item text: city
item value: id

when preview form in livecycle designer showing 3 locations good. when submit form, submitting 3 locations. possible form submits selected data drop-down list?

when use dynamic property feature, you're causing data mapped via schema loaded in data connection imported form @ runtime (when previewing in acrobat or running form in acrobat stand-alone). because of this, data becomes part of data model , therefore submitted along other data. until designer lets specify alternate data file specific purposes of dynamic properties feature (and data can therefore discarded once list has been populated), goes same data model , submitted together.

in order form submit selected value in drop down list, you'll need add empty node data file drop down list's value bound. when use dynamic properties populate list, you're not creating bindings between field , node in schema (which maps location in data file). think of dynamic properties one-way or import-only function. adding empty node (called listselection in sample):
 <data> 
<location>
  <id>1</id>
  <city>groningen</city>
</location>
<location>
  <id>2</id>
  <city>veendam</city>
</location>
<location>
  <id>3</id>
  <city>enschede</city>
</location>
<listselection/>
</data>

and explicitly binding drop down list (by specifying "$record.listselection" default binding on object palette's binding tab), you'll cause value (selected item) of drop down list loaded (in case, empty) , saved node in data. consuming application (the 1 later loads data interpret it) have ignore <location> nodes.

i've attached sample form has drop down list hooked-up data file listed above. uses dynamic properties populate list , explicit binding listselection node load/save data. load data form, open in acrobat, choose "form data | import data form..." "file" menu , choose data.xml file included in zip file.

stefan
adobe systems


More discussions in LiveCycle pre-ES (6.x and 7.x) discussions


adobe

Comments