Solved

How do populate adobe livecycle drop down list,

Posted on 2013-01-11
6
1,370 Views
Last Modified: 2013-02-07
From a data file, like excel,  I'd like to populate a livecycle drop down list with a field,  and then different data pop into a text object.

Datafile

Building1,  Address1
Building2, Address2
Building3, Address3

In drop downlist, I'd like to list the buildings.   ONce one is selected, I'd like the corresponding address in the datafile to populate a text object on the same page.     Thanks.
0
Comment
Question by:rjablonk
  • 3
  • 2
6 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 38769936
Do you want to do this once (when you design the form), or does the data need to come from a database every time  the user opens the form?
0
 

Author Comment

by:rjablonk
ID: 38770176
For now just need to load the table once but it would be good to know both ways
0
 
LVL 17

Expert Comment

by:Dushan De Silva
ID: 38773018
You can use simply use array, building as key and address as value.

[Building1] ->  'Address1',
[Building2] ->  'Address2',
[Building3] ->  'Address3',
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:rjablonk
ID: 38773196
Thanks. Can you write sample code line or 2 demonstrating that?   Thx
0
 
LVL 17

Accepted Solution

by:
Dushan De Silva earned 500 total points
ID: 38773264
Following will explain CSV to array. (Or else let me know exact data format)
http://stackoverflow.com/questions/1293147/javascript-code-to-parse-csv-data

Following will show how to show Array on Drop down list on PDF using Adobe Livecycle.
http://forums.adobe.com/message/4362597
0
 

Author Comment

by:rjablonk
ID: 38866418
Dushan911,

Thanks for your post,  the manual array works great.   I am a little confused on how to create the array from the CSV.

AFter copying the csvtoarray function into my livecycle, I ran the following command from the same page:

var worksite = new Array(CSVToArray( "c:\worksite.csv", "," ));

with the hope that the 5 X 5 csv file would create a similar array in adobe.  Is there an example of using the CSV to Array in LiveCycle that you could show me?
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the questions I get asked again and again is how to validate a field value in an AcroForm with a custom validation script. Adobe provided a lot of infrastructure to do that with just a simple script. Let’s take a look at how to do that wit…
*Adobe Acrobat 9 was used for this article.  Particular steps may vary depending on software versions. Adobe Acrobat has many, many variables that my be utilized to customize your forms for clarity and ease of use. The Form Editing Tool will be y…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now