Need to sort drop-down box list

How do we go about sorting in ascending/decending order a drop-down box list of text/name items?

Christian,
Thanks for pointing this out. It looks like Acrobat 8.0 broke something that prevents my sample form from working correctly.
It has to do with the call to
resolveNodes("#items[*]")
Fortunately, the bug will be fixed in Acrobat's next release.
As a workaround, I would encourage you to have a look at the
new list object properties and methods now available in Acrobat 8.0. You should be able to use a combination of those new properties/methods along with some of the original script in this sample in order to come-up with an update solution that works.
Stefan
Adobe Systems
More answers on
FormBuilder.

Similar Messages

  • Advice needed on the Drop-down box description.

    There are lots of postings on how to get the drop-down box working and there's even a How-to guide called Dropdown boxes. However, I have a field (defined using the AET tool) which has an Search help assigned, so the drop-down list is automatically displayed for me. Having said that I'm still bemused as to how it works as there's no code in the P and V Getter methods.
    Anyway, that aside, the dropdown box is working fine, as mentioned, but I also have the description field to populate with the description of the value returned by the drop-down box. In my case it's a Department code and associated description.
    Initially, I inserted code in the SET_DEPT method to lookup the description (using a SELECT statement) and place the result in the DEPT_DESC field. However, this method is not being called, I don't think, or at least my break point is not being reached.
    So I'm looking for somewhere to place the code which will be called when the DEPT field changes value, and I can then lookup the description and populate the DEPT_DESC field.. Both the DEPT and DEPT_DESC fields are in the same context node by the way.
    It's a real pity that when you create new fields in the AET tool you can't relate one field to another or somehow use a search help and say that the source is another field and this field will hold the result, or something like that.
    Jason

    Hi,
    It was said that the SET_* method will be called when you press enter on the view to trigger a server round trip.
    For your case, I'd like to suggest you take standard coding for example.
    That is the categorization in service ticket view in IC_AGENT role.
    When select the first category, if the second category only has one value, it will be automatically set. which should be similar to your requirement.
    component view GSMCDDLB/DropDownList
    call stack is
    METHOD SET_FIELDS      CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    METHOD EH_ONCATCHANGE  CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    METHOD DO_HANDLE_EVENT CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    when a value is selected in the first dropdown, an event is triggered, you may debug and find out your event, and make the codings in EH_* method.
    set value for other field is some what simple also, like that in
    METHOD SET_FIELDS      CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    CALL METHOD lr_dropdownlist->if_bol_bo_property_access~set_property
    If the first field is not a dropdown, for example a field with F4 help, after select the value from the popup, there will be event SELECT_OBJECT triggered for the view I tested.
    You may put breakpoint in do_handle_event for the controller class and observe what event was triggered.
    Then make the relevant coding.
    Hope could do help!
    Hongyan

  • Help needed on linking drop down boxes

    Hello there,
    I am using adobe life cycle designer 8 to make forms. These forms are usesd to collect information on persons working in the healthcare industry.
    I want to use drop down lists that are "connected". Depending on the choice made in the first dropbox, the user will get new options in the second dropbox.
    Example:
    Dropbox 1
    Values
    - value 1
    - value 2
    - value 3
    Dropbox 2
    If user choses value 1, they can chose the following values in dropbox 2:
    - Value A
    - Value B
    If user choses value 2, they can chose the following values in dropbox 2:
    - Value C
    - Value D
    If user choses value 3, they can chose the following values in dropbox 2:
    - Value E
    - Value F
    I have been puzzeling for a while, but cannot find the solution for this.
    THank you in advance
    Daniel

    Hi,
    1. You create the first dropdown, for example with the following entries:
        123
        456
        789
    2. You create a second dropdown which is empty.
    3. Then you have to copy the follwoing script in the change-event of the first dropdown:
    switch (xfa.event.newText)
        case "123":
            DropdownListe2.clearItems();
            DropdownListe2.addItem("Please select a value");
            DropdownListe2.addItem("456");
            DropdownListe2.addItem("789");
            DropdownListe2.selectedIndex = 0;
            break;
        case "456":
            DropdownListe2.clearItems();
            DropdownListe2.addItem("Please select a value");
            DropdownListe2.addItem("123");
            DropdownListe2.addItem("789");
            DropdownListe2.selectedIndex = 0;
            break;
        case "789":
            DropdownListe2.clearItems();
            DropdownListe2.addItem("Please select a value");
            DropdownListe2.addItem("123");
            DropdownListe2.addItem("456");
            DropdownListe2.selectedIndex = 0;
            break;
        default:
            break;
    That's all.
    In your case you  have to change "123", "345", "678" in "value 1", "value 2", "value 3".
    In the first case "value 1" you have to change in the first case "value 1": the DropdownListe2.addItem("123"); to DropdownListe2.addItem("Value A"); ...
    I hope it's helpful for you,
    kind regards,
    Mandy

  • Drop down box in OIM

    Hi All,
    How to creare a drop down box (list box) in OIM instead of Lookup. Is it possible?
    Thanks & Regards
    Inbaa

    It can be done using "ComboBox" option.
    Thanks Rajiv.
    Edited by: Inbaa on Sep 29, 2009 8:53 AM

  • Populating Drop Down Box

    I am working on a form for my company. I am trying to populate the drop down box list from entries in a previous text field. For example I have a text field that directs users to type in a list of items. I want these items to then automatically generate into a drop box field. I have researched and tried for days with no success. The closest I have come is setting the drop box value to the text field but all this does is copy the list exactly into the drop box visible field...it does not set the values as selectable options. Any help is greatly appreciated!

    Gina,
    Here is some sample code for using a ComboBox in a JSP from an EditCurrentRecord bean. This particular example uses a query, you can also populate combo boxes, list boxes, radio buttons and checkboxes from a static list. See the JavaDocs for the EditCurrentRecord bean.
    <jsp:useBean id="RowEditor" class="oracle.jbo.html.databeans.EditCurrentRecord" scope="request">
    <%
    RowEditor.initialize(application, session , request, response, out, "wt_bc_WT_bcModule.WalkthroughEngineSlidesView");
    RowEditor.setTargetUrl("WalkthroughEngineSlidesView_SubmitInsertForm.jsp");
    RowEditor.createNewRow();
    RowEditor.setReleaseApplicationResources(true);
    RowEditor.useComboBox("Presname","select pres_name,pres_name from wt_info","PRES_NAME","PRES_NAME");
    RowEditor.render();
    %>
    </jsp:useBean>
    null

  • Work around / fix for making a list of drop down boxes

    Dear experts,
    When lists are created, its cells act like top-level views. Because of this, everything attempting to go past the border of the list item is clipped. This is a problem when making a list of drop down boxes. Is there a known work around for this or maybe a fix?
    Regards,
    Olivier

    thank you saish, moving 'the artists are' helps visually, as for the fix, i really needed to store it in an arrayList, resultSets aren't very happy about being manipulated!
    here's the fix:
    writer.println("<select name=\"userList\" size=\"1\">");
    ArrayList a = new ArrayList();
    ResultSet r=null;
    // this is just my way of accessing the database and the correct method with the artist names in it
    r = factory.getCustomersDAO().get_Artist_Names_Only();
    while(r.next())
    // retrieve artist names as String variables
    String artist = r.getString("artist_name");
    // add to ArrayList
    a.add(artist);
    for(int i=0; i<a.size(); i++)
    Object art = a.get(i);
    art = (String)art;
    writer.println("<OPTION VALUE=\"" +art+ "\">" art "</OPTION>");
    writer.println("<tr><td colspan = \"2\"><h2>Enter Artist Name to be booked: </h2></tr></td>");
    writer.println("</SELECT></TD></TR>");
    thanks again, i've got another problem now that i'm just about to post about, how to register when one particular cell in a html table has had its link clicked!
    jenxx

  • How can I go BACK to the site I was at, say, 5 site previous or forward without hitting the BACK arrow 5 times? The previous version had a drop down box with a list of previous sites I could click on.

    It can take a while to go back by hitting the back arrow again and again. The previous version had a drop down box that listed nine or ten previous URLs. This allowed me to pick out which one I wanted by clicking on that URL. Version 4 doesn't have this feature or, if it does, I cannot find it. Is this capability on Version 4, and if so, how can I find it?

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.

  • My drop-down list won't appear anymore so every time I want to go to a new site I have to type it in where before my drop-down box would appear and I could just click it and hit search and go there how do I make my drop-down box come back

    somehow I must've clicked a button that took away my drop down box when I go to use my Google search so different sites that I go to a lot I would always just click it when the drop-down box came up I would click again and hit search and you would bring that page up but even if I go to a site once I leave that I try to click and make the drop-down box come up again with the new search and it nothing happens so the problem is I need my drop down box to come back up to all the places that I visit kind of like a history of like I said I would just click and it would come up by itself now the drop-down box won't come up anymore so I need somebody to tell me what to do to bring my drop-down box back also I am new to computers so I don't know a lot so don't be real technical thanks for the help merry Christmas from Joe

    It's not a matter of me assuming to restore it, once the error comes up, the only next step I can do is to restore it. I can't access any of the iphones settings in itunes or anything, it's a mandatory restore. If I just cancel the sync (before restoring) and disconnect the phone, all my apps crash on opening: aka unusable phone. So I have literally no choice but to restore every time the error shows up if I want my phone to work.
    I have no idea where I may have duplicate files as it doesn't tell me, so if that is the problem (which I don't think it is) then I don't know where I have to go to delete the duplicates.
    And the duplicate file error still doesn't explain why leaving iTunes to restore the phone doesn't work and me having to drag the window around. I know it sounds utterly ridiculous, my friend didn't believe me when I told him either but then I showed him and he was as confused as I am. If I just leave the restore to do its own thing at it's own pace, it will loa maybe 20% then fail for whatever reason.

  • Add SC  Status List( Drop Down)  values in SC status screen Drop Down Box

    Hi Gurus,
    My requirement is that , In SC <b>Check Status</b> screen "<i><b>Find the SC section</b></i>" we have ("Item Description"     "Name of Shopping Cart"    " Timeframe"     "Status" )fieds are there..  I need to add one values (Deleted) in to the Status Drop Down Box.
    Then If I selected this deleted values from the status which should display only Deleted SC in the Search Result section.
    Pls Help me out from this issue.
    Regards,
    Kumar S

    Hi Sivakumar,
    I found solution for you but you have to change in the standard as there are no exits for this.
    Are you interested by changing the standard?
    regards,
    Laurent.

  • Need help in this select drop down box

    Hi i had a drop down box written with select and i had many options , when user selects the option it will insert this to database and when user goes to the edit form the preselected value has to be populate automatically in dropdown , but the last option is populating everytime when uses edit form.
    below is the code:
    insert page:
                <select name="council" id="council" name="Please select Council from dropdown box">
                    <option  value="Division">Division</option>
                    <option  value="Facility">Facility</option>
                    <option  value="District D">District D </option>
                    <option  value="District E">District E </option>
                    <option  value="District J">District J </option>
                    <option  value="District K">District K </option>
                    <option  value="District L">District L </option>
                    <option  value="District M">District M </option>
                    <option  value="District N">District N </option>
                    <option  value="District O">District O </option>
                    <option  value="District Q">District Q </option>
                    <option  value="District S">District S </option>   
                    <option  value="District T">District T </option>
                    <!--- Below code  is added just for temporary case ,for this drop down we need to pull all these data from databse--->
                    <option  value="D 506">D 506</option>                                            
                    <option  value="D 524">D 524</option>
                    <option  value="D 525">D 525</option>
                    <option  value="D 530">D 530</option>
                    <option  value="D 531">D 531</option>
                    <option  value="D 536">D 536</option>
                    <option  value="D 549">D 549</option>
                    <option  value="D 558">D 558</option>
                    <option  value="D 562">D 562</option>
                    <option  value="D 581">D 581</option>
                    <option  value="D 583">D 583</option>
                    <option  value="D 597">D 597</option>
                    <option  value="D 598">D 598</option>
                    <option  value="D 599">D 599</option>
                    <option  value="D 628">D 628</option>
                    <option  value="D 686">D 686</option>
                    <option  value="D 698">D 698</option>
                    <option  value="D 848">D 848</option>
                    <option  value="D 862">D 862</option>
                    <option  value="D 870">D 870</option></select>
    this is edit page code:
                       <select name="council" id="council">               
                   <cfoutput query="getdata">               
                    <option  value="Division" <cfif council IS "#getdata.council#"> selected</cfif>>Division</option>
                    <option  value="Facility" <cfif council IS "#getdata.council#"> selected</cfif>>Facility</option>
                    <option  value="District D" <cfif council IS "#getdata.council#"> selected</cfif>>District D </option>
                    <option  value="District E" <cfif council IS "#getdata.council#"> selected</cfif>>District E </option>
                    <option  value="District J" <cfif council IS "#getdata.council#"> selected</cfif>>District J </option>
                    <option  value="District K" <cfif council IS "#getdata.council#"> selected</cfif>>District K </option>
                    <option  value="District L" <cfif council IS "#getdata.council#"> selected</cfif>>District L </option>
                    <option  value="District M" <cfif council IS "#getdata.council#"> selected</cfif>>District M </option>
                    <option  value="District N" <cfif council IS "#getdata.council#"> selected</cfif>>District N </option>
                    <option  value="District O" <cfif council IS "#getdata.council#"> selected</cfif>>District O </option>
                    <option  value="District Q" <cfif council IS "#getdata.council#"> selected</cfif>>District Q </option>
                    <option  value="District S" <cfif council IS "#getdata.council#"> selected</cfif>>District S </option>   
                    <option  value="District T" <cfif council IS "#getdata.council#"> selected</cfif>>District T </option>                   
                    <option  value="D 506" <cfif council IS "#getdata.council#"> selected</cfif>>D 506</option>                                            
                    <option  value="D 524" <cfif council IS "#getdata.council#"> selected</cfif>>D 524</option>
                    <option  value="D 525" <cfif council IS "#getdata.council#"> selected</cfif>>D 525</option>
                    <option  value="D 530" <cfif council IS "#getdata.council#"> selected</cfif>>D 530</option>
                    <option  value="D 531" <cfif council IS "#getdata.council#"> selected</cfif>>D 531</option>
                    <option  value="D 536" <cfif council IS "#getdata.council#"> selected</cfif>>D 536</option>
                    <option  value="D 549" <cfif council IS "#getdata.council#"> selected</cfif>>D 549</option>
                    <option  value="D 558" <cfif council IS "#getdata.council#"> selected</cfif>>D 558</option>
                    <option  value="D 562" <cfif council IS "#getdata.council#"> selected</cfif>>D 562</option>
                    <option  value="D 581" <cfif council IS "#getdata.council#"> selected</cfif>>D 581</option>
                    <option  value="D 583" <cfif council IS "#getdata.council#"> selected</cfif>>D 583</option>
                    <option  value="D 597" <cfif council IS "#getdata.council#"> selected</cfif>>D 597</option>
                    <option  value="D 598" <cfif council IS "#getdata.council#"> selected</cfif>>D 598</option>
                    <option  value="D 599" <cfif council IS "#getdata.council#"> selected</cfif>>D 599</option>
                    <option  value="D 628" <cfif council IS "#getdata.council#"> selected</cfif>>D 628</option>
                    <option  value="D 686" <cfif council IS "#getdata.council#"> selected</cfif>>D 686</option>
                    <option  value="D 698" <cfif council IS "#getdata.council#"> selected</cfif>>D 698</option>
                    <option  value="D 848" <cfif council IS "#getdata.council#"> selected</cfif>>D 848</option>
                    <option  value="D 862" <cfif council IS "#getdata.council#"> selected</cfif>>D 862</option>
                    <option  value="D 870" <cfif council IS "#getdata.council#"> selected</cfif>>D 870</option>
    </cfoutput>               
                </select>
    i dont know where i am making mistake and i observered one behavoir that if i have less options it is working but not with many why like that , please help me in this
    Thanks

    Seems to me your conditionals should look something like this:
    <option value="Division"<cfif getData.council is "Division"> selected="selected"</cfif>>Division</option>
    <option value="Facility"<cfif getData.council is "Facility"> selected="selected"</cfif>>Facility</option>
    Your condition is the same for every option, and would likely never evaluate to true:
    <cfif council IS "#getdata.council#"> selected</cfif>
    getData.council will be "Division" or "Facility" or "District D" or ...
    ... but it would never be "council".
    HTH.
    Charlie

  • Creating cascading drop down boxes in SharePoint 2010 using one list

    We have a support request form tied to a list that end users input data into which when submitted sends out an email.
    Is it possible to create a drop down box on the form that limits the choices in the "subcategory" column, based on what is chosen in the "category" column.  
    For instance in the category column we have SharePoint, Oracle, and Web Tools as choices. 
    In the subcategory column we have items related to each category. We only want items that are related to the selected choice to appear in the subcategory drop down box. 
    I see examples in InfoPath using "Multiple Lists" (one list for city, one for state, etc), but nothing using the same list.  I would rather not use multiple lists if possible. 
    Anyone have any ideas?  Thanks.

    Hi,
    According to your post, you want to create a cascading drop-down list box using one list.
    To achieve what you want, we can:
    Create two fields(category and subcategory) in drop-down list box type in the form in InfoPath.
    Add the list which contains the values of the category and subcategory columns to the form as an external data.
    Right click the category field, click Drop-Down List Box Properties, and choose Get choices from an external data source.
    Choose the list added in step2 in Data source, click XPath behind Entries, click the category column in the list, select Show only entries with unique display names.
    Right click the subcategory field, click Drop-Down List Box Properties, and choose Get choices from an external data source.
    Choose the list added in step2 in Data source, click XPath behind Entries, click the subcategory column in the list, then click Filter Data.
    Click Add, select the category column in the list in the first box, select is equal to in the second box, choose select  a field or group in the third box, then choose Main in the Fields and select the category field in the form.
    Click OK.
    Best regards.
    Thanks

  • At the top of my Mozilla home page, it lists the current URL site I am on. How do I delete them and the others in the drop down box? Highlighting and hitting delete does not work

    At the top of my Mozilla home page, it lists the current URL site, such as http://www.safeco.com, I am on plus the others in the drop down box. How do I delete them. Highlighting and hitting delete does not work.
    I am using windows Vista 007 and Mozila 3.6.1.3

    Do those entries have a yellow star at the far right?
    If they have then they are bookmarks. You can remove them if you open that link and click the star to open the Edit This Bookmark dialog and click the Remove button in that dialog.
    * [[Clearing Location bar history]]
    * [[Cannot clear Location bar history]]

  • Dynamically create drop down box with JSP

    Hi,
    I hope this is not a repeat post, I have search the forum and a posting has not jumped out at me. I am making a jsp that dynamically constructs a custom SQL query.
    I have a number of text boxes with an id, my jsp page calls a servlet, the servlet reads the contorl id and the value to build the query - this works great. However, there's a large text input box which receives a number of extra conditions - this text box receives the input in the following format:
    searchAttributeName1,searchAttributeValue1;searchAttributeName2,searchAttributeValue2
    This is functional, however, it's a bit rubbish as the user has to know the special recognised attributeNames. What I would like to have is some sort of criteria control. This would consist of a drop down box populated from the servlet, a text input for the value and a button to add another criteria control. so the user could build up the number of query criteria. The drop down box ensures they cannot select the wrong keyword, pressing the add criteria button adds a new drop down box and text box pair to the screen.
    An example of this I recently saw was at Intel's jobs search web site https://jobs.intel.com/jobs/jobs.iccw - see that for example.
    Has anyone got any ideas on how to achieve this? I initially thought use jsp scripting (there is no restriction against this) but I need to use javascript I'm guessing as the button click triggers adding a new combo box. Another idea was to use styles and tables to hide the other drop down boxes but this seems like a real hack that I'd like to avoid. I can do with with .NET i hope java can deliver!
    Any ideas are much appreciated - I am a novice with java web development so please, any examples thoroughly explain (no need to explain populating the drop down box - there seem to be plenty of posts on this).
    Thanks for any help or ideas on this issue -

    Gina,
    Here is some sample code for using a ComboBox in a JSP from an EditCurrentRecord bean. This particular example uses a query, you can also populate combo boxes, list boxes, radio buttons and checkboxes from a static list. See the JavaDocs for the EditCurrentRecord bean.
    <jsp:useBean id="RowEditor" class="oracle.jbo.html.databeans.EditCurrentRecord" scope="request">
    <%
    RowEditor.initialize(application, session , request, response, out, "wt_bc_WT_bcModule.WalkthroughEngineSlidesView");
    RowEditor.setTargetUrl("WalkthroughEngineSlidesView_SubmitInsertForm.jsp");
    RowEditor.createNewRow();
    RowEditor.setReleaseApplicationResources(true);
    RowEditor.useComboBox("Presname","select pres_name,pres_name from wt_info","PRES_NAME","PRES_NAME");
    RowEditor.render();
    %>
    </jsp:useBean>
    null

  • Recordings that include drop-down boxes

    I am recording in the “Training Simulation” mode.
    The screen I’m recording includes drop-down boxes. After
    publishing the project, the project does not allow the user to
    scroll though the drop-down list. It will automatically fill in the
    correct answer choice by pressing Enter.
    I need the user to be able to scroll though the list of
    drop-down options. Any suggestions?

    Hi Jillbr and welcome to our community
    Captivate doesn't offer anything like that. You would need
    some sort of a custom Flash widget that might allow it.
    You should probably put this suggestion as a feature request
    to the development team. You may do so by
    clicking
    here and completing the form.
    Sorry... Rick

  • Create a dynamic form where selected text boxes appears, based on options chosen in a drop-down box

    HELP!!! Can anyone please provide some guidance on how to create a dynamic form where selected text boxes appears, based on options chosen in a drop-down box.
    I have a form which – based on the department that's selected from a drop-down box – will have different form fields/text boxes, etc, made available.
    Is this possible in LiveCycle, if so, can you please provide the script/info - as needed.
    Thanks,

    In the preOpen event of the second dropdown list you put something like (in formCalc):
    if (dropdown1 == 1) then
    $.clearItems()
    $.setItems("Year, 2 Year,  3 Year")
    elseif (dropdown1 == 2) then
    $.clearItems()
    $.setItems("3 Year,  4 Year")
    endif

