Dialog list_box items not sorted properly

kuopching

17-07-2017

Hi,

I've created dialog with list box control. After populating with some data, I get wrong alphabetical order of items.Specifically item with character "č" is added on the end of the list[1] When i change character "č" to some other latin charcter like "š" everything works like charm[2]. Can you recommend me some workaround.Thank you

Pdf is created in Adobe Livecycle Designer 11 Xfa 3.3.

Preview is done in Adobe acrobat 11 and Adobe Reader DC 2017

1.

list_wrong.png

2.

list_right.png

Accepted Solutions (1)

Accepted Solutions (1)

kuopching

19-07-2017

Ok, I finally found solution[1]. Instead of populating items with dialog.load("LST1":myDataProvider), i call dialog.insertEntryInList on every item in my dataprovider and items are in correct order now.

1.

solution.png

Answers (9)

Answers (9)

kuopching

19-07-2017

hi,

thank you for reply. But my problem is not to create Dialogbox. I've created several of them and they work just fine. My problem is sorting order of items in list_box control of dialog. When i use same dataprovider(as above) for xfa list control(choiceList) sorting order is fine. So my question was about some workaround here.

Magus069

MVP

18-07-2017

Hi there,

usually such objects in a dialog are sorted automatically...

here is some documentation you might want to see by yourself that may help you create the sorted list that you need.

http://www.pdfshareforms.com/how-to-create-nice-dialog-windows-in-pdf-form/

Adobe LiveCycle Designer Cookbooks by BR001: Using app.execDialog() in an Adobe Designer Form

These 2 links helped me a lot to create the dialogs with JavaScript

kuopching

18-07-2017

Really?

http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/acro7jsguide.pdf

Using Adobe Dialog Manager (ADM) in Acrobat JavaScript

I know, i can create dialog in js. I already created some ..see my orginal question. I've got problem with sorting items in list_box element in dialog box..

kuopching

18-07-2017

Ok. maybe i wasn't  precise. I'm using javascript version of ADM(app.execDialog) not native(c++)..If Javascript version is also deprecated, what is alternative to create dialog box in pdf nowdays?

kuopching

18-07-2017

Yes, i posted in wrong forum.I am not able to move it to right one. What do you mean "Does it work correctly in LiveCycle" ? I'm populating data dynamically. It does not matter if it's livecycle or not. I'm using custom ADM(Adobe Dialog Manager)  and dialog.load to populate data into list control.

jane-e

17-07-2017

You posted the the Acrobat Reader forum, and you won't be able to fix it in the free Reader. Does it work correctly in LiveCycle? What kind of dialog box is it?