Custom Sort Order in Dropdown list of translate values

Peoplesoft sorts the dropdown translate values in ascending order by default. I wanted to change the sort order. For example:
The translate values in alphabetic order are:
Andrea
Baluch
Others
Shumi
I want this "Others" as the last value. So the drop down should display like this:
Andrea
Baluch
Shumi
Others

From a document I had created ...
This odd behavior of PeopleTools however can be overridden by implementing a few lines of JavaScript and PeopleCode.
The approach is quite simple and summarized briefly as below:
1.     Concatenate the value-description pairs of the dropdown list into a single string separated by a pipe “|” as delimiter (in case other delimiter is used the script shown below in Step 4 has
to be accordingly modified) in the sequence in which it should be displayed on the page.
2.     While concatenating, make sure to place the value first and then the description, these being separated by the delimiter. Example: “01|”|”January”|”02|”February” …and so on.
3.     Pass this string as a parameter to an HTML definition through a GetHtmlText function. This HTML definition in turn will a have a JavaScript logic to resolve this delimited string into
meaningful value-description pairs and use them to override the intended dropdown list.
Below are the steps in detail:
Step 1:
Find out the html element-id for the dropdown field from the html source-code of the PeopleSoft page from the browser. In HTML, the tag for a dropdown field is <select> </select>
The element-id is set by the id attribute of the <select> tag. This id would be used in Step 5.
Step 2:
Add a field of type Long Character to any work record that you may be using on your page for buttons, hyperlinks, etc.
Step 3:
Add an HTML-Area to the page (preferably alongside the dropdown field which needs need to be sorted). In the properties of the HTML-Area, assign the Record-field used in Step 2 above.
Step 4:
Create a HTML definition from the app-designer and add the below JavaScript code to it and save the definition.
<script>
var j=0;
var str=new String('%bind(:2)');
ar1=str.split("|");
var fld = document.getElementById("%bind(:1)");
fld.options.length = 0;
fld.options[fld.options.length] = new Option('', '');
while (j<ar1.length)
          fld.options[fld.options.length] = new Option(ar1[j+1], ar1[j]);                      
                j=j+2;
</script>
Step 5:
Write peoplecode on an appropriate event to generate the concatenated string of value-descriptions delimited by a pipe “|”. A pseudocode for the same is shown below. Here the HTML id for the dropdown field and the value-description string are passed as parameters to the JavaScript shown in Step 4; and JavaScript thus created after substitution of the Bind values is assigned to the value of Record.Field used in Step 2 & 3. The location of the below peoplecode may vary depending on the when the dropdown list needs to be sorted.
Local string &strDropdownValues;
&strDropdownValues = "1|" | "January|" | "2|" | "February|" | "3|" | "March|" | "4|" | "April|" | "5|" | "May|" | "6|" | "June";
<Record.Field>.Value = GetHTMLText(<HTML.DPS_DROPDOWN_HTML>, "<DROPDOWN_ID>", &strDropdownValues);

