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

multiple selection in listbox but be able to delete single item

DianaL
Registered: Nov 17 2009
Posts: 80

Hi,

please help me to find a solution!!

I have 2 listboxes. listbox Description is populated by XML.

When user selects multiple items at the same time from the Description listbox, they are populated in the listbox and are removed from Description listbox. that works fine.

But the issue is if the user accidently selects one of the multiple selected items at the same time wrong and want to delete a single items, this doesnt work anymore.

I can not even click on each single item.

I try to find a way how to enable user to populate multiple items at the same time and be able to delete each single item, which then should return back to the Description listbox.

I would really appreciate if you could help me on this!!!

This is my sample: https://acrobat.com/#d=l0mujTOFduSJFele5R5i3g

Thanks,

Diana

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Have you read this article?
http://acrobatusers.com/tutorials/2007/10/list_and_combo_in_lc

When writing code for this type of complex interaction the script needs to be well designed. You need to draw out all the interactions to create a high level visual image of the process, so that you've can ensure you've taken every interaction into account.

The problem with your existing script isn't a simple bug. It's a design flaw. You have multiple interacting scripts, all triggered from different events. All the various interactions are not taken into account.


Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script