Maybe you are looking for

  • My iphone 3G isn't being detected by my laptop nor by itunes

    my dell laptop isn't detecting my iphone 3G nor is itunes although when i plug it to the charger it charges normally i have tried many things and nothing has worked what is the solution ???

  • How to use an existing certificate for the ABAP SSL setup using STRUST

    Hi All the documentation say to Create certificate Request and subsequently import the Certificate response from a CA. In our case, the company has a certificate from a valid CA root and we would like to use this when creating the SSL PSE files, in p

  • Select  doesnt work

    I have created tables by logging as a user 'dcl' when i go to sqlplus(logged as dcl)and query any table under the ownership of 'dcl' i get the error 'table or view not found'.if i query the same table through ENTERPRISE MANAGER logged as dcl it shows

  • How can I change the default drop shadow settings in Illustrator?

    When using Effect>Stylize>Drop Shadow on an image in a fresh document the default settings are pretty far from what I actually require. I very often work with tiny images so need a drop shadow that is about a fifth the size of what is offered on the

  • Nokia Music Unlimited: Do I need to pay to downloa...

    i have a unlimited subscription on nokia music do i still have to pay for downloading songs from nokia music.song costs dont appear.is it free to download if u have a unlimted subscription.please reply. Moderator's Note: We have moved your post and c