Expand my Community achievements bar.

strange behavior with XDP runtime data in Multiple Selection ListBox - Lifecycle 8.0

Avatar

Former Community Member
Couldn't find any forums for Lifecycle Designer 8.0 (only for ES, 6.0/7.0) so posting here... don't mean to cross-post, but this is also listed in the ES thread. <br /><br />I've encountered some strange behavior with Multiple Selection ListBox created in LifeCycle Designer 8.0 (as a Dynamic PDF (XML) form), in that when a user in Reader 8 or Pro 8 attempts to make any selection in the ListBox, the data ends up completely disappearing upon exiting the control's focus.<br /><br />Here's the background. I created a Dynamic PDF template (using Lifecycle Designer 8.0) saved as 'MyTestPDF.pdf' that contains the ListBox control with an ID called "MyListBox". The ListBox's item data is populated using Specify List Items that uses a basic XML schema for its Items, Item Text and Item Value.<br /><br />Here is the XDP file sample, note the MyListBox node and three items for the listbox each under recurring Data node:<br /><br /><?xml version='1.0' encoding='UTF-8' ?><br /><?xfa generator='AdobeDesigner_V8.0' APIVersion='2.5.6290.0' ?><br /><xdp:xdp xmlns:xdp='http://ns.adboe.com/xdp/'><br /> <xfa:datasets xmlns:xfa='http://www.xfa.org/schema/xfa-data/1.0/'><br /> <xfa:data><br /> <form1><br /> <MyListBox><br /> <Data><br /> <MyListBoxText>Item 1 Text</MyListBoxText><br /> <MyListBoxValue>1</MyListBoxValue><br /> </Data><br /> <Data><br /> <MyListBoxText>Item 2 Text</MyListBoxText><br /> <MyListBoxValue>2</MyListBoxValue><br /> </Data><br /> <Data><br /> <MyListBoxText>Item 3 Text</MyListBoxText><br /> <MyListBoxValue>3</MyListBoxValue><br /> </Data><br /> </MyListBox><br /> </form1><br /> </xfa:data><br /> </xfa:datasets><br /> <pdf href='http://localhost/templates/MyTestPDF.pdf' /><br /></xdp:xdp><br /><br />In the PDF template, I enabled Dynamic Properties and clicked on the Specify Item Values link in the Binding property of the Listbox object. Binding remains Normal, and there's no direct data connection. Think of it as using a sample XML to give a schema to populate the data. Here's how I did it manually (within the Dynamic Properties pop-up dialog):<br /><br />Data Connection is Default Data Binding (in essence, none)<br />Items: $record.MyListBox.Data[*]<br />Item Text: MyListBoxText<br />Item Value: MyListBoxValue<br /><br />Note how the above matches the node names in the XDP sample above. <br /><br />When you open the XDP file in, for example, Reader 8.0, it works like a charm at runtime. The ListBox populates with the appropriate item text/value data. When in single-select mode, you can make a selection and save it (if you have Reader Rights or are working in Pro).<br /><br />However, when using this approach with Multiple Selection enabled on the ListBox, you get strange behavior when making selections in Reader or Pro 8. First off, all the values are pre-selected before a user can even focus on the ListBox. This did not happen with single-select mode nor with dropdown lists. When you go into focus to make one or more selection, the minute you exit the ListBox focus all but the last value disappear. Then if you attempt to select that last value, it too disappears... you end up with an empty ListBox. <br /><br />One limitation: XML (with user opening an XDP and linking to a PDF template) is the only method available to me in populating controls with data (no static data input or an active dataconnection), and it must be LifeCycle 8.0 Dynamic Form template - can't use AcroForms. Also, this occurs when a user is utilizing Reader or Pro 8.0 or 8.1.<br /><br />Thanks in advance for anyone who can help.
0 Replies