Solved

How do populate adobe livecycle drop down list,

Posted on 2013-01-11
6
1,357 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:Dushan911
ID: 38773018
You can use simply use array, building as key and address as value.

[Building1] ->  'Address1',
[Building2] ->  'Address2',
[Building3] ->  'Address3',
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

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

Accepted Solution

by:
Dushan911 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe A recent question here at Experts Exchange piqued my interest, so I decided to provide a thorough solution and publ…
Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe INTRODUCTION This article presents a solution to a question (http://www.experts-exchange.com/Programming/Installation/Q_28396542.html)…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

708 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

13 Experts available now in Live!

Get 1:1 Help Now