Dynamic Parent/Child Select List - Parent may have only a single entry

Hello,
I have a parent/child select list implemented using APEX only, ie no AJAX.
The child list always has multiple entries, but the parent may only have a single entry, depending on who is running the application. When the parent has just one entry it can't submit, so the child list remains empty. Also when the parent has multiple entries, the user must select another entry from the parent list to cascade the child list.
I have put a button to fire the branching to same page submit, but this is a little clunky. Is there a way of cascading the child list when the page opens? Preferably without ajax, but if has to be then ok
I've looked for an answer to this but all threads I have followed seem to assume parent to have multiple entries, and that child list requires parent selection, but this not so in my application.
Thanks, Jock

Anyone?
Even an acknowledgment that this should be obvious to me, or that it is not currently possible would be of assistance.
Thanks,
Jock

Similar Messages

  • Select List (Parent/Child) LOV

    I have the Easy Oracle HTML-DB book, they give an example of a
    Parent Child Select List using a query.
    Does anyone know how to apply the Parent/Child relationship with
    a List of Value generated from a table.
    Example
    Parent Child
    Car Pontiac
    Car Buick
    Car Cadillac
    Car Nissan
    Truck Tahoe
    Truck Silverado
    Truck F150
    Truck Titan
    The parent(s) in the above example are Car/Truck, the children are in the adjacent column.
    Objective: When the parent "Car" is chosen, only the "Pontiac/Buick/Cadillac/Nissan" will be available, once the child is selected,
    wish to submit to a empty table that can grow dynamically.
    OS: Windows: XP
    Oracle ver.: 10g
    Apex ver.: Release 2

    Hi,
    are you just having one table storing all the values?
    1) Create a "Select list with Submit"
    2) Lov query would be something like
    SELECT DISTINCT
           CAR_TYPE AS D
         , CAR_TYPE AS R
      FROM WHATEVER_TABLEThe distinct is only because you have mixed your parent and child values in one table instead of having two separate tables with a FK from the child to the parent.
    3) Create another "Select List"
    4) Lov query would be something like
    SELECT CAR AS D
         , CAR AS R
      FROM WHATEVER_TABLE
    WHERE CAR_TYPE = :P2_CAR_TYPE-> in the where clause you restricting the second lov with the value the user has selected in the first select list.
    The first "Select List with Submit" will trigger a full page refresh when you select a car type. If you want to avoid that you can use the AJAX based "Cascading Lov" feature of my ApexLib Framework (see http://apex.oracle.com/pls/otn/f?p=33231:4 ) or search on the forum for "cascading lov ajax" for other similar solutions.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • I have only a single texbox.i want to display names , date,priortiy in the same textbox when i typed @ names should be display names like when u type comment in facebook for particular person it will display name. when i type ! date should be display and

    i have only a single texbox.i want to display<big style="margin:0px;padding:0px;border:0px;color:#111111;font-family:'Segoe
    UI', Arial, sans-serif;line-height:normal;"> names , date,priortiy </big>in the same textbox <big
    style="margin:0px;padding:0px;border:0px;color:#111111;font-family:'Segoe UI', Arial, sans-serif;line-height:normal;">when i typed @ names should be display names</big> like
    when u type comment in facebook for particular person it will display name. when i type ! date should be display and when i type * priority should be display in same textbox like
    example <big style="margin:0px;padding:0px;border:0px;color:#111111;font-family:'Segoe UI', Arial, sans-serif;line-height:normal;">@
    names !today date or tomorrow date etc * priority high,low ,medium etc</big>

    This is my first time posting here, so I'm sorry, I re-read my post several times and honestly did think I provided enough information, but you're right, it wasn't the right kind. So please (continue to) bear with me, I'm really not trying to be ignorant. I honestly assumed the issue was something I was doing wrong in Bridge, nothing to do with my computer specs.
    I am using a late-2008 Macbook, running Yosemite 10.1.1 (screenshot below)
    On the Mac I am using Bridge CC 6.1.1.115 and Photoshop CC 2014 (2014.2.1 release, 20141014.r.257 x64)
    Here is a link to the System Info from Photoshop on the Mac
    Here is a screenshot of my System Overview on the Mac
    Here is a screenshot of my Photoshop performance preferences on the Mac
    I am also using a Dell desktop with Windows 8, running Photoshop CC 2014 (2014.2.1 release, 20141014.r.257 x32) and Bridge CC 6.1.0.116 x32 (on a separate CC account with separate files that I don't try to sync or anything)
    Here is a link to the System Info from Photoshop on the Windows computer.
    Here is a screenshot of the system overview on the Windows
    Here is a screenshot of my Photoshop Performance preferences on the Windows computer
    I work with jpg, psd, ai, svg, and pdf files. Most of my stacks are three different file types of the same image, usually jpg, psd/ai, and pdf.
    I have not recieved any error messages
    I am not having issues opening raw files, I am not having printing issues, I have listed the troubleshooting steps I have taken.
    Is there any information you need that I missed? I'm trying not to be a dingus, but I'll have to ask you to be patient with me in the meantime. I haven't ever looked up half the hardware/software details that were suggested and I don't know how to off the top of my head, so I provided what I already knew how to

  • Tree UI with Check box for parent/child selection.

    Hello experts,
    I need to create a tree UI to display a hierarchy of nodes, but as a business requirment it is needed to have a checkbox in each node/element of the tree, so if I select a parent node (I mean checking it), all it's child nodes must also be checked and their corresponding elements.
    Also if I select a child element, all the parent nodes must be checked all the way up to the root node.
    If the user selects a child node, all subsecuent nodes/elements must be checked, and the parents of the child node selected also.
    Basically like the functionality when installing software on a PC where the user selects components to install (like office), this is just the concept behind what we mean to accomplish.
    The nodes are NOT recursive.
    How can I accomplish that?
    Thanks in advance.
    JV

    I haven't worked with this myself but adding functionality to APEX features is generally going to require doing some extra coding via jQuery, JavaScript or AJAX. Try contacting Hilary Farrell of Oracle, her handle is, hfarrell. She is talented in the charts, maps and trees arena.

  • Dynamic Actions in Select List of Tabular Form

    I have a tabular form in my application and one of the column A is Select List with lot of values. My requirement is, there is another column B in the same tabular column like Display text, which should appear when a user select A, B or C in the select list column A. Is it possible, how can I implement it?
    I tried it through Dynamic Actions ->DOM Objects, but I am not sure what is the name of the Select List column value that needs to be specified, it is jst f06 or f06_???. Can someone tell me the exact steps that needs to be followed.

    My mistake, Javascript (and DOM attributes/methods) are case-sensitive. The attribute in question is readOnly, not readonly
    I fixed it on my example page at http://htmldb.oracle.com/pls/otn/f?p=24317:255
    <script type="text/javascript">
    function ro_Item(nd,a){
        var lEl = html_GetElement(nd);
        if (lEl && lEl != false){
           if(a){
          lEl.readOnly = true;
          lEl.style.background = '#cccccc';
        }else{
          lEl.readOnly = false;
          lEl.style.background = '#ffffff';
         return true;
    function foo(pThis)
    var lTD=pThis.parentNode;
    var nextinput=lTD.nextSibling.getElementsByTagName('input')[0];
    var nextnextinput=lTD.nextSibling.nextSibling.getElementsByTagName('input')[0];
    if (pThis.value=="CLERK") {
      ro_Item(nextinput,true);
      ro_Item(nextnextinput,true);
    else {
      ro_Item(nextinput,false);
      ro_Item(nextnextinput,false);
    </script>

  • Dynamically changing the select list in an LOV based on the login user

    We have a field in a form which is a combobox.The form is to be linked to different profiles of users.Based on the logged in user we would like to restrict the select list in the LOV.ie user1 should see a LOV which is different from that seen by user2.Is this possible.If so how can this be done?Kindly reply.
    Thanks & Regds,
    Jayanthi

    Thanks for ur reply.But my problem is that i have a table having details of some products which includes spareparts also(Name,id,price etc).In my form i have the combobox field which should have a list of these products which the user can select.Now depending on the user's profile he should see only his related products(One profile of users should view only the products but not the spares while the other should view only spares.)The details of both the products and spares are in the same table.we have a criteria to differentiate between the products and the spares.The LOV should display at run time, either products or spares depending on his profile as he logs in. Hope u understood my problem.
    Regds,
    Jayanthi
    Hello Jayanthi,
    I had a similar situation in my last project.
    While you can solve this by modifying your query, this will always come around as may be later some other criteria to restrict based on User/His Role/Something else. Hence I fixed it at design level itself. Though I can't give my situation I can tell you the solution applying my logic.
    Altering your Product Table and adding one more database Column say Product_Category and updating the table with Product Category =1 for Products and 2 for Spares. You can extend this further for other types.
    Create a new Table say User_Groups that will have
    Group_id
    Group_Name
    User_Id columns and will contain all the User ids inserted groupwise.
    Create one last Table Group_Product_Map
    That will have
    Group_id
    Category_id
    This will store each Group_Id followed by Category_id of Products to which these group members will have access to.
    Now write a database function getCategory( p_User) which will query User_Groups table to get Group_Id
    and further query Group_Product_Map Table based on group_id to get Category_Id.
    This function will return category_id.
    Huh!
    So your LOV will have a query as select *(or whatever) from Product where category_id = getCategory(portal30.wwctx_api.get_user)
    Hope this helps
    Madhav

  • DYNAMIC LOV FOR SELECT LIST

    hi to all,
    i've a question regarding lov query based select list:
    For a certain user i need that the lov display a list
    if app_user = BACK_OFFICE I NEED THAT ther query on wich is populated the
    select list is qry 1.
    if app_user is another (consultant) i need query 2 for populating the select list
    1) select name|| ' ' || fname D, id K from partner
    2) select name|| ' ' || fname D, id K from partner WHERE UNAME=(:APP_USER)
    Any solutions would be greatly appreciated.
    Another solution would be to have 2 different apps (one for back-office, one for external consultant), but there i should always duplicate all changes to the second one, loosing a lot of time.
    Now thinking as well to use hidden fields.
    If not clear enough please ask me.
    Thanx a lot.
    Message was edited by:
    Marcello Nocito

    I think one solution wold be to create two different named querys, one containing query 1 and the second query 2. Than u must create an Application Item(like a session variable) in wich u will store you condition. If you want to use the app_user variable u allready have it so you don't need to create it any more. On your page where u want to display the different select list u create two items, one with the query 1 as source and a second item(select list) having the source query 2. Then you must add a condition display on both of them like. Item one is displayed when Value of Item in expression 1 equals expression 2. And you pust :APP_USER in expression 1 and BACK_OFFICE in expression 2. And for the other item, that contains query 2, you put the opposite condition Value of item in expression 1 is not equal to expression 2, and expression 1 is :APP_USER and in expression 2 is BACK_OFFICE.
    Hope this helps.
    Florin

  • Dynamic Population of Select List

    I am stuck in a very frustrating situation at present, I need to dynamically populate select lists based on user choices.
    There are three drop down menus, only the first one is pre-populated with the other two populating upon user selection of the previous one. I am using JSP and JavaScript in conjunction. I need to make a function call to a back-end library which exists on a servlet to get the data for the 2nd and 3rd drop down menus, the parameter for the function being the user selected option in the 1st drop down menu.
    I know I cannot use the JavaScript "onchange" event handler as that won't help me call the back-end library functions. One way that I think is feasible at the moment is to do page refreshing, i.e. include other JSP's in one main JSP and refresh them as soon the user makes a choice. The other way is to embed an applet in a JSP page and use the JComboBox from the Swing libraries to detect events and make HTTP connections to servlets. I believe there is a possibility of using Struts to do this as well. Can someone tell me which would be the best method to use and a general overview of how to go about using it? I am also open to other alternatives...
    Thanx for any help in advance

    this can be done in two ways.
    one way:- try generating a hidden form fields with the values comma seperated.
    like <input type='text' id= id1 name = select1 value = 'coma seperated list of second select values' >
    on on change event you can get the list of values which you need to populate in the second select box. generate the options dynamically by splitting the coma seperated list into the second combo.
    second way:- while loading the jsp store all the second select box coma seperated list in java script array. and based on the change event of first select box get the corresponding values from the array and split them and generate the options dynamically and populate the second select box.
    I guess this way you can solve your problem.
    write back to me on [email protected] if you need code snippets.
    all the best
    kiran J

  • Parent Child dropdown list in ColdFusion

    Hi,
    I'm looking a CF/Javascript code with a functionality to show a parent dropdown list (ex. Country) and depending on the selected Country, need to show the child (State) dropdown list.
    Thanks.

    Cancelled Accounts
    AH099999 Hamilton Maurice Ralph
    Current Accounts
    AD099999 Greene Teresa L
    AH099999 Johnson Wm R
    AH099999 White Ben V Judith Ann
    AH099999 Jones Dean Edward
    AH099999 Smith Mary Carol
    This will create a tree just like Windows Explorer. The "Cancelled Accounts" and the "Current Accounts" are folders and the accounts are pages.
    <!--- list of all cancelled accounts --->
    <cfquery name="Accounts1" datasource="readprod" dbtype="ODBC">
    select accountinfo, ACCOUNT_NUM, web_acct_num_plain, value, code, category_code
    from directbilltext
    where (AGENT_NUM = '#SESSION.Usercode#')
           AND(CATEGORY_CODE = code)
           and (CATEGORY_CODE = '3')
      order by account_num
    </cfquery>
    <!--- list of all current accounts --->
    <cfquery name="Accounts2" datasource="readprod" dbtype="ODBC">
    select accountinfo, ACCOUNT_NUM, web_acct_num_plain, value, code, category_code
    from directbilltext
    where (AGENT_NUM = '#SESSION.Usercode#')
      AND(CATEGORY_CODE = code)
      and (CATEGORY_CODE = '4') and
       order by account_num
    </cfquery>
    <!--- beginning of tree. Parent levels are Cancelled Accounts and Current Accounts --->
    <cf_dccom component="TreeControl" width="400" height="250" usecookies="YES" title="Personal Lines Accounts">
         <cfset next_item = 1>
         <cfset current_parent = #next_item#>
         <cf_dccom id="#next_item#" parent="0" display="Cancelled Accounts" expand="false" ></cf_dccom>
         <cfloop query="Accounts1">
              <cfset next_item = #next_item# +1>
              <cf_dccom id="#next_item#" parent="#current_parent#" display="#accountinfo#"
                        HREF="/public/reports/Pers_history.htm?cftreeitemkey=#web_acct_num_plain#">
              </cf_dccom>
         </cfloop>
         <cfset next_item = #next_item# + 1>
         <cfset current_parent = #next_item#>
         <cf_dccom id="#next_item#" parent="0" display="Current Accounts" expand="false" ></cf_dccom>
         <cfloop query="Accounts2">
              <cfset next_item = #next_item# +1>
              <cf_dccom id="#next_item#" parent="#current_parent#" display="#accountinfo#"
                        HREF="/public/reports/Pers_history.htm?cftreeitemkey=#web_acct_num_plain#">
              </cf_dccom>
         </cfloop>
    </cf_dccom>
    So you could have a list of your countries with a list of your

  • Dynamic Population of Select List    code

    I have two select box's in jsp.
    if i selct one item on chane method i have to
    pupulate them in second selectbox.can any body have
    code for that

    I am not sure if you are using database for retrieval but in such a scenario you can do this:
    in case the option value/name for your first select box are unique, you can store this value in a particular variable and write another query to retrieve the value which you require in the select box in an Array by using the variable and finaly iterating through the array to have the select box populated.
    Hope you understand this and it helps you out.

  • Why do I have duplicates in my iTunes library when I have only a single file for each song on my PC?

    I have duplicates for about half of the songs in my iTunes library. I've recently upgraded to a new PC so I'm assuming that it occurred at that point.
    However, when I go in to my iTunes media files I only once copy of each album or song filed. Also if I search my PC I'm only finding one copy of each of these duplicated songs.
    Duplicated songs appear to play equally well and there are no exclamation marks next to them either. I tried updating and that didn't work. If I uninstall and reinstall will it delete my iTunes media files? Will I need to back these up first?
    Any advice on how to get iTunes to stop displaying the duplicates would be really appreciated.

    See Grouping tracks into albums in particular the topic Missing Artist or Album not with others by same artist.
    tt2

  • When opening Firefox, over 10 windows open, all of which have only a single "New Tab"

    I am running Firefox 5.0. Just recently, it started to open multiple (over 10) windows when I start it from the quick start area. All of the windows open with a single tab entitled "New Tab". Any tabs that I had open from my last Firefox session are ignored.
    I've used Firefox for many years.
    I use a desktop running Windows 7 SP1 Professional with an Intel i5 chip.

    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the files sessionstore.js [2] and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.<br />
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    See also:
    * [1] http://kb.mozillazine.org/Session_Restore
    * [2] http://kb.mozillazine.org/sessionstore.js

  • 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

  • Dynamic Security in a denormalized Parent-Child dimension Table

    Hi guys, I need your priceless help again:
    I have a parent child relationship in a table with a fixed depth, let´s say Region-->Area-->Country
    I denormalized the table to have something like this
    Then, to implement dynamic security, I think in a bridge table with the userId
    and the CountryId, then with a measure group and a measure which count the combination of user/country I can proof the security using the non empty function.
    My question is how can I also set security for the levels above the leaf members, let´s say, I want to assign an user to the Area level or Region Level. I don't know exactly which key could I include in the bridge table.
    I may want to keep the id´s of the original table in the different levels.
    Any comment will be appreciated.
    Kind Regards,

    Hi Paul,
    According to your description, you want to apply dynamic security on parent-child hierarchy. Right?
    In Analysis Services, when a dimension contains a parent-child hierarchy, we can't set up security directly on the key attribute. Because it will not appear on the dropdown list of Dimension Data Security in Role editor.
    In this scenario, we need to filter on key attribute and not the parent-child hierarchy. Then use Linkmember() to find the equivalent members on the parent-child hierarchy. Please refer to the expression below based on a employee dimension with parent-child
    hierarchy.
    Generate(
     NonEmpty(
      [Employee].[Employee].[Employee].Members,
       [Measures].[Employee Count],
       StrToMember('[User].[User].[' + UserName() + ']')
                 LinkMember(
                     [Employee].[Employee].CurrentMember,
                     [Employee].[Employees]
    Also I suggest an excellent book:
    Expert Cube Development with Microsoft SQL Server 2008 Analysis Services. It talks about this scenario in chap 9.
    Reference:
    SSAS
    Dynamic security - Bridge table (factless) between User dimension and Parent-Child (PC) dimension
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Parent/Child list passing variables.

    Hello All,
    I have a task that involves setting up a Parent/Child Relationship lists and takes it a step further and adds documents to a document library from both the Parent list and/or the Child list.   I have related web parts on both lists to the document library.
    I also have a related web part of the child list on the Parent display page. I followed this
    resource to automatically pass the ID: which is the Title Column of the Parent List to a Lookup Column in the Child List.   I would like to pass the Lookup Field item information from the child list to the document library, but the resource is using
    the "getParameterBYName('ID')" to create the variable passed into the cookie.   I cannot use the ID of the Child List because it is referring to the Child Item and not the Parent item. I am passing this item into a Lookup Field on the Document
    Library Form which filters related Child items when the Parent is selected.  Can anyone help me pass the Lookup Field item or get the url of the Lookup Item to pass into the cookie?
    I have tried:  "var ParentID = document.getElementByID('SPField').innerHTML"   This gets me the content for the field, but this does not work for setting the cookie.
    Any help is appreciated.
    James
    James Pruitt

    And here is the Document Library Upload from the Parent List:
    The pre-filled in Parent drop down filters the Child drop down.   I am trying to have the same action except from the child Display Form, I need both drop downs to be pre-filled based on the item being displayed:
    Here is the code that I am using.  It takes a cookie from the Parent List and pre-fills the first drop down.  From that we have a filtered second drop down.
    <script language="javascript" type="text/javascript" src="http://ai-seb03dev-001:5000/Shared%20Documents/jquery-1.11.1.min.js"></script>
    <script language="javascript" type="text/javascript" src="http://ai-seb03dev-001:5000/Shared%20Documents/jquery.SPServices-2014.01.min.js"></script>
    <script language="javascript" type="text/javascript">
    $(document).ready(function() {
    var ID = getCookie("ID");
    //alert(ID);
    if(ID != undefined)
    SetLookup("Parent", ID );
    function getCookie(name) {
    var cookieArray = document.cookie.split(";");
    for (index in cookieArray)
    var keyValuePair = cookieArray[index].split("=");
    var key = keyValuePair[0];
    key = key.replace(/^\s+|\s+$/g, "");
    if (key == name)
    var value = keyValuePair[1];
    return value;
    // Sets the value of a lookup field whether it is an input or select field
    function SetLookup( fieldTitle, lookupVal)
    // Set default value for lookups with less than 20 items
    if ( $("select[title='" +fieldTitle+ "']").html() != null)
    var element = $("select[title='" + fieldTitle +"']");
    $(element).val(lookupVal);
    // disable field to stop users from changing it if added from Parent list
    $(element).find('option:not(:selected)').attr('disabled',true);
    else
    var element = $("select[title='" + fieldTitle +"']");
    $(element).val(lookupVal);
    // enable field if adding a document manually
    $(element).find('option:not(:selected)').attr('disabled',false);
    //else
    choices = $("input[title='" +fieldTitle +"']").attr("choices");
    hiddenInput = $("input[title='" +fieldTitle +"']").attr("optHid");
    $("input[id='" +hiddenInput +"']").attr("value",lookupVal)
    choiceArray = choices.split("|");
    for (index = 1; index < choiceArray.length; index = index + 2)
    if (choiceArray[index] == lookupVal) {
    var element = $("input[title+'" +fieldTitle +"']");
    $(element).val(choiceArray[index - 1]);
    //disable field to stop pesky users from changing it
    $(element).attr('readonly',true);
    //hide the button that is used for the dropdown list
    $(element).next('img').hide();
    // Handle the filtering of the Parent Item and Related Child Items
    $().SPServices.SPCascadeDropdowns({
    relationshipList: "FundingRecordsLive",
    relationshipListParentColumn: "AgreementParent",
    relationshipListChildColumn: "Title",
    parentColumn: "Parent",
    childColumn: "Funding",
    debug: true
    </script>
    I am trying to set a cookie to the url of the SharePoint Lookup Field:
    <a href="http://ai-seb03dev-001:5000/_layouts/listform.aspx?PageType=4&
    ListId={FB7A87B6-0BA5-4764-B28C-B3B8A98218F7}&ID=3&RootFolder=*">
    If anyone knows how to do this, or can suggest another way to pass the Lookup
    Field info, I will very appreciative.
    Thanks, JP
    James Pruitt

Maybe you are looking for