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

Refresh button DropDownList datadase

wiki
Registered: Jan 21 2008
Posts: 2

Dear Sir/Madam,
I would like to ask you for help with dropdown list. I use LiveCycle Designer 8 and datadase Ms Access.

DataConnection from dropdown list to the database is Ok,
the problem is when the database is changed (added item or deleted item), after that the dropdown list shows only the old value wthout modifications which were made in database.

I suppose I need to use refresh button with a refresh skript. Would it be possible to help me with this?
Thank yo for you help and attention. I look forvard to your reply.

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The code for opening the DB and setting up the Data DropDown is in the "Initialize" event. So all you have to do is re-initialize the DropDown.

Place code similar to this in your refresh button:

MyDataDropDownList.execInitialize();

where "MyDataDropDownList" is the name of the drop down element.

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