Multiple dropdowns

I read Forta's tute on multiple dropdowns using cf8.  Cool.  Works great.  My question is... How do I make the second dropdown contain a blank row if there isn't a blank row in the dataset that is returned from the cfc?
Example
Dropdown 1: Pick a state (values = Michigan, Pennsylvania, Washington)
User pics Michigan
Dropdown 2: Displays all cities in Michigan without any blank values.
Without inserting blank rows into the db, how can I make the first row of Dropdown 2 a blank selection in case the user does not want to select a city...

That seems like a more elegant solution than what I came up with.
I ended up doing a UNION where the firs SELECT just returns an empty row.
Doesn't matter. A solution is a solution, whatever tickles your fancy. For the benefit of those who come after you, just write your solution below, and mark it as the correct answer.

Similar Messages

  • Linking Multiple Dropdown Lists

    I have a form with multiple dropdown lists for a person's full name, room number, and phone numbers.  There are 12 names; 2 rooms; and 8 phone numbers listed.  More than one name can be tied to a certain phone number.  All fields are required.  I tried to use another script for the name and phone number (see below), but it did not work for me.
    Attempted script:
    var one = this.getField('Name');
    var two = this.getField('Number');
    if (one.value == 'Jane Doe') {two.value='321-123-4567' }
    if (one.value == 'Johnny See') {two.value='999-345-6789' }
    if (one.value == ' ') {two.value=' ' }
    Requester's Name (Dropdown List - 12 choices)
    Room (Dropdown List - 2 choices)
    Phone Number (Dropdown List - 8 choices)
    Jane Doe
    238C
    321-123-4567
    Johnny See
    999
    999-345-6789
    Even though I do not know Javascript, if someone could get me started as far as the coding goes, I think I may to figure out other parts.
    Thanks, N

    the variable 'part" needs a value. Add the script:
    part = this.rawValue
    SOnineThreenine.fxnineThreenine(part);
    to the exit event of dropDownlist2. Otherwise the variable "part" gives you a console error message of [object XFAObject]

  • How to select data from multiple dropdowns(HTMLDB)

    Hi,
    How to get the data from multiple dropdowns in the same report. Both the dropdowns are gerring data from the same table.
    Ex:
    abc-1st dropdown
    pqr-2nd dropdown.
    when abc and pqr are blank, it should display all records by default. If abc="some value" and pqr is empty then it should display all values corresponding to abc.
    Regards,
    Pallavi

    Pallavi,
    I think this might be something you are looking for:
    http://htmldb.oracle.com/pls/otn/f?p=31517:99
    There are some examples on how to modify your SQL to get it working the way you want.
    Denes Kubicek

  • Multiple Dropdowns Email Multiple Recipients

    Hi,
    I am trying to get 3 different dropdown menus to determine the multiple recipients of a submitted form. I can't seem to get them all to work at once, ...only one or another. This is the click event script I am using on the Submit button. Could someone help me identify what is wrong with my syntax (particularly the vEmail portions)?
    // First check if there are null values, then construct email using script
    var vEmail =  "";
    var vSubject = "";
    var vBody = "Attached to this email is a Field Service Issue - Parts Order Form.";
    var vName = "";
    var vCC = "[email protected]";
    var vFormat = "PDF";
    var errorMessage = "You have not provided enough information:"; 
         vSubject = "Field Service Issue - Parts Order Form";
    // Check email address field and build error message
    if (Page1.SendFormTo.rawValue == null || Page1.RSM.rawValue == null || Page1.CST.rawValue == null)
         errorMessage = errorMessage + "\n - Please select who you want to send this form to, including RSM & CST.";
    else
         vEmail = Page1.SendFormTo.rawValue, Page1.RSM.rawValue, Page1.CST.rawValue;
         vCC = "[email protected]";
    // If fields required for script are null, warn user and do not initiate email
    if (Page1.SendFormTo.rawValue == null)
         xfa.host.messageBox(errorMessage, "Sending an email", 0, 0); // Send out a custom error message if any of these fields are null
    else
         // Everything is OK, send email
         event.target.submitForm({cURL:"mailto: "+ vEmail +"?subject=" + vSubject +"&body=" + vBody + "&cc=" + vCC,cSubmitAs:vFormat,cCharset:"utf-8"});
    Regards,
    ZeroZone

    I guess issue is with your concatination....I see an issue with following line of code...
    vEmail
    = Page1.SendFormTo.rawValue, Page1.RSM.rawValue, Page1.CST.rawValue;
    I would use following....to concatinate all the email address....
    vEmail
    = Page1.SendFormTo.rawValue + ", " + Page1.RSM.rawValue + ", " + Page1.CST.rawValue;

  • 2 cascading multiple dropdown list boxes that fill a form field in Infopath

    I have a request to do this:
    first field is a cascading list box is type of work (can select more than 1 type of work)( separate list)
    then based on the choices above the
    second cascading list box has the various people's names from the first list box (can select more than 1 person)(separate List )
    then I need to from the second list box have a form field hold the various email addresses of all the people selected in the second list box.
     how would I do a multiple tier cascade in Infopath form?

    those are good examples, but here is the thing the first two dropdowns can be more than 1 selection, could be 50 items selected.
    and selection 2 dropdown doesnt lookup into  selection 1. but they do have a related column.
    company name..... ( just  saying).

  • IOS 5.0.1 multiple dropdown issue

    On both my iPad and iPhone 4 I'm having issues with when a web page has multiple linked drop downs.  After I select a value for the first dropdown and select the second one the dropdown is connect switches back to the first one before a selection can be made.  I was not having the issue before the update.  It would also be nice to be able to restore without connecting to my Mac since I did not have to to apply the update.

    Maybe all of you guys should download the user guide for the iPad but in the meantime ....
    If you lose sounds for keyboard clicks, games or other apps, email notifications and other notifications, system sounds have been muted.
    System sounds can be muted and controlled two different ways. The screen lock rotation can be controlled in the same manner as well.
    Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
    If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
    If you have the side switch set to lock screen rotation then the system sound control is in the task bar. Double tap the home button and in the task bar at the bottom, swipe all the way to the right. The speaker icon is all the way to the left. Tap on it and system sounds will return.
    If you have the side switch set to mute system sounds, then the screen lock rotation can be accessed via the task bar in the same manner as described above.
    This support article from Apple explains how the side switch works.
    http://support.apple.com/kb/HT4085

  • Multiple dropdown search field

    I just upgraded to Snow Leopard and one of things I lost in the upgrade was a dropdown of multiple search engines, dictionary, Amazon, etc. in the search field in the upper right hand corner. But I forget how I originally got it. I've been searching and haven't found it. Anyone know?

    Thanks for the suggestion but that wasn't what I was looking for. I would've sworn it was an extension but I can't find it in the extension gallery. I have it in Firefox and thought I'd be able to find it searching their Addons but no luck. This is what the dropdown looks like (customized by me).

  • Using "case" to poplulate multiple dropdowns

    I'm using a case script to populate a dropdown
    switch 
    (this.formattedValue) // use the current bound value of the dropdown
    case "NW1 - Arlington WA":
    OSRlumber.addItem("Gary");
    OSRlumber.addItem("Miker");
    OSRlumber.addItem("James");
    OSRlumber.addItem("Joel");
    } // end of switch statement
    All works well...however now I find that I need to populate five other separate and independant dropdowns with exactly the same list of names....
    those list are
    OsrLumber (current list)
    OsrKitchens
    OsrComponents
    + a few more
    Can I use a wildcard in someway at the end of Osr to populate any pulldown with that prefix so I can populate all with one wildcard field name?
    Thanks-pc

    Hmmm - not working....can you review and see what I'm missing
    form1.Page1.Location::exit - (JavaScript, client)
    switch 
    (this.formattedValue) // use the current bound value of the dropdown
    case "NW1 - Arlington WA":
    for (var i=1; i<=7; i++){
    var DD = xfa.resolveNode("form1.Osr" + i);//I tried just form1.Osr too but that didn't workDD.rawValue
    = null;DD.clearItems();
    DD.addItem.addItem("Gary Gray");
    DD.addItem.addItem("Mike Davis");
    DD.addItem.addItem("James Schiessl");
    DD.addItem.addItem("Joel Schalo");
    DD.addItem.addItem("Todd Olson");
    DD.addItem.addItem("Ken Canady");
    DD.addItem.addItem("Tony Adams");
    break;
    } // end of switch statement 
    http://share.planswift.com/download/?file=CICAA03H-D7QC-LCCC-AFGS-RPPCFQZW9P3
    Thanks! -pc   

  • Multiple dropdown menu

    Hello
    I want to  just write a simple Labview program that would take an input from user (The input must be limited e.g creating a drop down menu). Then based on this input, it must ask user to enter other inputs. for example.
    Input 1. can be either a colour , a month or a fruit.
    Input 2. If input 1 is colour, then drop down menu should take Red, Green, Orange and Yellow from user. If Input 1 is month, it should ask for one of twelve months and so on.
    In the third step I am going to use both of the inputs.
    Take the example from snapshot.
    I would like if you could indicate me an easy method to use this, or should I create a text / excel file or some sort of table to implement this. 
     

    Thanks
    Thats fine but I want that. If user selects Month from dropdown menu 1, The second dropdown  menu should automatically show just the names of months.
    If user selects Colours from dropdown menu 1 , the second dropdown menu should only show colour names.
    I hope you understand my problem.

  • Linking multiple dropdowns

    Hi
    What's the best way to link several dropdown by index's?  I wish to select a value on one dropdown and then display the same result on several other ones.
    Cheers
    Ian

    Hi,
    you can capture the selected element in the onSelect (import parameter) and the index.
    if you now loop over the elements in the detail node detail_node->get_elements( ).
    there you get the child node with the dropdown values, you use SET_LEAD_SELECTION_INDEX with the index.
    brief:
    lt_elements = node details->get_elements( ).
    loop lt_elements assigning <fs_elements>.
      lo_dropdownlist = <fs_elements>->get_child_node( name..).
      lo_dropdownlist->set_lead_selection_index( index ).
    endloop.
    grtz,
    Koen

  • Can't create multiple dependent LOVs from the same bind variable

    Hi all,
    I'm having difficulty creating multiple dependent LOVs from queries based on the same bind variable in my JSF application (JDev 10.1.3.1). Basically I have a static LOV in a af:selectOneChoice component from which users select a value which then becomes the bind variable value for two separate queries that generate two different dependent LOV. Having developed the code along the lines of Steve Muench 's blog (http://radio.weblogs.com/0118231/2006/04/03.html#a685), the first dependent LOV works really well. The first dynamic LOV gets refreshed whenever the list from the static LOV changes, and I can execute other queries based on the values selected.
    The problem arises when I want to create the second dynamic/dependent LOV that has the same bind variable based on the same selected value from the static LOV. Here I would also like the functionality whereby the second dynamic LOV is also refreshed after the selected value in the static LOV changes. Thinking that all I had to do was replicate the methodology used in creating the first dependent LOV, I created the second iterator, invokeAction and other binding components in the PageDef. The executable section now looks like the following:
    <iterator id="SelectStaticQueryViewObjIterator"
                  Binds="SelectStaticQueryViewObj" RangeSize="-1"
                  DataControl="DMSApplicationModule1DataControl"/>
    <invokeAction id="refreshDynamicQuery1BindParameter"
                  Binds="ExecuteWithParams1" Refresh="prepareModel"
                  RefreshCondition="#{empty requestScope.VariableChanged}"/>
    <iterator id="SelectDynamicQuery1ViewObjIterator"
                  Binds="SelectDynamicQuery1ViewObj" RangeSize="-1"
                  DataControl="DMSApplicationModule1DataControl"/>
    <invokeAction id="refreshDynamicQuery2BindParameter"
                  Binds="ExecuteWithParams2" Refresh="prepareModel"
                  RefreshCondition="#{empty requestScope.VariableChanged}"/>
    <iterator id="SelectDynamicQuery2ViewObjIterator"
                  Binds="SelectDynamicQuery2ViewObj" RangeSize="-1"
                  DataControl="DMSApplicationModule1DataControl"/>I now have a problem whereby everytime I change the value of the static LOV, multiple HTML components for the same ADF component are being generated (the LOVs are refreshed via PPR). The surprising thing is that this duplicating behaviour applies to all ADF components listed after the first dynamic LOV in the *.jspx source. For example, I have a <af:outputText="Test Text"/> component created after the first dynamic LOV. Each time the value in the static LOV changes, a duplicate HTML component is created. This also applies to the 'related' second dynamic LOV which is bound to a af:selectOneChoice component - multiple dropdown lists are created. I've checked with the browser's Page Source and there are actually multiple html components being generated with their own unique ADF-generated IDs. I've tried all different options for the Referesh and RefreshCondition attibutes in the second invokeAction element but nothing seems to eliminate this issue.
    Any suggestions about how I might create multiple dependent LOVs from the same bind variable that get refreshed when the selected value changes would be greatly appreciated.
    Thanks
    George

    Hi all,
    Just updating the thread on how I've overcome this issue. As it stood the manner in which I was trying to solve my use case, as described above, was creating an absolute mess. Then with a blank sheet of paper I quickly realised that a much simpler solution would be to create a whole series of master-detail VOs and build my components around them. Thankfully I haven't had any issues going down this path as yet.
    Cheers
    George

  • Sizing dropdown lists

    v11.1.1.4
    I have several pages that have multiple dropdown lists (af:selectOneChoice). Each list is sizing differently, based on the size of the data that is in the list, making the form look very uneven. How can I get these to all show up the same size? I'm guessing there's something I can put in my stylesheet, but I'm not sure which setting.
    Many thanks for any suggestions.

    Hi.
    sets the width with the contentStyle property, contentStyle="width:300px"
    check this out Re: ADF 10g selectOneChoice width
    http://jobinesh.blogspot.com/2011/02/customizing-width-of-ui-control-using.html

  • Creating Cascading Filter Dropdown boxes when data source is BO (Unx) Universe.

    Currently it is understood that cascading filter dropdown boxes are possible only with HANA and BW datasources.  Is there a plan to release this functionality with Design Studio version 1.3?  Did anybody find a workaround for this yet?

    Hi Vivek,
    Please check out this post: How to Create Multiple Dropdown boxes (Cascading Filters) when using Universe in the backend.
    Regards,
    Mustafa.

  • How do i change a 2 dropdown dynamically

    I have multiple dropdowns in my sheet I want to select value 1 from dropdown 1 and get a different set of values from dropdown 2 then when I select value 2 from dropdown 1
    example ( don't mind the values example)
    dropdown 1
    dropdown 2.1 (human)
    dropdown 2.2 (animal)
    human
    friend
    cat
    animal
    enemy
    dog
    So is there a way to do this?

    E,
    There's no way to dynamically control the format of a "Pop-Up Menu", as it is called in Numbers.
    A pretty good workaround is to create lookup tables and to use a Slider format or a Stepper format to point to the lookup table based on conditions you define regarding other cell's contents. Let the Slider or Stepper reside adjacent to the cell in which the result is displayed and it's nearly the same effect.
    Jerry

  • Samples request(XLM & DropDown)

    ALL
    Can anyone please provide complete sample and step-by-step instruction of:
    1.xlm populating form fields(I am unable to understand text explanation in help files).
      when I follow, preview works, but saving to Static or Dynamic PDF fails.
    2.Dependant dropdowns- multiple dropdowns each dependant on the previous, and finally filling a text field(s).
    3.Copy excel column and pasting to dropdown Palette value ADD(+).
      help file says to copy past, but
    -Allan

    Kyle
    We appreciate the feedback. We will evaluate customer feedback and consider some of the requests for future versions of Photoshop. It would be great if you could post your feature requests to the feedback link at http://feedback.photoshop.com.  It may allow it to be heard better as this is primarily a forum for issues with the Photoshop CS6 beta.
    Thanks,
    Pattie

Maybe you are looking for

  • How do you reset an i pad to factory settings?

    How do you reset an i pad to factory settings?

  • K9NGM3-FIH and Wake-On-Lan?

    Just updated my K9NGM3-FIH with the 2.7 BIOS and now I can't seem to find any way to get Wake-On-Lan on there, can anyone help me with this?

  • Material and standard price.

    Hi, could be a material managed without any standard price ? Best regards

  • Lost apps after updating to iOS 4.2.1 Help please! =(

    I updated my iPhone 3Gs to the iOS 4.2.1 and lost a lot of my apps. Does anyone know how to fix this? I tried to install the apps again but I have to buy them. I don't want to pay again. They also disappeared from my iTunes in the computer. =( During

  • Toshiba Satellite L305-S5919

    Good morning friends. I have this problem with my laptop, after logging-in to windows for about 5-15 minutes, my laptop suddenly goes blank. Sometimes the color is light blue or pure white. I tried to troubleshoot my laptop to know what is causing th