Similar Messages

  • LR - Creating Custom Sort Orders in Lightroom | The Complete Picture with Julieanne Kost | Adobe TV

    Julieanne Kost shows the best ways to take advantage of Adobe Lightroom’s Custom Sort Order feature in this Lightroom 2 tutorial.
    http://adobe.ly/y3dj94

    This was helpful, Julieanne, however, I have one more question on custom sort order. I am trying to sort a Collection that is made up of photos from several different import files. It's a vacation collection where I have created a different file for each day of the vacation as well as by who took the photos. So i have a file for my daughter's shots, my shots, my son's, etc, to keep things organized. Now that i have selected the "best of" from each original import file, I have created a new User Collection where I am putting them all together. The problem is, my entire Collection won't sort. I want to sort them all by capture time, but LR keeps grouping them by the original file source, and only sorting by capture time within each group. Can you help?

  • Maintaining custom sort order when copying between albums

    Is there any way that you folks have discovered to maintain the custom sort order of the images in an album when copying these images into a another album? Duping the album is not an answer, as I need to collate the contents of a number of albums into one.
    I tried selecting the contents of the album that I had just done the custom sorting in, and making it into one big stack, to try to move that to keep the order. Aperture informed me that stacking only works on images from one project.
    OK, since I now know this fact about stacking, is there any good way to merge projects? I have a ton of work on the images in the individual projects, and don't want to redo anything.
    Anyway, hope you get the problem, any help will be appreciated.
    PowerBook G4 1.67 2GB RAM 128MB ATI Video, External FW Drives for library   Mac OS X (10.4.7)  

    ou must have an older iPod.
    I believe the new sort order only works on the new iPods (Nano and Video)

  • Lightroom Mobile does not recognise my custom sort order

    I cannot find a way to get the Lightroom Mobile app on my iPad to recognise the custom sort order set up for the collection on my desktop. I am on the current versions of both Lightroom and Lightroom Mobile. The only sort option that appears in LR mobile is by capture time. The custom sort order is available as an option for the collection on the Abobe website but not on the mobile app.

    You can change the sort type when you touch the Capture Type-label. So tab on the "Capture Time"-label and you will see the other sort options like "Modified Date", "Custom Order" etc.
    Hope that helps.
    -guido

  • Custom Sort Order (Re-ordering)?

    I understand I can't drag and drop in smart collections or in folders with sub-folders.  But I should be able to re-order photos in a normal collection by dragging and dropping.  This feature has stopped working.  Any ideas?  Thank you (LR 4.1 with Windows 7, 64 bit)

    Followup: I spoke to Andre with Aperture support. He could not confirm this, at first, using a small number of images dragged from project A to Project B. Using a larger number (99 in his case), he was able to confirm the loss of custom sort order. The Apple web site says this has been corrected for import/exports and that is also not fixed. He will refer the problem to engineering for correction in a future update.
    I suspect (have no proof) the problem relates to the way Aperture divides each download (from card or camera) to a project into separate folders. To see this, export a project and open it (show package contents). Within the project package are separate folders for each of the downloads to the project. Aperture does not consolidate the images into a single folder. It appears that when a set of images are downloaded at one time is interposed between images taken previously, the sort order is not lost when the images are moved to another project or exported as a project.
    I still would like to know if there is a work around for this.

  • Custom sort order still lost

    This was not fixed as reported by Apple with Aperture version 2. When I move custom sorted images from one project to another, or export and import a project with custom sorted images, the sort order is lost. The order after the move, or import is either in file name order or sometimes in a completly random order. This occurs on both my MacBook Pro (late 2008) and my 8 core (16GB RAM) Mac Pro.
    This makes it impossible to do efficient work in the field and export the work.

    Followup: I spoke to Andre with Aperture support. He could not confirm this, at first, using a small number of images dragged from project A to Project B. Using a larger number (99 in his case), he was able to confirm the loss of custom sort order. The Apple web site says this has been corrected for import/exports and that is also not fixed. He will refer the problem to engineering for correction in a future update.
    I suspect (have no proof) the problem relates to the way Aperture divides each download (from card or camera) to a project into separate folders. To see this, export a project and open it (show package contents). Within the project package are separate folders for each of the downloads to the project. Aperture does not consolidate the images into a single folder. It appears that when a set of images are downloaded at one time is interposed between images taken previously, the sort order is not lost when the images are moved to another project or exported as a project.
    I still would like to know if there is a work around for this.

  • Custom sort order right after import

    right after an import I start culling and basic editing. From here I will rename, keyword, and proof, than I file the images in the appropriate folder. But before renaming and proofing I may need to change the order of images.
    LR does not allow you to change the order of images right after an import unless you have filed the images to a new folder..... Well I need to sort before filing.
    Hope this can be done. I think it is simple enough.

    Followup: I spoke to Andre with Aperture support. He could not confirm this, at first, using a small number of images dragged from project A to Project B. Using a larger number (99 in his case), he was able to confirm the loss of custom sort order. The Apple web site says this has been corrected for import/exports and that is also not fixed. He will refer the problem to engineering for correction in a future update.
    I suspect (have no proof) the problem relates to the way Aperture divides each download (from card or camera) to a project into separate folders. To see this, export a project and open it (show package contents). Within the project package are separate folders for each of the downloads to the project. Aperture does not consolidate the images into a single folder. It appears that when a set of images are downloaded at one time is interposed between images taken previously, the sort order is not lost when the images are moved to another project or exported as a project.
    I still would like to know if there is a work around for this.

  • Set default "Dropdown Lists" to "By value"

    Hi ,
    In the WebUI under Personalize / Personalize Settings , the user can setup the parameter "Dropdown Lists" to be "By value".
    We want to setup that at the system level , so every connection to the WebUI will have the Sort in the Dropdown Lists by value . How can we do that ? Nothing seems to be in IMG , maybe that a parameters in a SYSTEM file ? Thank you

    Hi Julie and happy HannuChristmaKwanzaYule to you!
    There is only one place I'm aware of that any slide timing
    default may be set. In Captivate 2, you look at Project >
    Preferences... > Defaults tab.
    In Captivate 3, you look at Edit > Preferences... >
    Project node.
    In both places you will find a place to configure the default
    slide time. This has no effect on any existing slides and I don't
    believe it will factor into the mix when recording. Also it would
    appear the minimum limit is one second. The only places this seems
    to take effect are when inserting Blank slides and when creating a
    Blank project.
    Hopefully this helps a smidge! Rick

  • Sort order of Price Lists

    My customer has recently upgraded from 2007A PL 42 to 8.81 PL 7. Before upgrade all pricelists are
    displayed in item code sort order. After upgrade, the sort order seems almost random.
    Customer maintains 175 different pricelists (mainly supplier pricelists) Customer needs to look up an
    item price from a specific price list - goes to Inventory / Price lists / Price Lists, selects the required
    price list and double clicks on the row number which then displays itemcodes, item descriptions, base
    price and unit price.
    Before upgrade, the customer could immediately start typing the item code and quickly get the required
    price. Now they must resort the displayed list by item code first, then start typing the item code.
    Process that used to be quick now takes more time. Customer can't understand why something that
    was working well for them has been changed to make life difficult
    At first I thought that the lists were now being sorted by description but the order changes even when
    double clicking at the top of the description column.
    Customer would like an option as to how they want the list displayed or for it to go back to how it was.
    Customer's sales reps need to find prices quickly - can't understand why the sort order has changed

    Tom Peterson wrote:
    This did the trick for me, Harry. Thanks!
    I was surprised to see you can/must set this on a podcast-by-podcast basis, but it is hard to argue with having finer control. Oldest to newest seems like a slightly more logical default, but that may just be personal preference.
    Not to split off in a new direction, but if I then subscribe to a podcast in Podcasts app that I already subscribe to in iTunes, is it recommended I turn off syncing between iTunes and my iPhone for that podcast? Or will this question basically go away when iOS 6.0 is released?
    Do the Podcasts app and the Music/iPod app share podcast files? Or will they be duplicated on my iPhone?
    Tom
    The podcasts will duplicate themselves on your device. I turned off podcast syncing on my devices. But the weird thing is that when I sync, podcasts then copy themselves to my iTunes library. Either sync or don't, but don't copy to both.

  • Frustrated and seeking help with a custom sort order...

    I created a family photo album and arranged all of the pictures in a specific order and sync'd them with my iPad, unfortunately the pictures do not stay in the custom sequence.
    I tried Batch renaming with a Custom Name and Index, but the renaming is applied to the pictures based on the date they were created and not by the way I have arranged them.
    Is there a solution to my problem?
    TIA

    I flagged fifty photos and from that selection I created an album. I went to the album and dragged the photos in to the order I wanted them to appear after selecting Manual. Each time I now choose the manual option it arranges the photos into the sequence I created.
    The problem I'm having is that when I synchronize my iPad with iTunes the photos revert back to their original sort order, which is the default date they were brought in to Aperture.
    As I said, I tried to give them new names and index numbers using a batch command AFTER I arranged them manually, which works, however the names are assigned to the photos sequentially starting with oldest photos and not to photos as I have arranged them.
    Honestly, it would be easier for me to create a slideshow using the timeline in FCP, but a video is not what I'm after.
    I hope I have answered your questions.
    TIA

  • Update all views sort order in a list using powershell

    I have a column "Employee Name" in my Lists/Library of my sitecollection ,
    I need to update Sort order of all views of that  lists and library to be sort alphabetically by "Employee Name" .
    I have already some filters applied on these views.I dont want these to get effected.I want to change only the sort order to be based on "Employee Name" column.
    Any pointers on how to achieve this by Powershell will be helpful

    Hi,
    The following PowerShell script for your reference:
    $webURL = "http://siteurl";
    $listName = "ListName";
    $web = Get-SPWeb $webURL;
    $list = $web.Lists[$listName];
    $views= $list.Views;
    for ($i = 0; $i -lt $views.Count; $i++)
    $view=$views[$i];
    $view.Query = '<OrderBy><FieldRef Name="Employee_x0020_Name"/></OrderBy>';
    $view.Update();
    $list.Update();
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to populate a Dropdown List from a Value Node

    Hi
    I have a WD application Java with an Interactive Form. In the WD context I have a value node of cardinality 0..n. In the Interactive Form I need to have the values of this node within a dropdown list. Which type of DDL is best choice and how do I manage to get the node values into the list.
    We are working on NW2004 with Designer 7.08.
    Thank you for any suggestions.
    René Morel

    hi,
    With respect to your problem please refer to this guide/tutorial.
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/98af7acd-0401-0010-f697-bfa06971b65e
    Hope this helps you.
    Thanks,
    kris

  • Custom sort order?

    Hi,
    I'd like to be able to sort my itunes library by album artist album, then track no. This so that I can use coverflow to browse my music in artist order rather then in album order
    But Itunes seems to insist on sorting by album artist then album and artist. I've tried moving and removing columns but this has no effect.
    Is there any way I can get Itunes to sort the library in the way that I want?
    Thanks
      Windows XP Pro  

    Howdy, craig
    Quote: "trouble is that now the images are renumbered in the Capture Time order, it is hard to tell what images are from what camera. can I sort by Serial Number then?"
    In the mean time you might consider selecting Image Date and select the B&W photos and keyword them as such which can be easily done with a Lift & Stamp "keywords".
    EDIT: what ian said and I would like to add that the column list categories are draggable so you can click drag Serial so it sits as your second column.
    victor

  • Video sort order differs in list/preview

    I have a few Video Podcasts and Music Videos in my Videos Playlist. I have arranged the order for the Podcasts in wich they show up by dragging them into the order I like to have them in using the "list" view. The first column is selected. However, when I switch to the (very nice) "Preview" view the list gets sorted on what appears to be the release date. Am I overlooking something or is it time for a little feedback to Apple?
    JJ
    Don't steal music !! Just a statement, not an accusation

    Hi,
    There is no way to order the contexts in universe list view mode.
    If you want to have a specific order I suggest that you prefix all contexts by a number such as "1 - context name1", "2 - context name2", etc.
    Didier

  • CCM Display List Sort Order

    Hello All,
    when the CCM search screen is brought into the SRM the items are displayed without any default sort order. is there a way to configure a specific order when the list is first displayed? i know that clicking on the column will enable sorting, but i would like to know if there is any setting that can predetermine the sort order before the list is displayed in SRM.
    thx in advance for your answers.

    Greg: there is no Customizing setting you can control the sort order with. I feel your pain :). Short of modifying the system, the only way you may be able to achieve the desired functionality is BAdI /CCM/CSE_ENRICHMENT.
    Cheers,
    Serguei

Maybe you are looking for