Select list dependent on textbox

Hi,
I've a requirement to put together a cascading select list. The only exception is that the first select list is a textbox instead of a select list. How to create a select list that is dependent on the textbox? Is there a way to do this in APEX without resorting to AJAX? Is there an example out there?
Thanks

Hi
Try this courtesy of Carl Backstrom...
Create an hidden item called TEMPORARY_ITEM.
Try this for the js:
  function get_AJAX_SELECT_XML(pThis,pSelect){  
     var l_Return = null; 
     var l_Select = $x(pSelect); 
     var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=ap_str_typ_lov',0);
get.add('TEMPORARY_ITEM',pThis.value);
     gReturn = get.get('XML'); 
     if(gReturn && l_Select){ 
         var l_Count = gReturn.getElementsByTagName("option").length; 
         l_Select.length = 0; 
         for(var i=0;i<l_Count;i++){ 
             var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
get = null;
function appendToSelect(pSelect, pValue, pContent) { 
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){/* why is ie different ask bill */ 
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{ 
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
And then amend your On Demand process to this:DECLARE
l_counter NUMBER;
l_o_name VARCHAR2(2000);
BEGIN
OWA_UTIL.mime_header('text/xml', FALSE);
HTP.p('Cache-Control: no-cache');
HTP.p('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn('<select>');
FOR rec IN (select str_typ_desc from vw_dime where street_name like upper(:P7_STREET_NAME) || '%'
ORDER BY 1)
LOOP
HTP.prn('<option value="' || rec.str_typ_desc || '">' || rec.str_typ_desc || '</option>');
END LOOP;
HTP.prn('</select>');
END;
Then change your javascript call to this...onKeyUp="get_AJAX_SELECT_XML(this, 'P7_STREET_NAME')"
Let me know How you get on.
Cheers
Ben                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Dynamic select list dependency

    Hello,
    I want to have two select lists populated dynamically by a query, where contents of one list depend on the choice made in the other list.
    For example I have tables CATEGORY (ID, NAME) and SUBCATEGORY (ID, NAME, CAT_ID). I created one List of Values that Category select list is based on: "select name d, id r from category order by 1". This alone works fine.
    Now for Subcategory select list I created another List of Values: "select name d, id r from subcategory where cat_id = :CAT_ID order by 1". The where clause is just my guess and it doesn't work (select list is empty). How do I pass the value selected in my first select list as a parameter for the second one?
    Nikolai

    can you take a look to my response to the second question at...
    Pop List and Developer Toolbar
    ...and let us know if you have any questions?
    thanks,
    raj

  • How to get the text boxes and select lists dynamically?

    Hi,
    I have a requirement such that I need to create the text boxes and select lists depending on the user input at the run time. It means that if the user requires four text boxes/select lists then I need to have 4 such thing. If the user need 6 then I need to have 6.
    The design may be such that initially only one text box/select list will be available when the page launches. Then as ad when the user asks for more those will be available to the user accordingly.
    regards,
    Dipankar.

    You can use Ajax to call textboxes and select list based on what user enters.
    Otherwise make those items conditional and based on what user enters you can display textbox or select list.
    You can call Single Textbox and Select List using Ajax for any number of conditions.
    Regards
    Chandra

  • Multiple select list not retaining the value for the first time

    Hi,
    I have a 3 select list depends on each other. select_list1 -- > select_list2 --> multiselect3. I have use denes example to create them.
    For the first time when I select values from 1,2,3 and runs a report based on it, it works fine but *does not retain the selected value in multiselect3.
    for the second time submit the process, it retails value in multiselect3. Please tell me if you came across this issue before
    Here is the code.
    function get_select_list_xml_VL(pThis,pSelect,pSelect1,pSelect2){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var l_Select1 = html_GetElement(pSelect1);
    var l_Select2 = html_GetElement(pSelect2);
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Cascading_Select_List_VL',0);
    get.add('F660_CASCADING_TEST',l_Select1.value + '_' + pThis.value + '_' + l_Select2.value);
    alert(l_Select1.value + '_' + pThis.value + '_' + l_Select2.value);
    // alert(document.getElementById("F660_CASCADING_TEST").value);
    gReturn = get.get('XML');
    if(gReturn && l_Select ){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);

    Please ask any question if you dont understand about the problem.
    Thanks

  • Similar to cascading select list...please give me some suggestions..

    Hi everyone,
    I had worked on cascading select lists where if i select a value in PARENT SELECT LIST,depend on the value of PARENT SELECT LIST the CHILD SELECT LIST will populate...
    i am trying to implement something similar..but i would like to have the CHILD as "CHECKBOX'S" instead of "SELECT LIST"
    ex:
    ==
    PARENT SELECT LIST (if i select a value depend on the value it should display "CHECKBOX's")
    CHILD CHECK BOX's
    Is it possible to do this with "AJAX" (I dont want to submit the page after i select a value in select list)
    Please help me to solve this..
    Thanks
    phani

    Hi phani,
    have you tried using Javascript to do this.
    Regards
    Rana

  • Need Help on Select list using AJAX

    Hi ,
    I have a 3 select list in the application,
    2nd select list depends on 1st, 3rd depends on 1st and 2nd.
    I have created application items and process and java script, but for some reason i can not pass 2 application items values to the process.
    Please any idea or example. I have followed dennis site for creating cascade select demo application.
    Thanks
    KP

    Did you have a look at this thread:
    Problem with Dynamic Select Lists
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Chaining select lists

    Hi,
    I try to create two dynamic  depending  selectlists whereas the second select list depends on the choose of the first list.
    Both lists are populated by a database query.
    Here is a simple example:
    First list: Usergroups
    <cfselect name="usergroups" >
    <cflloop query="select_usergroup">
    <option value="id">#usergroup_name#
    </cfselect>
    Second list: Users
    <cfselect name="users" >
    <cflloop query="select_user">
    <option value="id">#user_name#
    </cfselect>
    When selecting a usergroup in  the first list, the query of the second list runs in dependence of the value of first list.
    Is there a possibility to solve this problem without using Url-parameter? I have a big formular with many form-fields and I assume that this method is not very fast.
    I also try to use data binding, but then I have a problem preselecting values in the lists.
    Environment: Oracle 11g, ColdFusion 9 Standard
    Any idea?
    regards Claudia

    biene22 wrote:
    I don't want to have simple cfinput fields, I want selectboxes because it must be possible to change the
    values of state and city. And therefore I need this chaining listboxes.
    OK. I have a worked-out example that uses the database cfdocexamples. This database ships with ColdFusion, and comes installed as a datasource. It means you can run the example directly, without having to install anything.
    The example illustrates the chaining you talk about. It supposes that you know the location, and that it is passed by URL. You wish that the page give you the departments in that location. When you click on the department, you want to get the list of employees in the department.
    My database engine is MySQL. If yours is different, then you may have to slightly adapt some of my SQL statements. Place the 2 files in the same directory.
    selectEmployee.cfm
    <!--- The location is expected to come in as a URL parameter. The bind requires it when the page loads, so a default location, San Francisco, is set. --->
    <cfparam name="url.location" default="San Francisco">
    <cfform name="empForm">
    <cfinput name="loc" type="hidden" value="#url.location#" >
    Department: <cfselect  name="dept" bind="cfc:Employee.getDepartments({loc})" bindonload="true"></cfselect>
    <br>
    Employee: <cfselect  name="emp" bind="cfc:Employee.getEmployees({dept})"></cfselect>
    <br><br>
    <cfinput name="sbmt" type="submit" value="Submit">
    </cfform>
    <div>
        Form:
        <cfdump var="#form#">
    </div>
    Employee.cfc
    <cfcomponent>
    <cffunction name="getDepartments" access="remote" output="false" returntype="array">
    <cfargument name="location" type="string" required="true">
    <cfset var departments = queryNew("","")>
    <cfset var arr = arrayNew(2)>
    <cfquery name = "departments" dataSource = "cfdocexamples">
        SELECT department
        FROM employees
        WHERE location = <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.location#">
    </cfquery>
    <cfset arr[1][1]="">
    <cfset arr[1][2]="Select department">
    <cfloop query="departments">
    <cfset arr[currentrow+1][1]=department><!---option values in the select list--->
    <cfset arr[currentrow+1][2]=department><!---displayed values in the select list --->
    </cfloop>
    <!--- Alternative, if you require no "Select department" option --->
    <!--- <cfloop query="departments">
    <cfset arr[currentrow][1]=department><!---option values in the select list--->
    <cfset arr[currentrow][2]=department><!---displayed values in the select list --->
    </cfloop> --->
    <cfreturn arr>
    </cffunction>
    <cffunction name="getEmployees" access="remote" output="false" returntype="any">
    <cfargument name="dept" type="string" required="true">
    <cfset var employees = queryNew("","")>
    <cfset var arr = arrayNew(2)>
    <cfquery name = "employees" dataSource = "cfdocexamples">
        SELECT Emp_ID,  FirstName || ' ' || LastName as Name
        FROM Employees
        WHERE department = <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.dept#">
    </cfquery>
    <cfset arr[1][1]="">
    <cfset arr[1][2]="Select employee">
    <cfloop query="employees">
    <cfset arr[currentrow+1][1]=emp_id><!---option values in the select list--->
    <cfset arr[currentrow+1][2]=name><!---displayed values in the select list --->
    </cfloop>
    <!--- Alternative, if you require no "Select employee" option --->
    <!--- <cfloop query="employees">
    <cfset arr[currentrow][1]=emp_id><!---option values in the select list--->
    <cfset arr[currentrow][2]=name><!---displayed values in the select list --->
    </cfloop> --->
    <cfreturn arr>
    </cffunction>
    </cfcomponent>

  • AJAX dependent Select lists

    Can anyone please help me figure out where am going wrong?
    I have 2 regions on page 1. Region 1 is supposed to have 2 drop down lists (cascading i.e values in second drop down Drop List HJ are dependent on value selected in first lov Ajax Select HJ). Region 2 will be a report.
    I am trying to create AJAX cascading lovs based on eg. provided on carl's application so that Region 2 is not refreshed each time I select a value from the drop down's
    [http://apex.oracle.com/pls/apex/f?p=36391:37:1510004986327720::NO:RP::]
    I have downloaded the application and tried to do the exact same steps, but my child lov is not updating its values after I select a value from in Ajax Select HJ.
    My application is available at http://apex.oracle.com/pls/apex/f?p=33829:1:2010637670427735:::::
    Appreciate any help on this
    Thank you
    Deepu

    Thank you Denes !! The example really helped me. Now I am stuck at the next level. I am new to apex and learning and building dashboard for my organization. So, please bear with me.
    I have a page that is divided into 4 regions. Each region displays a chart that is generated dynamically. When I say dynamic, each region has 2 drop down lists.
    First pull down has Org and Year as values, if they wish to view chart by Org or Year. If they choose Org, second drop down defaults to Org. If they choose Year, second drop down displays Year's as 2010, 2009,2008 so on. Depending on which year they choose they should be able to view that Year's chart by month in that region.
    Initially I had used select lists with submit for drop down's but that was refreshing the whole page. But now after using your example with AJAX I was able to accomplish the cascading Lov's stuff. Now, after user selects a value in second drop down, is there a way that I can display the chart and refresh only that region each time user selects a value from the drop down.
    I want to avoid refreshing the page each time, I need each region to refresh based on user selection in drop down's. Is this possible in apex? Is there any example that you could direct me to.
    Thank you so much for all your inputs. Appreciate it very much
    Deepu

  • Automatically update text field depending on the in select list value

    I have got 2 tables. Table A (Employee Personal Detail), Table B (Employee Academic detail). Employee no is common field between two tables).
    I have created interactive report with form on table b using in-built templates. I have added text box on form to display employee name which is stored in table A. I want to automatically display employee name depending upon value in employee no field on form. I know I can write query to get value in employee name field. It gives me error when employee no is blank. How to handle error?

    Sagar,
    For the employee name value to change according to the emp_no, your page needs to get submitted. can you use a select list with submit for emp_no? And then use the PL/SQL mentioned above to run on page submit?
    I'm not sure but I guess you can also achieve this in Ajax. May be someone expert in that could help.

  • Creating dependent select list menus with javascript

    Hi Everybody,
    I m creating parent and child select list menu. Value of Child menu would be dependent on the value selected in the parent menu. I have tried to implement a code from adobe labs  (http://kb2.adobe.com/cps/149/tn_14924.html) but many strange javascript errors are coming up.
    My code is given below:
    <?php require_once('../Connections/connection.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    mysql_select_db($database_connection, $connection);
    $query_sector = "SELECT * FROM sector WHERE media_code = 100 ORDER BY sector_desc ASC";
    $sector = mysql_query($query_sector, $connection) or die(mysql_error());
    $row_sector = mysql_fetch_assoc($sector);
    $totalRows_sector = mysql_num_rows($sector);
    mysql_select_db($database_connection, $connection);
    $query_rsList2 = "SELECT subsector_code, subsector_desc, sector_code FROM sub_sector ORDER BY sector_code ASC";
    $rsList2 = mysql_query($query_rsList2, $connection) or die(mysql_error());
    $row_rsList2 = mysql_fetch_assoc($rsList2);
    $totalRows_rsList2 = mysql_num_rows($rsList2);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <!-- Dynamic Dependent List box Code for *** JavaScript *** Server Model //-->
    <script >
    <!--
    var arrDynaList = new Array();
    var arrDL1 = new Array();
    arrDL1[1] = "selList1";              
    // Name of parent list box
    arrDL1[2] = "form1";                 
    // Name of form containing parent list box
    arrDL1[3] = "selList2";              
    // Name of child list box
    arrDL1[4] = "form2";                 
    // Name of form containing child list box
    arrDL1[5] = arrDynaList;
    <%
    var txtDynaListRelation, txtDynaListLabel, txtDynaListValue, oDynaListRS; txtDynaListRelation = "sector_code";
    // Name of recordset field relating to parent
    txtDynaListLabel = "subsector_desc";
    // Name of recordset field for child Item Label
    txtDynaListValue = "subsector_code";
    // Name of recordset field for child Value
    oDynaListRS = rsList2;
    // Name of child list box recordset
    var varDynaList = -1;
    var varMaxWidth = "1";
    var varCheckGroup = oDynaListRS.Fields.Item(txtDynaListRelation).Value; 
    var varCheckLength = 0;
    var varMaxLength = 0;
    while (!oDynaListRS.EOF){
    if (varCheckGroup != oDynaListRS.Fields.Item(txtDynaListRelation).Value) {
        varMaxLength = Math.max(varCheckLength, varMaxLength) varCheckLength = 0; }
        %>
        arrDynaList[<%=(varDynaList+1)%>] = "<%=(oDynaListRS.Fields.Item(txtDynaListRelation).Value)%>";
        arrDynaList[<%=(varDynaList+2)%>] = "<%=(oDynaListRS.Fields.Item(txtDynaListLabel).Value)%>";
        arrDynaList[<%=(varDynaList+3)%>] = "<%=(oDynaListRS.Fields.Item(txtDynaListValue).Value)%>";
        <%
        if (oDynaListRS.Fields.Item(txtDynaListLabel).Value.length > varMaxWidth.length) { 
        varMaxWidth = oDynaListRS.Fields.Item(txtDynaListLabel).Value; }
        varCheckLength = varCheckLength + 1; varDynaList = varDynaList + 3;
        oDynaListRS.MoveNext(); }
        varMaxLength = Math.max(varCheckLength, varMaxLength);
        %>
    //--></script>
    <!-- End of object/array definitions, beginning of generic functions -->
    <script >
    <!--
    function setDynaList(arrDL){
    var oList1 = document.forms[arrDL[2]].elements[arrDL[1]];
    var oList2 = document.forms[arrDL[4]].elements[arrDL[3]];
    var arrList = arrDL[5];
    clearDynaList(oList2);
    if (oList1.selectedIndex == -1){
    oList1.selectedIndex = 0; }
    populateDynaList(oList2, oList1[oList1.selectedIndex].value, arrList);
    return true; }
    function clearDynaList(oList){
    for (var i = oList.options.length; i >= 0; i--){
    oList.options[i] = null; }
    oList.selectedIndex = -1; }
    function populateDynaList(oList, nIndex, aArray){
    for (var i = 0; i < aArray.length; i= i + 3){
    if (aArray[i] == nIndex){
    oList.options[oList.options.length] = new Option(aArray[i + 1], aArray[i + 2]);
    if (oList.options.length == 0){
    oList.options[oList.options.length] = new Option("[none available]",0); }
    oList.selectedIndex = 0; }
    function MM_callJS(jsStr) { //v2.0
      return eval(jsStr)
    //-->
    </script>
    </head>
    <body onload="MM_callJS('setDynaList(arrDL1)')">
    <form action="#" method="get" name="form1">
    <select name="selList1" onchange="MM_callJS('setDynaList(arrDL1)')">
      <?php
    do { 
    ?>
      <option value="<?php echo $row_sector['sector_code']?>"><?php echo $row_sector['sector_desc']?></option>
      <?php
    } while ($row_sector = mysql_fetch_assoc($sector));
      $rows = mysql_num_rows($sector);
      if($rows > 0) {
          mysql_data_seek($sector, 0);
          $row_sector = mysql_fetch_assoc($sector);
    ?>
    </select>
    </form>
    <form action="#" method="get" name="form2">
    <select name="selList2"></select>
    </form>
    </body>
    </html>
    <?php
    mysql_free_result($sector);
    mysql_free_result($rsList2);
    ?>
    The javascripts errors that I m getting are :
    Syntax error  test.php, line 20 character 1
      'arrDL1' is undefined  test.php, line 74 character 3
      'arrDL1' is undefined  eval code, line 1 character 1
    Note: I have bolded the lines where error is coming up.
    If more info is needed please tell.
    Please Help,
    Thanks in Advance

    You'd probably have to put a copy of the app on apex.oracle.com for a complete diagnosis, but you could maybe just check that the Source Used attribute for teh select list is set to 'Only when current value in session state is null' and not the 'Always' option.
    Regards,
    John.

  • Loading multiple dependent select lists

    What is the best way to load select lists that are dependent on the previous one?
    ex.
    Select School
    based on school you select the subjects
    select subject
    based on subject you select the courses,
    etc
    I'm trying to stay away from as much javascript as possible.
    thanks for the help!
    Michael

    You can use javascript, or resubmit the page and laod the dependant select list based on what was selected.

  • Embarrassing questions.. :/  Dependent Select Lists

    One more embarrassing question to feature my narrow knowledge.
    I want to create dependent select lists. Have tried following the procedure as in help:
    <p>You can have one LOV drive another LOV by: </p>
    <ul>
    <li type="disc">
    <p>Creating a basic form. </p>
    </li>
    <li type="disc">
    <p>Defining two lists of values. Note that the driving LOV must submit the page after a value is chosen. </p>
    </li>
    <li type="disc">
    <p>Defining a branch that branches back to the current page. </p>
    </li>
    </ul>
    <p>Consider the following example. The first LOV enables the user to pick a state. </p>
    <pre xml:space="preserve">SELECT state_name d, state_id v FROM states </pre>
    <p>The second LOV selects the country name and country ID based on the state selected in the first LOV. </p>
    <pre xml:space="preserve">SELECT county_name d, county_id v FROM counties WHERE state_id = :Px_STATE_ID </pre>
    I try to follow the procedure and I get nothing in list two.
    I am trying to make it this way that if a country selected in 1st list then only regions to that country get listed in 2nd select list.
    Can someone "spell" this out for me? With an example? I had previously asked similar question here and never figured out solution out of it, so I am embarrasingly asking once more...
    Hrefna the persistent

    Hi Earl,
    Can you please help me out? Hope so.
    I then created a page with a text field called
    P1_EMPNO.You're not using select list items on the page? That's what this thread is about - although the specifics can be adapted to other page item types.
    I added onblur="get_AJAX_SELECT_XML(this,'P1_ENAME')"
    in the Form Element Attributes.
    My question is, how do I create P1_ENAME? Is it a
    LOV, text, etc.Don't know. What are you trying to accomplish? I thought you wanted one select list item to help you narrow down the number of items in a second select list - but it sounds like you've got something else going on. Please explain exactly what your UI requirements are.
    Earl

  • How to create dependent Select Lists?

    Hi,
    Found in the documentation that to create dependent select list we have to do these 3 things:
    1. In the parent select list, choose the option "select list with submit".
    2. Defining a branch that branches back to the current page.
    3. In the child select list sql, use the value of the parent (eg. :P6_PARENT_SELECT_VALUE).
    When I change the value of parent select list the page is getting submitted and its going to the parent page. I've a branch that goes to the parent page but how to create a branch that comes back to the same page and then use it in parent select list?
    Thanks,
    Hozy

    Hi Hozy,
    1. Make the branch conditional...
    2. Create a new branch while will run when you make a selection in parent select list.
    Also check this site to create dependent select list without sumbitting the page....
    http://www.dba-oracle.com/t_html_db_apex_ajax_application_express.htm
    Regards,
    Shijesh

  • Dependent Select Lists

    i am not able to do this
    I have two fields
    one item is select list with value as Month/Year
    another item is not edit-able one ,
    but the value should be populated based on the selection in the previos item
    if item1 value is ='Month'
    populate item2 as Yes
    else item1 value is ='Quarter'
    populate item2 as No
    iam very new to this,
    please help me step by step procedure,
    thanks

    Hello,
    There is a couple different ways to do this here is a link to one way
    How to make LOV's reference other LOV's on the form page
    and here is a link to another way
    http://forums.oracle.com/forums/thread.jspa?threadID=260481
    If neither of these work for you just do a search for select list in the forum and you'll get quite a few hits.
    Carl

  • How to do dependent select list based on parent select list

    Hello... I have the following bit of code...
    *parent select
    htmldb_item.select_list_from_query(1,null,'select program_desc_eng, program_id from myfps_programs')
    * child select using parent value
    htmldb_item.select_list_from_query(2,null,'select sub_pgm_desc_eng, sub_program_id from myfps_sub_programs where program_id = <VALUE FROM ABOVE?>')
    I know this is easily done using the select list form items and such but I need to use the htmldb_item function. On screen when a user selects value from the parent select list, I want the child select list to use the value of the parent as a parameter into its own select list. How can I reference the parent? (ie can I use htmldb_application.g_f01(1) or something of this nature?) I realize I may need a bit of javascript to have it work correctly but I'm just wondering if its possible?

    This is not a trivial task.
    See http://forums.oracle.com/forums/thread.jspa?messageID=1241356

Maybe you are looking for

  • IPhone 4 stuck on connect to iTunes and won't budge!

    Please help! I was trying to update my mother's iPhone 4 to iOS 5 and in the midst of the update I get an error that says cannot restore and now the phone is stuck on the connect to iTunes screen. I've tried holding down the home and power keys and w

  • Can I "catch" a click on a sortable column header of a report?

    Hi, I have a report. Most columns are made sortable: users can click on them to sort. I notice that when clicked only page-rendering executes (i.e. not page processing). Here is the question. I need to call some custom PL/SQL when the user clicks on

  • Create activity and survey via 'CRM_ORDER_MAINTAIN'

    Dears, i am in CRM 6.0 now. i have decided to use FM 'CRM_ORDER_MAINTAIN' to create and change activity, also there is a import field named 'IT_SURVEY'. Now i want to batch upload the answers of the survey in a txt file to CRM and then create the sur

  • Don't know how to delete my photos in photostream from all devices

    Hi! I've just discovered that my brother and I share the same iCloud account, therefor he will se all my photos on photostream. I inactivated it on my phone quickly, but now I realized that the pictures just are deleted from my device. I really reall

  • How to upgrade to latest Pages 4.0.3?

    My existing Pages version is 4.0.2. Recently I got a notice that 4.0.3 is available for update when I open Pages. Then I click the button to allow update download and installation. However, after software update and rebooting my MacBookPro, my Pages