Dependent dropdowns

HI
iam populating dropdownbyindex with the values coming from RFC,cardinality and selection of model node are 0..n and 0..1.
iam getting the null as the first value in the dropdown.
how to set this null value with a value like "please selct"
please provide the code if u hv any.

Dear haranath.
If dropdownbyindex element binds to node with cardinality 0..n it is not possible to change the first empty option in
dropdownbyindex element by your own other text option.
So, you should set node cardinality 1..n and put the first element to the node with text "please selct".
Best regards, Sergey.

Similar Messages

  • How to implement two dependent dropdown lists in an input  table row?

    Hi all,
    I am new in Jdev 11g. I try to develop an input table with two dependent dropdown list. I can create independent dropdown list in such table. When I try to implement dependent one following some examples do it in a form using bind variable in the view object I get an empty listbox. How can I do this? Is it possible. I cannot find any documents about this.
    Thanks in advance

    Hi,
    it hasn't changed between 10.1.3 and 11. The basic outline of how you do it is
    - use a managed bean to query the data
    - populate the list with f:selectItems that point to the managed bean ArrayList<SelectItem> for the master and the detail
    - obtain the master ID in the managed bean by parsing the #{row} variable when the table renders
    - then bulild the detail list
    - have the detail list referencing the ArrayList<SelectItem> you expose for the details
    Note that without proper caching, the action is quite expensive
    Frank

  • Dependency DropDown List for Multiple Rows in Offline Interactive Form

    Hi I have 2 drop down lists.. in one dropdown list I have "Billable" and "Non Billable" , in second Dropdown list we will have Binding values with "Billable".... when we select "Billable" I need to get the data in Second Dropdown list from Database, and when we Select "Non Billable" then Dropdownlist should become a Inputfield (i.e Dropdown should turn to textfield)...and this should happen for each and every row....based on Index value....help me on this.....

    Hi,
    You can create one input text field and make it visible when a user choses non billable option in dropdown 1, using -
    <this>.presence = "visible";
    when billable is chosen from dropdown 1, I can think of two ways.
    - Since you have binding 'billable' options with second dropdown, make it visible when billabile option is chosen.
    - you can also populate the second dropdown using javascript (something like dependent dropdowns) when billable option is chosen.
    if ( this.rawValue == 'billable' )
         seconddropdown =  xfa.resolveNodes("xfa.record.ITAB.DATA[ *]");
         for ( var k = 0; k < seconddropdown.length ; k++)
          <your path>.addItem(seconddropdown.item(j).fieldname.value,seconddropdown.item(j).fieldname.value );   (to populate second dropdown)
    Regards, Liz

  • Dependent Dropdown with POST

    Hi (Gunter Hi again if it's you that answers this)
    <br />
    <br />I have a dependent dropdown on page with 3 selects (working fine) that needs to pass 3 parameters to a page manage_sections.php and the params are ClientID, ProjectID and SectionID respectively.
    <br />
    <br />Here is my form:-
    <br />
    <br />--------
    <br />
    <br />
    <form action="manage_sections.php" method="get" name="remove" target="_parent">
    <br />
    <span class="textcol4">1.&#160;</span>
    <select name="ClientID" id="ClientID">
    <option value="">select client</option><?php<br />do {  <br />?>
    <option value="<?php echo $row_RsClients['ClientID']?>">
    <?php echo $row_RsClients['ClientName']?>
    </option><?php<br />} while ($row_RsClients = mysql_fetch_assoc($RsClients));<br />  $rows = mysql_num_rows($RsClients);<br />  if($rows > 0) {<br />      mysql_data_seek($RsClients, 0);<br />   $row_RsClients = mysql_fetch_assoc($RsClients);<br />  }<br />?>
    </select>
    <br />
    <label>
    <br />
    <br />
    <span class="textcol4">2.&#160;</span>
    <select name="ProjectID" id="ProjectID" wdg:subtype="DependentDropdown" wdg:type="widget" wdg:recordset="RsProjects" wdg:displayfield="ProjectName" wdg:valuefield="ProjectID" wdg:fkey="ProjectClientID" wdg:triggerobject="ClientID" wdg:selected="">
    <option value="">select project</option>
    </select>
    <br />
    <br />
    <br />
    <label>
    <br />
    <span class="textcol4">3.&#160;</span>
    <select name="SectionID" id="SectionID" wdg:subtype="DependentDropdown" wdg:type="widget" wdg:recordset="RsSections" wdg:displayfield="SectionName" wdg:valuefield="SectionID" wdg:fkey="SectionProjectID" wdg:triggerobject="ProjectID">
    <option value="">select section</option>
    </select>
    <br />
    </label>
    <br />
    <a href="javascript:void(0)">
    <img src="../Nitobi/Assets/style/treegrid/flex/refresh.gif" alt="refresh" width="16" height="14" hspace="4" border="0" onclick="window.location.reload()" />
    </a>
    <br />
    <label>
    <br /> &#160;&#160;&#160;&#160;
    <input type="submit" class="btn1" value="GO" />
    <br /></label>
    <br /></label></form>
    <br />
    <br />-----------
    <br />To submit the IDs I have found the only way I can figure is to use 'GET' form action and manually add the dropdown IDs to be the same as the ID I want to pass eg '
    <select name="ClientID" id="ClientID"></select>

    Hi Glennboy,
    <br />
    <br />regretfully there´s no way to hide URL parameters from the browser´s address bar, but there are ways to protect the originally passed $_GET values -- it´s done by storing them in Session Variables and check these ones against subsequent changes.
    <br />
    <br />Out of curiosity - and also because this is a serious issue to many folks here - I´ve just been experimenting a little, and I´d like you to try the following approach:
    <br />
    <br />1. create a simple "parameters.php" page which just contains a link to "check.php" -- and append some static dummy values to this link, e.g. "check.php?ClientID=53&amp;ProjectID=15&amp;SectionID=25"
    <br />
    <br />2. create the page "check.php", and in here paste the following PHP/HTML code:
    <br />
    <br />-----------
    <br /><?php<br />session_start();  <br />if(isset($_SESSION['views']))<br />    $_SESSION['views'] = $_SESSION['views']+ 1;<br />else<br />    $_SESSION['views'] = 1;<br />?>
    <br />
    <br /><?php<br />if(!empty($_GET['ClientID']) && (is_numeric($_GET['ClientID'])) && ($_SESSION['views'] == 1) ){<br />$session_ClientID = $_GET['ClientID'];<br />$_SESSION['session_ClientID'] = $session_ClientID;<br />}<br /><br />if(!empty($_GET['ProjectID']) && (is_numeric($_GET['ProjectID'])) && ($_SESSION['views'] == 1) ){<br />$session_ProjectID = $_GET['ProjectID'];<br />$_SESSION['session_ProjectID'] = $session_ProjectID;<br />}<br /><br />if(!empty($_GET['SectionID']) && (is_numeric($_GET['SectionID'])) && ($_SESSION['views'] == 1) ){<br />$session_SectionID = $_GET['SectionID'];<br />$_SESSION['session_SectionID'] = $session_SectionID;<br />}<br />?>
    <br />
    <br /><?php<br />// 1. checking the Session Variable "session_clientID"<br />if (isset($_SESSION['session_ClientID']) && ($_SESSION['session_ClientID'] == $_GET['ClientID'] ) ) {<br />$check_ClientID = "has not been faked";<br />$valid_ClientID = 'Y';<br />}<br />else {<br />$check_ClientID = "has been faked to <b>".$_GET['ClientID']."</b>";<br />$valid_ClientID = 'N';<br />}<br /><br />// 2. checking the Session Variable "session_projectID"<br />if (isset($_SESSION['session_ProjectID']) && ($_SESSION['session_ProjectID'] == $_GET['ProjectID'] ) ) {<br />$check_ProjectID = "has not been faked";<br />$valid_ProjectID = 'Y';<br />}<br />else {<br />$check_ProjectID = "has been faked to <b>".$_GET['ProjectID']."</b>";<br />$valid_ProjectID = 'N';<br />}<br /><br />// 3. checking the Session Variable "session_sectionID"<br />if (isset($_SESSION['session_SectionID']) && ($_SESSION['session_SectionID'] == $_GET['SectionID'] ) ) {<br />$check_SectionID = "has not been faked";<br />$valid_SectionID = 'Y';<br />}<br />else {<br />$check_SectionID = "has been faked to <b>".$_GET['SectionID']."</b>";<br />$valid_SectionID = 'N';<br />}<br />?>
    <br />
    <br />The original ClientID value is
    <b>
    <?php echo $_SESSION['session_ClientID']; ?>
    </b> and <?php<br />echo $check_ClientID; ?>
    <br />
    <br />
    <br />
    <br />The original ProjectID value is
    <b>
    <?php echo $_SESSION['session_ProjectID']; ?>
    </b> and <?php<br />echo $check_ProjectID; ?>
    <br />
    <br />
    <br />
    <br />The original SectionID value is
    <b>
    <?php echo $_SESSION['session_SectionID']; ?>
    </b> and <?php<br />echo $check_SectionID; ?>
    <br />-----------
    <br />
    <br />You will see that any subsequent changes of the initially stored $_GET values will return a "has been faked to..." message for each URL variable, and I think that´s quite fine for a start ;-)
    <br />
    <br />Cheers,
    <br />Günter Schenk
    <br />Adobe Community Expert, Dreamweaver

  • Dependent Dropdown List Help

    I created a dependent dropdown list form in Acrobat X Pro using the example in the tutorial:
    http://acrobatusers.com/tutorials/js_list_combo_livecycle
    This code works great, however, this tutorial only works if the options for the dropdwon lists are full words. Multiple words separated by spaces can't be used because the options for the main list are used as arrays. In this tutorial for example, the options for the main list are: Chassis, Clutch, etc. (one word). This technique won't work is for example, if the options for this list are 'Cylinder Ring', 'Brake Pads', etc.
    Any ideas on how to implement the dependent dropdow lists using multi-word options?
    Thank you.

    Just put quotes around any object properties. For example:
    var oAssemblyParts = {
        "Chasis": [
            ["-","None"],
            ["Rear Bracket",205.95],
            ["Front Bearing",48.95]
        "Cylinder Ring": [
            ["-","None"],
    // etc.

  • ADDT Dependent Dropdown SB with Spry Repeat Lists

    Hi,
    I first want to say that this forum is fantastic and full of very bright folks willing to help us not so bright types.
    Next, of course, I have a problem. I'm using spry repeat lists as dropdowns in a form. There are 3 that need to be dependent on each other. I had been using the ADDT dependent dropdown SB and it works great for normal selects. It doesn't seem to work at all on spry repeat lists. I was hoping these two would play nicely together, and maybe they do and there's some trick to this.
    If the ADDT SB's don't work with Spry repeat lists, maybe there's a way to do this using javascript?
    Thanks in advance for any help,
    Tony Galfano

    Hi Gunter,
    Thanks for the help. I've decided, based on your accurate assessment of the work involved in getting all this to work with spry, to ditch that and just refresh the damn page after all new entries are made. I appreciate your help, probably saved me many hours.
    I do have a wierd issue with the ADDT editaqble dropdown behavior. I actually use this one a lot and it always works well. I have one dropdown that only showsw the first 2 characters of the contents. A swcreenshot is avaiable here: http://www.zenwebguru.com/editabledropdown.jpg
    All of the other editable dropdowns on the page, and the site, work fine, but this one is shruken for some reason. I'm wondering if there is a size limitation in the css or the js that can't handle larger records? The largest field in the table contains the value:
    "Flat Guarantee; Purchaser to provide one Fender Amplifier (see rider for list of amps) at no cost to Artist."
    This really shouldn't present a problem, but maybe it's something else?
    Thanks, as always for your great help.
    Tony

  • How can I use more than 2 dependent dropdown lists

    I would like to create a form using three level of dépendent dropdown lists.
    Some examples exist with States dropdown list depending on a Country dropdown list. I would like to have a third level City depending on the choice made in the second list. Thanks for your help and sorry for my English

    Hi,
    I used the script from http://acrobatusers.com/tutorials/js_list_combo_livecycle1 to create a two dependent drop-downs and then was able to extend this to three dependent drop-down lists. I have put an example up at https://workspaces.acrobat.com/?d=Ph1ZsLxdyeZk9dq9qovNeQ
    Hope this helps,
    Greig

  • How to create a dependant dropdown list in JHeadStart

    I have created a JDeveloper application using JHeadStart. I have created a dropdown list that should be dependant on another value in the table.
    So far I have done the following:
    1. Created a new view object in the data model.
    2. Created a bind variable to supply the value to the where clause for the view.
    3. Altered the where clause in the view to use the bind variable.
    4. Created a new domain in JHeadStart using this new view.
    Where I am having problems is how to assign the bind variable the value of another field in the currently displayed form. The current form is in form layout mode.
    I have done this when using table layout mode by doing the following: bindvariable=#{row.field} which works great. The problem is how do I do this in form layout?

    Please ask this in the JHeadstart forum
    Timo

  • Populating dependent dropdown without using AJAX

    In my struts application, I have jsp where I have two dropdowns (<html:select>) - Course and Subject.
    The values are being retrieved from database.
    Now depending on the selection of my Course, I have to get corresponding Subjects from database.
    If I call same Action class from jsp, when jsp loads again, it refreshes my dropdowns and the value selected previously for Course reset.
    I dont want to use AJAX.
    Please give some idea, how can I acheive it.
    Thanks in advance.

    Gagz wrote:
    but when jsp loads, it clears the value of first dropdown.Ah, that's your whole problem! Populating the 2nd dropdown has completely nothing to do with it. You would still get the same problem if you didn't populate any 2nd dropdown. Try to elaborate problems the smart way the next time.
    Not sure how to do it in Struts (you're here at a JSP forum, not at a Struts forum), but basically you should set the selected value based on the submitted value/property. something like <html:select value="${beanname.propertyname}"> or <html:select property="propertyname">. In plain JSP/HTML terms you just need to set the <option> to "selected" based on the submitted value as request parameter.

  • Dependant Dropdown - Format string as date?? And hopefully two dates as a range?

    I'm stuck - been trying to figure this out all afternoon and with a launch in 2 days am probably missing something obvious....so please help me!! hehe<br />I have the a dependent drop down.  The first one is a list of Locations and the second one is then populated by a list of dates that events will be at those locations.<br /><br />1st problem:  when I've been hand coding this drop down I am able to show the start and end date with something like:<br />echo date( 'l, M j', $row_getalldates['date_start']).' - '.date( 'M j',$row_getalldates'date_end']);<br /><br />b How do I translate that into one string to display in wdg:displayfield=""<br /><br />2nd:  Right now since I can't get the two values in...I'm just going with one value so I can continue with development till I figure it out.  <br /><br />I cannot get the date formatted as I usually do with the date() function I usually use. See: http://camp.studentlife.com/housing2/index.php?op=addinfo<br /><br />b SQL STATEMENT:<br />$query_getalllocations = "SELECT distinct(b.title),locationid FROM calendar a LEFT JOIN sllocations b USING (locationid) WHERE b.title is NOT NULL and a.date_start>$mstart_date and a.date_start<$mend_date AND (a.calid='1' ) GROUP BY b.title ORDER BY b.title ";<br />$getalllocations = mysql_query($query_getalllocations);<br />$row_getalllocations = mysql_fetch_assoc($getalllocations);<br />$totalRows_getalllocations = mysql_num_rows($getalllocations);<br /><br />$colname_getalldates = "-1";<br />if (isset($_GET['locationid'])) {<br />  $colname_getalldates = $_GET['locationid'];<br />}else{<br />     $colname_getcalendar = "-1";<br />     if (isset($_GET['eventid'])) {<br />       $colname_getcalendar = $_GET['eventid'];<br />     }<br />     <br />     $query_getcalendar = sprintf("SELECT * FROM calendar WHERE eventid = %s", GetSQLValueString($colname_getcalendar, "int"));<br />     $getcalendar = mysql_query($query_getcalendar);<br />     $row_getcalendar = mysql_fetch_assoc($getcalendar);<br />     <br />     $colname_getalldates =$row_getcalendar['locationid'];<br />     mysql_free_result($getcalendar);<br />}<br /><br />$query_getalldates = sprintf("SELECT a.* FROM calendar a WHERE locationid = %s and a.date_start>$mstart_date and a.date_start<$mend_date ORDER BY a.date_start ASC", GetSQLValueString($colname_getalldates, "int"));<br />$getalldates = mysql_query($query_getalldates);<br />$row_getalldates = mysql_fetch_assoc($getalldates);<br />$totalRows_getalldates = mysql_num_rows($getalldates);<br /><br />b ABOVE MY HEAD TAG:<br />//begin JSRecordset<br />$jsObject_rs_alldates = new WDG_JsRecordset("rs_alldates");<br />echo $jsObject_rs_alldates->getOutput();<br />//end JSRecordset<br /><br />b AND INSIDE MY FORM:<br /><select name="location" class="required" id="location" tabindex="1"><br />   <option value="0" <?php if (!(strcmp(0, $row_rs_alllocations['locationid']))) {echo "selected=\"selected\"";} ?>>SELECT LOCATION</option><br />   <?php<br />do {  <br />?><br />   <option value="<?php echo $row_rs_alllocations['locationid']?>"<?php if (!(strcmp($row_rs_alllocations['locationid'], $row_rs_alllocations['locationid']))) {echo "selected=\"selected\"";} ?>><?php echo $row_rs_alllocations['title']?></option><br />   <?php<br />} while ($row_rs_alllocations = mysql_fetch_assoc($rs_alllocations));<br />  $rows = mysql_num_rows($rs_alllocations);<br />  if($rows > 0) {<br />      mysql_data_seek($rs_alllocations, 0);<br />       $row_rs_alllocations = mysql_fetch_assoc($rs_alllocations);<br />  }<br />?><br />    </select></span></label></p><br />  <p><label><span><br />    <select name="date" class="required" id="date" tabindex="2" wdg:subtype="DependentDropdown" wdg:type="widget" wdg:recordset="rs_alldates" wdg:displayfield="date_start" wdg:valuefield="eventid" wdg:fkey="locationid" wdg:triggerobject="location" wdg:selected="SELECT YOUR CAMP DATE" ><br />    </select></span></label></p><br />1st I though it was the wdg:selected parameter that I could just throw make echo date( instead of just echo.   But no...that would be too easy ;)<br /><br />I figure its either in the "echo $jsObject_rs_alldates->getOutput();" above the head or hard coded into the included ADDT javascript files. Don't mind if I have to hard code as the site's lifespan is short

    Hi Amanda,
    how about preparing that within your query by using a CONCAT function and by formatting the dates right in here, like:
    SELECT CONCAT(DATE_FORMAT(date_start, '%I, %M %j')," - ",DATE_FORMAT(date_end, '%M %j')) AS date_range ?
    The wdg:displayfield expects one table column, and in this case it would be the alias column "date_range".
    Works ?
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • ADF dependent dropdown not working for me

    I used the following example
    [http://ranajitsahoo.blogspot.com/2008/05/how-to-implement-dependent-drop-down.html]
    I can not get the dependent employee list to populate.
    I tested my emplist object from the app module tester and the values were retrieved after I input my parameter for deptid
    This is what I verified:
    Departmentlist properties -- autosubmit = true, id=empdeptid
    Emplist properties -- partial triggers = empdeptid
    Page Def properties:
    Bindings
    Execute with parameters was added
    iterator is Emplistiterator bind value = bindings.EmployeesView1DepartmentId.inputValue
    Executables:
    invoke action was created binded to executewithparms and placed before the emplist
    refresh was set to render model
    Can anyone see anything that i missed?

    Frank,
    Thanks. I was able to find one of your blogs and get my drop down boxes working.
    I'm not sure I totally understand this piece of code
    OperationBinding opBindingEmployeesLovIter = (OperationBinding) bc.get("ExecuteWithParams");
    Can you tell me what it is doing??
    Thanks so much

  • Retrieving display attribute of ADF dependant dropdown

    I have implemented a dynamic dropdown in ADF where the two dropdowns are bind with the Attribute command_id.For my first dropdown the display attribute is command name.But when I am retrieving the the selected value of the 1st i am getting the command_id. please let me know how to get the commandname attribute.

    Hi
    You should loop through your ViewRowImpl object for the first list and then u can access the different attribte of the object.
    Then go through the list of attibute to get the name
    String[] arra = (o).getAttributeNames();
    for(int i =0;i<arra.length;i++){
    System.out.println(arra);
    Hope it may help you
    Regards
    Lutchumaya

  • How to populate multiple dependent dropdown in jsp

    Does anyone know how to use a database to dynamically populate a series of
    menus in a form that resides in a single JSP (no frames please)?
    For example, I have 3 drop-down menus in the same form named A, B and C.
    Based on what the user selects in menu A, I want to query the database and
    present a set of options related to A in menu B. Based on what the user
    selects in menu B, I want to query the database and present a set of options
    related to B in menu C. Finally, when A, B and C are all selected, the user
    would submit the form for processing. How can this be achieved without subjecting
    the server/network to excessive overhead?
    Please reply it to [email protected]
    Message was edited by:
    SinghAlok

    This question is asked tons of times. There is code available on this site and on google.
    Here are a couple of suggestions:
    There are two ways to do this
    1) All javascript: When the page is first made, you retrieve all possible values for the second select and store them in a javascript array of arrays. Then, on change event of first select, choose which options to put in the second option. This is most usefull when the total number of values is small.
    2) Server round trip: Use the onChange event from the first select to call a js function that submits the form to someplace that determines which values to add to the second select, then re-display the jsp with the new values...
    3) Shorter Server round trip: Like 2) but instead of submitting the form, use the XMLHttpRequest object in JavaScript to communicate the selected option to the server and get a response with what to fill in the next select box with.

  • Nested Dependent Dropdowns in Acrobat

    Firstly I am an exceptionally new user of JavaScript. My knowledge has been entirely gleaned by using examples of code which others have provided and I only started a few days ago.
    I'm trying to create a form that helps University researchers select two types of Australian research codes for a form they need to fill out and submit to my office.
    Field of Research (FoR - a total of 1239 six-digit codes); and
    Socioecomomic Objective codes (SEO - a total of 847 six-digit codes).
    The codes are broken down into 22(FoR) and 17(SEO) broad categories, and then broken down again into more specific fields, which are then broken down into very specific topics.
    i.e.
    82
    DIVISION 82 PLANT PRODUCTION AND PLANT PRIMARY PRODUCTS
    8201 Forestry
    820101
    Hardwood Plantations
    820102
    Harvesting and Transport of Forest Products
    820103
    Integration of Farm and Forestry
    820104
    Native Forests
    820105
    Softwood Plantations
    820199
    Forestry not elsewhere classified
    Basically for both FOR and SEO codes I want users to be able to:
    select a category from a first drop down box (e.g,82 Plant production and Plant primary products)
    then further narrow the options using a second drop down box (e.g, 8201 Forestry)
    finally selecting the specific code they want using a third drop down list (e.g, 820101 Hardwood Plantations)
    The following article has proved very useful in achieving the first two steps in my process.
    http://forums.adobe.com/message/3012567
    But I still cannot make the third box work. Im not sure if I should be nesting my data structure under what I already have, or providing a second set of data, nor how I am to reference the first box to the second and the second to the third (if that makes sense).
    Here is an extract of my code so far. I've only started on FOR and I hoped once I had the structure right I could duplicate it for the SEO codes. The code below works for the first two boxes, but the third box just duplicates the values for the second box. Thanks for any assistance you can provide.
    myFORCategory1Values =
        "DEFENCE",
        "PLANT PRODUCTION AND PLANT PRIMARY PRODUCTS",
        "ANIMAL PRODUCTION AND ANIMAL PRIMARY PRODUCTS",
        "MINERAL RESOURCES (EXCL. ENERGY RESOURCES)",
        "ENERGY",
        "MANUFACTURING",
        "CONSTRUCTION",
        "TRANSPORT",
        "INFORMATION AND COMMUNICATION SERVICES",
        "COMMERCIAL SERVICES AND TOURISM",
        "ECONOMIC FRAMEWORK",
        "HEALTH",
        "EDUCATION AND TRAINING",
        "LAW, POLITICS AND COMMUNITY SERVICES",
        "CULTURAL UNDERSTANDING",
        "ENVIRONMENT",
        "EXPANDING KNOWLEDGE",
    //Populate the values to box1.
    this.getField("FORCategory1").setItems(myFORCategory1Values);
    //Define what has to be shown in box2 when box1 value is selected
    var FieldData =
        "DEFENCE":
            "Air Force",
            "Army",
            "Command, Control and Communications",
            "Emerging Defence Technologies",
            "Intelligence",
            "Logistics",
            "National Security",
            "Navy",
            "Personnel",
            "Defence not elsewhere classified"
        "PLANT PRODUCTION AND PLANT PRIMARY PRODUCTS":
            "Forestry",
            "Horticultural Crops",
            "Industrial Crops",
            "Summer Grains and Oilseeds",
            "Winter Grains and Oilseeds",
            "Harvesting and Packing of Plant Products",
            "Environmentally Sustainable Plant Production",
            "Other Plant Production and Plant Primary Products"
    //Define what has to be shown in box3 when value in box 2 is selected (this is where I'm stuck, im not sure if this should even exisit)
    var SpecFieldData =
    //Defence (Defence only has two levels, not three, so its a bit different)
        "Air Force":["Air Force"],
        "Army":["Army"],
        "Command, Control and Communications":["Command, Control and Communications"],
        "Emerging Defence Technologies":["Emerging Defence Technologies"],
        "Intelligence":["Intelligence"],
        "Logistics":[ "Logistics"],
        "National Security":["National Security"],
        "Navy":["Navy"],
        "Personnel":["Personnel"],
        "Defence not elsewhere classified":["Defence not elsewhere classified"],
    //Plant
        "Forestry":
            "Hardwood Plantations",
            "Harvesting and Transport of Forest Products",
            "Integration of Farm and Forestry",
            "Native Forests",
            "Softwood Plantations",
            "Forestry not elsewhere classified"
        "Horticultural Crops":
            "Almonds",
            "Berry Fruit (excl. Kiwifruit)",
            "Citrus Fruit",
            "Hops",
            "Kiwifruit",
            "Macadamias",
            "Mushrooms and Truffles",
            "Olives",
            "Ornamentals, Natives, Flowers and Nursery Plants",
            "Pome Fruit, Pip Fruit",
            "Stone Fruit",
            "Table Grapes",
            "Tree Nuts (excl. Almonds and Macadamias)",
            "Tropical Fruit",
            "Vegetables",
            "Horticultural Crops not elsewhere classified"
    //Set the values of box2
    function SetFieldValues(cFieldValues,cSpecFieldValues)
    this.getField("FORField1").setItems(FieldData[cFieldValues])
    this.getField("FORSpecField1").setItems(SpecFieldData[cSpecFieldValues])

    Hi ANewGirl,
    Here is an article on coding popup menus that shows code both two and three levels of items.  Hopefully that will be helpful to complete your task.
    http://www.windjack.com/resources/howto/WJHowTo_JS_PopupMenus.shtml
    Hope this helps,
    Dimitri
    WindJack Solutions
    www.pdfscripting.com
    www.windjack.com

  • ADDT Dependant Dropdowns 3 deep...

    Hello,
    I'm trying to get 3 drop down list's to work together, basically i have 1. Vehicle Type list 2. Make List 3. Model List. My database has a join table (type_make_model) that basically joins every modelID to a makeID to TypeID.
    So the flow would be Select Vehicle Type -> populates Make List -> Select a Make -> populates the Model list
    Do i need to create 2 separte DB queries? 1 that selects the Makes based on the vehicle type selected and 1 that selects the models based on the Make and Vehicle Type selected???
    I can get the Makes List to populate no problem when a Vehicle Type is selected, the problem comes in with the 3rd drop downlist.
    Juat wondering is there any example showing how to accomplish this type of scenerio?
    Thanks,
    Cory

    Günter
    Well, here was my solution... basically what i ended up doing was have the first DDL (Vehicle Type) post back to the page with a Vehicle_TypeID so that i could filter the other 2 recordsets accordingly.
    //1st RS populates Vehicle Type List//
    $query_rsGetType = "SELECT * FROM vehicle_type ORDER BY vehicle_typeID ASC";
    //2nd populates Vehicle Make list filtered by $_POST[vehicle_typeID]//
    $vTypeID = $_POST['vehicle_typeID'];
    $query_rsGetMakeModel = "SELECT ms.makeID, ms.make, tmm.vehicle_typeID FROM type_make_model AS tmm INNER JOIN makes AS ms ON tmm.makeID = ms.makeID WHERE vehicle_typeID = '$vTypeID' GROUP BY ms.makeID ORDER BY ms.make";]
    //3rd populates Model List similair//
    $query_rsGetMakeModel2 = "SELECT md.model, md.modelID, tmm.makeID FROM type_make_model AS tmm INNER JOIN model AS md ON tmm.modelID = md.modelID WHERE vehicle_typeID = '$vTypeID'";
    // the 3 select lists you'll notice the first one uses a simple javascript to post the form back to the page//
    <script type="text/javascript" language="javascript">
    function sender(form){
    form.submit();
    </script>
    <select name="vehicle_typeID" id="vehicle_typeID" onChange="sender(searchDB)">
    <option value = "">Vehicle Type</option>
    <?php do { ?>
    <option value="<?php echo $row_rsGetType['vehicle_typeID']?>" <?php if (!(strcmp($row_rsGetType['vehicle_typeID'], $_POST['vehicle_typeID']))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsGetType['vehicle_type']?></option><?php
    } while ($row_rsGetType = mysql_fetch_assoc($rsGetType));
    $rows = mysql_num_rows($rsGetType);
    if($rows > 0) {
    mysql_data_seek($rsGetType, 0);
    $row_rsGetType = mysql_fetch_assoc($rsGetType);
    ?>
    </select>
    <select name="makeID" id="makeID">
    <option value = "">Make</option>
    <?php do { ?>
    <option value="<?php echo $row_rsGetMakeModel['makeID']?>"><?php echo $row_rsGetMakeModel['make']?></option><?php
    } while ($row_rsGetMakeModel = mysql_fetch_assoc($rsGetMakeModel));
    $rows = mysql_num_rows($rsGetMakeModel);
    if($rows > 0) {
    mysql_data_seek($rsGetMakeModel, 0);
    $row_rsGetMakeModel = mysql_fetch_assoc($rsGetMakeModel);
    ?>
    </select>
    <select name="modelID" id="modelID" wdg:subtype="DependentDropdown" wdg:type="widget" wdg:recordset="rsGetMakeModel2" wdg:displayfield="model" wdg:valuefield="modelID" wdg:fkey="makeID" wdg:triggerobject="makeID" wdg:selected="Model">
    <option value = "">ALL</option>
    <option>-----</option>
    </select>
    I'm sure there is a more elegant way to do this without needing to post to the page the Vehicle_TypeID... but this does what need well enough
    Thanks for your time.
    Cory

Maybe you are looking for

  • Virtual Catalogs in 10g database

    I have heard that you need an 11g catalog to use virtual catalogs. I have also heard that it's possible to run an 11g catalog from a 10g database. Is there a way to create the 11g catalog on a 10g database directly, or do I need to make it in an 11g

  • Strange behaviour with 'Wait' activities using BPEL 10.1.3

    Hi All, We have just migrated from BPEL 10.1.2 to BPEL 10.1.3 and now we have a weird problem with the Wait activity. We have a process with several wait activities; end the problem is that the last wait activity is hanging (it should wait for 5 seco

  • Extension paramter in BAPI_PO*

    Hi All, I have added some custom fields in PO transaction. Now when i am trying to update the custom fields for PO using BAPI for create or change BAPI_PO_CHANGE, There are paramteres EXTENSIONIN and EXTENSIONOUT. Could you let me know how and what t

  • How can I log keealive activities?

    Hi, I need to monitor a keepalive which use a the ap-kal-pinglist script which has EXIT_MSG "Ping Failure". How can I have this message printed out in a log (either traplog or sys.log)? thanks in advance and br christian piffard

  • MSI K8N Neo2 Platinum slows down

    Hi, I have a little problem with my new K8N Neo2 Platinum. I installed Windows XP and the newest nForce drivers but if I copy files over LAN (tested both LAN-Ports) or install big applications my music played with winamp slows down. It's played with