Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old March 17th, 2009, 01:14 PM
EricC EricC is offline
Regular Contributor
 
Join Date: Nov 2008
Posts: 87
Red face Alphabetize a list

I am trying to create an on-line FusionPro template of a "phone book".

I want to offer the following functionality:

- User enters (into one large text box?) a list of names and corresponding phone numbers.

- when they click the 'Refresh Preview' button (i.e. onRecordStart?), the list they entered is returned, sorted alphabetically.

Is it possible to write a JavaScript rule that does this?

Here's one thing to keep in mind...
For each NAME, I need to associate a PHONE NUMBER

So for example, if I enter the following data:
John Smith 858-123-4567
Adam Rodriguez 986-456-7894
Robert Hoo 201-457-7847

... I should get this back:
Adam Rodriguez 986-456-7894
John Smith 858-123-4567
Robert Hoo 201-457-7847

(The list was sorted alphabetically, and the phone numbers "moved" with the corresponding name)

Can I bribe someone with an amazon.com gift certificate if they can help me pull this off?
__________________
--
Eric Carbone
IT/Project Manager, MOR Printing Inc.

Windows 10 |Adobe Acrobat XI | FusionPro 9
Reply With Quote
 

Tags
alphabetically, alphabetize, array, sort

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:58 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.