initialize a dynamic drop-down list

I have a table (say table1) with 11 courses, of which 4 are foreign keys.
When you create a new record, I use drop-down lists to fill 4 foreign key fields in table1.
When I update the table 1, I use a drop-down list on the search page to select the record and pass it to the edit page via an URL parameter. No foreign keys appear in the new page into a field of text without problem and can be edited. Foreign keys can be displayed without problem, but if I want to change, I have to use a list of to do.

Each foreign key is contained in a menu drop-down filled from its own set of records.

Is there a way that these drop-down lists can be dynamically initialized to the foreign key value in Table 1? Or is there a better way to do it?

Some of the key run in the hundreds, and having set all 4 manually before an update can be made is tedious.

I work in php5 and Mysql.
Howard Walker

It solved!
I was setting the initial value of the dynamic list of its own key, rather than the foreign key in table1.

Must be getting old!
Sorry to trouble you.

Tags: Dreamweaver

Similar Questions

  • Dynamic drop-down list in the Bay of cluster

    I have a table of cluster that contains two drop-down list boxes. The first drop-down list box control which Articles of the second drop-down list box by writing in the node property [StringsAndValues] for the second box. The problem I have is when I create a new index in the table of cluster and select different values in the drop-down list boxes, it changes the area of dynamic drop-down list on all indexes in the table. Attached, that's what I have so far.

    Thank you

    Chris

    Wow, what are the chances of another thread like this so early.

    Check out this other thread and look at the link of Hooovahh to see a great way to change the drop-down list box strings during execution to give the appearance different drop-down list boxes. The reality is that you can't have the combo box different types/lists in the same table. So what it is, is to check what element you are clicked on and change the behavior of the combobox as a result.

  • Problems of dynamic drop-down list box

    Hello

    I have a requirement for a list dynamic downdown.

    I use javascript itself to fill the 2 text fields in the drop-down list.  I need the list/menu area drop down to be able to have options to input from the user and the drop-down list. I selected the "user entered - optional" compared to the setting but does not seem to work.

    The drop has used names and if a new employee joined this company and I do not know the end user can enter the name of the employee in the field.

    I have attached a pdf file version.

    Any ideas or help would be great.

    See you soon.

    Hello. All you have to do is check the box "Enable custom text entry". You can find the object box > cell phone

  • The PHP/MySQL dynamic drop-down list

    I know this should be easier he became... I even bought two new books on PHP and Dreamweaver, and I'm still lost.

    I am trying to create a very simple search for a Web site. This research would be a category based with a drop-down list only search. There would also be an admin section that would add new records to the DB.

    So far, I have created a basic admin page that submits new records to the appropriate categories.

    I created a simple search with a dynamic Drop Down page, and I have created a basic results page.

    If the problem I have is that the Drop Down dynamic list shows the names of similar category according to the number of records exists. Where it should show only the unique category names.

    Once selected, the results page and the records are displayed correctly using a dynamic array.

    Anyone know what I should do to change this dynamic list so that it does not display the duplicate names?

    Thank you.

    destind4film wrote:
    > Can give you details on how to do it. I saw this same response in another
    > post in the forums but I do not understand where this setting is.

    This is a very basic SQL query. The SEPARATE after that SELECT keyword ensures
    that duplicate records are removed from the Recordset.

    > I checked my phpmyadmin and there is an option for single, but it will not
    > work for categories in my PB because there are naturally several entries
    > with the same name of category attached.

    UNIQUE is a type of index that forces a column to store only unique values.

    > I don't see this option in DW.

    You will not. Dreamweaver provides the absolute basics to create the
    code for working with a database. Unless you want to be severely limited in
    what you create, you have to learn a few basics of database
    design and build your own SQL queries.

    To add SEPARATE to your basic SQL query, you must click on the Advanced
    button in the Recordset dialog box and insert it into the SQL query by hand.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Create a dynamic drop-down list field in Adobe Acrobat Pro XI

    Hi all. I am creating a field in one of my forms using Adobe Acrobat Pro XI. I have a drop down list of 'core' items, and according to what is selected in the list, I want a second drop-down list to give different choices. I've searched and searched and have javascript that I thought might work, but maybe I'm have a mistake or I'm place javascript code in the wrong place, because it does not work. I know very, very little about javascript, any help would be so appreciated.

    I use Adobe Acrobat Pro XI. I added a "new field" and selected "drop-down list. The domain name is ProvType. The options of the menu drop-down are:

    Hospitalized patients

    External consultations

    Doctor

    I have "Commit selected value immediately" selected. The field is not validated. The format is 'none '. There is no measures or calculations associated with it.

    I then created another dropbox and named SubProvType. Under Actions, I selected the trigger as the mouse upwards and then selected the Action "executes a JavaScript script. I selected the Add button and he hit in the JavaScript editor:

    Switch (ProvType.rawValue)

    {

    case "Hospitalisation":

    this.setItems ("Hospice, hospital, Nursing Facility");

    break;

    "outpatient": case

    this.setItems ("adult day Center, Home, others");

    break;

    case 'doctor ':

    this.setItems ("surgeon, general practitioner, neurologist");

    break;

    }

    What I want to do is:

    If "Hospitalization" is selected, I want only the following options to be available in the second drop-down list box "SubProvType":

    Palliative care

    Hospital

    Nursing facility

    If "outpatient" is selected, I want only the following options to be available in the second drop-down list box "SubProvType":

    Adult day Center

    Home

    Other

    If the 'doctor' is selected, I want these options to be available in the second drop-down list box "SubProvType":

    Surgeon

    Family practice

    Neurologist

    However... when I close form editing and try to select a different option in the ProvType field, SubProvType field is left blank and there is no options available. Also, there are no errors.

    I must be missing something, but I have no idea where to start. Thank you in advance for any help anyone can provide.

    Use this code as the ProvType custom validation script (and remove any code that you have associated with SubProvType):

    switch (event.value) {
        case "Inpatient":
            this.getField("SubProvType").setItems(["Hospice,Hospital,Nursing Facility"]);
            break;
        case "Outpatient":
            this.getField("SubProvType").setItems(["Adult Day Center,Home,Other"]);
            break;
        case "Physician":
            this.getField("SubProvType").setItems(["Surgeon,Family Practice,Neurologist"]);
            break;
    }
    
  • Using dynamic drop-down list

    I've seen countless videos and read a lot of posts on how to create drop down menus, but the script I write still does not work. I am trying to create something pretty basic. I have two drop-down menus on two different pages. The value of the drop-down list on the first page will decide what appears on the drop-down list on the other page. I specified values of element for both lists. Any help would be greatly appreciated. Thanks in advance. So far, the code I created is as follows:

    switch (this.rawValue) { }

    case "1" :

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem ("primary insured
    "or staff 24/7");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("70%-working torque");

    breaking ;

    case "2" :

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem ("primary insured or personal 24/7");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("70%-working torque");

    breaking ;

    case "3" :

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied 3-6 month/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied more than 6 month/year");

    breaking ;

    case "4" :

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied 3-6 month/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied more than 6 month/year");

    breaking ;

    case "5" :

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied 3-6 month/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied more than 6 month/year");

    breaking ;

    case "6"

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied 3-6 month/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied more than 6 month/year");

    breaking ;

    case "7"

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied 3-6 month/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied more than 6 month/year");

    breaking ;

    by default:

    OccupancyDropDown.addItem ("Please choose
    "" "Occupation");

    breaking ;

    }

    Hi, in your code need you 2 things...-> «:»

    case "6": <>

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied 3-6 month/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied more than 6 month/year");

    break;

    case "7": <>

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied 3-6 month/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied more than 6 month/year");

    break;

  • Dynamic drop-down list

    I'm trying to create a dropdown menu with lets say groups that populate a second drop-down list with people in them. Can someone tell me please in the right direction for this?

    Here is an example that I set up for you. The code is on the output of the 1st DDList event. If you have many options in this list, you can watch a different code construct (select the in Javascript).

    Paul

  • Initialization of a drop-down list box attached

    I enclose a combo box called 'BinaryCombo' to a component (dg) of the datagrid using the attachMovie method

    Lika then... dg.attachMovie ("BinaryCombo", "hover", 9999, {_x:10, _y:20});})

    It works fine except that I want initialize the combo selectedIndex when attaching.


    Initialization the x, y of the box, I'm not sure of the syntax (or if it is even possible) to initialize the index.

    Does anyone have any suggestions?

    Thank you

    attachMovie is just paste the combobox on the grid.  you will have all the features of the data grid.

    to add the combobox control to the data grid, see: http://www.flash-db.com/Tutorials/cellrenderer/CellRenderer.php

  • Enter text in the drop-down list LOV APEX 3.2

    I have several list of values that are used on oracle forms, we have created. Those who work large etc. They are all data in oracle tables.
    Users would like to be able to add to these tables if they enter data into a form that uses one of these list of values. They don't want to leave the form they are on and go to another form to enter data for the list of values.
    I didn't see any option to allow a user to enter new data in a drop-down list. I know it takes some effort, and I have to add code to my form to work.
    Unless I'm mistaken this doesn't seem to be a viable option at the Apex 3.2.

    Let me ask a few questions.

    1. it would be possible for me to simply add the link that says something like "my point is not listed.
    They click on it and it brings up a box pop up with a small form to add data to the table for the drop of LOV.
    After that is updated it then updates dynamically drop-down list on the main form.

    I am .net and VB.net guys only use apex 6 months here, so quite new for her.

    2. MAKE identical to this option, except instead of a link, I'll have a selection in the LOV
    who says that my article is not. Then if they choose this option it will bring up the box pop up with the form...

    3. If not these things are available in 3.2 available in apex 4.0?

    4. If they are 4.0 is easy to upgrade to 4.0 3.2 we have this on a Unix machine right now.

    5. all the best ideas?

    Thank you

    See anyway to do a popup window MODAL in APEX, using JavaScript

    Modal is a remnant of vs IE the thing in the world. Thus, the JS code goes something like this

    if (window.showModalDialog) {
    window.showModalDialog("f?p=&APP_ID.:&PAGE_ID.:&SESSION.:POP:NO:::","name","dialogWidth:600px;dialogHeight:400px");
    }
    else {
    window.open("f?p=&APP_ID.:&PAGE_ID.:&SESSION.:POP:NO:::","name","height=400,width=600,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    }
    

    Concerning

  • Drop-down list does not appear selected value

    Hello

    I have a problem. The output of a query results page. There are 2 fields must be updated: scholarshipID and amount. I want to update my request at a time. My dynamic drop-down list does not appear selected value. The value is there, but it does not recognize in the drop-down list. I could not find the error. My code is below, so please help...

    < name cfquery = "getStudentsData" datasource = "#application. DSN #">"
    Select StudentID, fname, lname, GPA, Tbl_Students.ID, ScholarshipID, rise, Tbl_StudentsScholar.ID as the SSID, AwardStatus
    of Tbl_Students, Tbl_ApplyYear, Tbl_EduBckgrnd, Tbl_StudentsScholar
    where Tbl_Students.ApplyYr = Tbl_ApplyYear.id
    and Tbl_Students.id = Tbl_EduBckgrnd.SID
    and Tbl_Students.ID = Tbl_StudentsScholar.SID
    and ApplyYear = 1
    and steps = 7
    order by studentid
    < / cfquery >

    < name cfquery = "getScholarship" datasource = "#application. DSN #">"
    Select AcctNum, scholarship, Tbl_Scholarships.id, Code
    of Tbl_Scholarships, Tbl_DistCode
    where Tbl_Scholarships.DistCode = Tbl_DistCode.id
    AcctNum order
    < / cfquery >

    < cfparam name = 'X' default '0' = >
    < cfparam name = default "CounterX" = "0" >

    <!--get scholarship-->

    < cfif getStudentsDataRet.RecordCount eq 0 >
    < class p 'paragraph' = > No Records Found < /p >
    < class p = "pageheight" > < / p >
    < class p = "pageheight" > < / p >
    < cfelse >


    < class p = "submitmessage" > records found - < cfoutput > #getStudentsDataRet.Recordcount # < / cfoutput > < / p >
    < table width = "98%" border = "1" cellpadding = "3" cellspacing = "0" style = "" border-collapse: collapse "bordercolor ="#000000"align ="center">"
    < class tr = "steptext2" bgcolor = "#999999" align = "center" >
    < td width = "10%" > Student ID < table >
    < td width = "9%" > name < table >
    < td width = "9%" > name < table >
    < td width = "5%" > GPA Cum < table >
    < td width = "5%" > account # < table >
    < td width = "5%" > < table > amount
    < td width = "20%" > account # | Dist Code | Scholarship name < table >
    < /tr >

    < do action = "updateAward.cfm" method = "post" name = "AwardForm" > "
    < cfoutput query = "getStudentsDataRet" >
    < cfif eq x 0 and x neq getStudentsDataRet.recordcount >
    < cfset x = 1 >
    < cfelseif x neq (getStudentsDataRet.recordcount + 1) >
    < cfset x = x + 1 >
    < / cfif >
    < class = "paragraph" tr >
    < td > #StudentID # < table >
    < td > #lname # < table >
    < td > #fname # < table >
    < td > #GPA # < table >


    < cfif AwardStatus eq 2 >
    < name cfquery = "getStudentsScholar" datasource = "#application. DSN #">"
    Select Code, Tbl_Scholarships.id, AcctNum, scholarships
    of Tbl_Scholarships, Tbl_DistCode
    where Tbl_Scholarships.DistCode = Tbl_DistCode.id
    and Tbl_Scholarships.ID = #getStudentsDataRet.ScholarshipID #.
    < / cfquery >
    < / cfif >
    < td >
    < select name = "" scholarshipID_ #X # "onChange =" showMessage_ #X #(this.options[this.selectedIndex].value) ">"
    < option value = "" > < / option >
    < cfloop query = "getScholarshipRet" >
    < option value = "" #id # "selected < cfif getStudentsDataRet.ScholarshipID eq id > < / cfif > > #AcctNum # < / option >"
    < / cfloop >
    < / select >
    < table >
    < td > < input name = "" amount_ #X # "type ="text"size ="5"< cfif amount gt 0 > value = ' #NumberFormat (amount, 99.99) # ' < / cfif > / > < table >"
    < td > < cfif AwardStatus eq 2 > #getStudentsScholar.AcctNum # | #getStudentsScholar.Code # | #getStudentsScholar.Scholarship # | #getStudentsDataRet.ScholarshipID # < / cfif > < table >
    "< input name =" "IndexID_ #x #" type = "hidden" value = "#SSID #" / >
    < /tr >
    < / cfoutput >
    < cfoutput > < input name = "CounterX" type = "hidden" value = "" #getStudentsDataRet.RecordCount # "/ > < / cfoutput >"
    < b >
    < td align = "center" colspan = "11" height = "50" valign = "middle" > < input name = "Submit" type = "submit" value = "Submit" / > < table >
    < /tr >
    < / make >
    < /table >
    < / cfif >

    the syntax is: getStudentsDataRet.ScholarshipID [1]

    where '1' is the line number to specify

  • How to dynamically add an Option in the drop-down list?

    I have this code:

    {Drop-down list

    ID: list

    Title: 'list '.

    onCreationCompleted: {}

    opion var = new Option();

    opion. Text = "Hello";
    opion. Value = 4;

    List.Add (opion);

    }

    }

    After the launch of the application, the list is empty.

    Why my code does not work?

    It is easy to dynamically add options

    first add this to your attachedObjects:

    ComponentDefinition {
                id: optionDefinition
                Option {
                }
            }
    

    then do something like this

    var newOption = optionDefinition.createObject()
                newOption.text = ...
                newOption.value = ...
                newOption.description = ...
                newOption.selected = ....
                yourDropDown.add(newOption)
    
  • dynamically load the Options in a drop-down list in C++

    Hey guys,.

    I'm trying to dynamically load items Option in a drop-down list by using C++.  I have a function in my class of WorkManager file that does the trick:

    QStringList WorkManager::getListOfItems() {
        int i = 0;
        QStringList taskNames;  // used for debugging mainly, so i can print the list out to debug
        QList  myObjects = m_model->toListOfObjects();
        DropDown * dpList = bb::cascades::Application::instance()->scene()->findChild("scriptListDropDown");
        if (dpList != 0 ) {
            dpList->setSelectedOption(0);
            dpList->removeAll();
            for (i = 0; i < myObjects.size(); i++) {
                Task * myTask = (Task *) myObjects[i];
                taskNames.append(myTask->taskName());
                dpList->add(Option::create().text(myTask->taskName()).value(myTask->command()));
    //          delete myTask;  // do I need to delete the task object?
            }
    //      qDebug() << "WorkManager::getLIstOfItems(), ---> list of tasks is : " << taskNames;
            return taskNames;
        } else  {
            qDebug() << "WorkManager::getListOfItems(), ---> dpList was 0";
            return taskNames;  // empty list
        }
    }
    

    I also found this thread:http://supportforums.blackberry.com/t5/Native-Development/Adding-options-to-a-DropDown-from-c/m-p/21... that helped me get the filled drop-down list when the application starts.

    However, I need to re - fill list from time to time, when the list (a GroupDataModel) changes.  calling the function above a second time anywhere in my application appears to hang the application immediately.

    I think / thought it might have something to do with the slot for the onSelectedValueChanged, but I can't understand it.

    It seems down right when I do dpList-> removeAll().

    I also can't seem to find the right place to call this function to an object of type in my class.  I think it's because the drop-down list is not ready yet as the dpList * is always 0 unless what I call after the line:

    app->setScene(root);
    

    in the applicationui.cpp file.  Calling it works on start-up, but trying to update the list later (by removeAll() and recreate) causes the app crashing.

    is there a better way to do it?  .. and make it safer?  I can't understand how to do this.

    Thank you!

    J

    First, drop the:

    dpList->setSelectedOption(0);
    

    Not only if it is not necessary, but it will explode your application if the function is called when there is already no options in the menu dropdown.

    Also, do NOT delete the task, because it is still owned by the datamodel. I also see that you use type casting C, which just blindly accepts your cast, even if it's a mistake. Instead, if you know for sure what kind it will be this way instead:

    Task* myTask = static_cast(myObjects[i]);
    

    If you are not sure if the type you are casting the is the type you need, use the dynamic_cast instead:

    Task* myTask = dynamic_cast(myObjects[i]);
    

    The advantage of this more static_cast , is that if you try to perform a type cast is not compatible, then myTask will be set to NULL.

    Alternatively, Qt offers a replacement for dynamic_cast which works on platforms where is not regular C++ casts.

    Task* myTask = qobject_cast(myObjects[i]);
    

    It is functionally equivalent to dynamic_cast, but as I said, it works on all platforms that Qt exists, whereas dynamic_cast cannot.

    Once you did get back to us.

    oddboy wrote:

    Hey guys,.

    I'm trying to dynamically load items Option in a drop-down list by using C++.  I have a function in my class of WorkManager file that does the trick:

    QStringList WorkManager::getListOfItems() {
        int i = 0;
        QStringList taskNames;  // used for debugging mainly, so i can print the list out to debug
        QList  myObjects = m_model->toListOfObjects();
        DropDown * dpList = bb::cascades::Application::instance()->scene()->findChild("scriptListDropDown");
        if (dpList != 0 ) {
            dpList->setSelectedOption(0);
            dpList->removeAll();
            for (i = 0; i < myObjects.size(); i++) {
                Task * myTask = (Task *) myObjects[i];
                taskNames.append(myTask->taskName());
                dpList->add(Option::create().text(myTask->taskName()).value(myTask->command()));
    //          delete myTask;  // do I need to delete the task object?
            }
    //      qDebug() << "WorkManager::getLIstOfItems(), ---> list of tasks is : " << taskNames;
            return taskNames;
        } else  {
            qDebug() << "WorkManager::getListOfItems(), ---> dpList was 0";
            return taskNames;  // empty list
        }
    }
    

    I also found this thread:http://supportforums.blackberry.com/t5/Native-Development/Adding-options-to-a-DropDown-from-c/m-p/21... that helped me get the filled drop-down list when the application starts.

    However, I need to re - fill list from time to time, when the list (a GroupDataModel) changes.  calling the function above a second time anywhere in my application appears to hang the application immediately.

    I think / thought it might have something to do with the slot for the onSelectedValueChanged, but I can't understand it.

    It seems down right when I do dpList-> removeAll().

    I also can't seem to find the right place to call this function to an object of type in my class.  I think it's because the drop-down list is not ready yet as the dpList * is always 0 unless what I call after the line:

    app->setScene(root);
    

    in the applicationui.cpp file.  Calling it works on start-up, but trying to update the list later (by removeAll() and recreate) causes the app crashing.

    is there a better way to do it?  .. and make it safer?  I can't understand how to do this.

    Thank you!

    J

  • Dynamic region on the change from the drop-down list of values

    Hi Experts,

    Using the concept of dynamic region, I tried to use buttons as I have 4 buttons and clicking on each button, I am loading the particular taskflow. I used setPropertyListener and type = action to achieve this.

    I have a similar requirement, but I need to use the drop down list here...

    < af:selectOneChoice value = "#{mybean.value}" >

    < f: selectItem itemLabel = "First" Valeurelement = "FirstValue" / > "

    < f: selectItem itemLabel = "Second" Valeurelement = "SecondValue" / > "

    < f: selectItem itemLabel = "Third" Valeurelement = "ThirdValue" / > "

    < f: selectItem itemLabel = "fourth" Valeurelement = "FourthValue" / > "

    < / af:selectOneChoice >

    How can I dynamically load a region on the value selected by the user on top of the data. On the change of the value in the drop-down list, I need to load this particular dynamic region

    JDeveloper version 12.1.3

    Thanks in advance.

    You use a listener to change value of the duo down and detect the region according to the new value of the duo down.

    Timo

  • Barcode 1 d dynamic of several drop-down lists

    I worked on it for a while and I can't do things. I am using formcalc. I have a dynamic PDF form, I created with two drop-down lists. A drop-down list has elements such as the 'new' or 'Used' and the second drop-down list has a price list, such as "99 ¢ ' or '$ 1.99', etc. At the bottom of the form, there is an element of code 128 barcode barcode which is the value calculated - read-only. I am trying to use logic to combine both, where if you have selected 'New' and ' 99 ¢ "would that be the rawvalue of the code bars"NEW1"or something in that sense.

    Here's what I have so far:

    TopmostSubform.Page1.Shape.DropDownList1::calculate - (FormCalc, client)

    If (DropDownList1.value == "New" and DropDownList2.value is "99 cents") then BarCode1.rawValue == "NEW1" endif

    What I'm missing here?

    Please check the update below code.

    If (DropDownList1.value == "New" and DropDownList2.value is "99 cents") then BarCode1.rawValue == "NEW1" endif

    Update: if (DropDownList1. rawValue == 'NEW' and DropDownList2. ( rawValue == '99') then Code128BarCode1.rawValue = "Nouvelle1" endif

    the changes are highlighted and another is: BarCode1.rawValue = "Nouvelle1" ('is' not two 'is'. Two eqals 'is' for the purposes of comparison only, no assignment)

    -Rambeau.

  • Dynamically updated drop-down lists

    Hi, I need to make a drop-down list whose options depend on a selected drop-down list box above. For example, if I have two boxes, one titled State and a city, I want to the area of the city to contain only some cities in the State that is specified in the status area. Is there a way to do this in coldfusion? Thank you.

    Yes, this can be done. I did it both ways. If you use Flash forms you can put it in ActionScript without having to reload the page.
    See the example here:
    https://secure.cbnw.org/secure/onlineRegistrations/tadmor06/preRegister.cfm
    Click on Yes, no and no, then click on continue. Choose a category in the menu drop-down, then go to the Session of Camp page and look at the 2 drop-down menu. Try to choose a first option, then a second option (you will notice that the second option does not allow a choice until you choose the first option. Then try to go back to the first option and choose the same choice you have in the second option. (Also, if you go back and change the rank for example of primary school in school age) you will see the choice of Exchange session.

    Another way to do it is with javascript and simple html forms. Here is a page that I currently use on:

    http://home.cbnw.org/ColdFusion/cbnw/Smartphone.cfm

    Here are the parts of my code that concern drop-down lists:


    SELECT City, province
    Churches
    ORDER BY city, province



    SELECT State
    OF dataQuery
    State of GROUP BY
    ORDER BY State



    SELECT City, province
    OF dataQuery
    WHERE State = ' #URL.state # '.
    GROUP BY city, province
    ORDER BY city, province

    Down into the body of the page:




    Hope that helps.

Maybe you are looking for

  • Emoji updates

    I read on the site of BBC News (UK) this evening that Apple must replace the emoji to gun for a pistol to water and are at present 100 other characters. r-pistol-and-introduces-100-other-charac http://www.BBC.co.UK/Newsbeat/article/36955469/Apple-rep

  • Apple TV (9.2.1) removes the internet connection when you try to use Siri

    Greetings, I think I saw network related issues with my Apple TV. Everything works fine most of the time. But sometimes, including, but not limited to, when I try to use Siri, Apple TV almost always drops the wireless internet connection. I've includ

  • Satellite A100-049 stops and restarts

    Have had this laptop for about six months and sometimes, no reason apparent, just turns off and restarts. Obviously, this can be very irritating. Anyone alse met this or know why it happens? CocoLoco

  • How to transfer video?

    I am running Win XP Pro, SP2.  Can I transfer the video stored on an external hard drive?

  • There is no program associated to this...

    I tried to help a friend speed up to his computer by having him clean its cache.  I walked her through it and now she can't open attachments to emails.  That's happened?