Dialog list_box items not sorted properly

Avatar

Avatar

kuopching

Avatar

kuopching

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)

Avatar

Avatar

kuopching

Avatar

kuopching

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)

Avatar

Avatar

kuopching

Avatar

kuopching

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.

Avatar

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150
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

Avatar

Avatar

Bernd_Alheit

Avatar

Bernd_Alheit

Bernd_Alheit

18-07-2017

The document is about Acrobat 7. I can't see ADM in the documentation for Acrobat DC.

Avatar

Avatar

kuopching

Avatar

kuopching

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..

Avatar

Avatar

Bernd_Alheit

Avatar

Bernd_Alheit

Bernd_Alheit

18-07-2017

There is no ADM in JavaScript. You can create dialogs in JavaScript.

Avatar

Avatar

kuopching

Avatar

kuopching

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?

Avatar

Avatar

kuopching

Avatar

kuopching

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.

Avatar

Avatar

jane-e

Avatar

jane-e

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?