How to make dependent choice lists grow dynamically?

Is it possible to have dependent choice list which grow as the new content is added for choice list item?
E.g If we have countries, states, cities as dependent choice lists. If contributor adds a new country the value should appear in the drop down next time. That value of country can be in turn be used to add states for it. The id of state in trun should be used to add cities. Is this possible?
Regards,
Pratap

Hello All,
by the way, it is very simple to let opltion lists grow dynamically, and moreover to have a predefined structure before.
First you create a table and fill the view for this table with you start values, as it has been described before in this thread.
Then you make the option list for the field Edit and Select.
And then, as you know, your predefined values are stored in your custom schTable (whatever the name is), but all the values entered by the user are stored in DOCMETA table!
All you need to do is to create a trigger with SQL Developer, so that on update and insert in table DOCMETA for your custom metadata field it is checked whether this value is already in your predefined option list stored in your schTable.
And if the value is not there, make the trigger add a new record to custom table with this value and related values as well.
Simple.
This is true for any option list with predefined value and updated by the end-user.
If it is dependent option list, then you need to add both values for parent and child fields in your custom table.
There is another problem for which I can not find a solution --> if the field depends on two fields...
Regards,
Guli

Similar Messages

  • Populate Actual values in Dependent Choice List

    Hi,
    I have a scenario wherein 3 metadata fields are dependent on each other.
    Department -- > EmpNames --> EmpID
    On implementing the dependent choice list, if i select the department, empnames of that department gets displayed.
    But by default it loads up with No Selection option followed by empnames.
    My client has a requirement wherein on selecting the empname, empid should get auto poulated. In our case it is,
    by default No Selection option is present and empid comes after that.
    Please let us me how to remove that No Selection type and make the value to get populate.
    Regards,
    Bhaskar

    Hi Bhaskar,
    This can be achieved in ODC. Which GUI you are talking about?
    Regards,
    Vikrant Korde.

  • How to make a SELECT LIST READONLY

    Hi,
    I have a form to update the existing values in a table. Primary column is based on a Select List.
    So when user goto update screen they SHOULD NOT BE ABLE TO CHANGE the primary filed(means the value display in the Select List).
    SO to make this one I have make that select list read only. But not like other items even when we make select list read only it still allow user to change the value. So basically read only property not working for select text.
    There are many post in this regading same issue. Some of them recomended to make it disabled. But when we make a item disabled then when user POST that form, Apex not POST any disabled item values. Basically disabled items values not passing next form. So making item dissable also not a solution.
    I have read almost 20 post in here regarrding this and didnt get any solution for this. So please let me know if anyone knows how to make a select list read only (which is working same as read only text boxes, means that value pass when user POST the form).
    Thanks in advance...
    mc

    You define a function(this is based aorund jQuery selectors) in the page header like
    <script>
      var makereadonly = function(selector, makeReadonly) {
          $(selector).filter("select").each(function(i){
              var select = $(this);
              //remove any existing readonly handler
              if(this.readonlyFn) select.unbind("change", this.readonlyFn);
              if(this.readonlyIndex) this.readonlyIndex = null;
              if(makeReadonly) {
                  this.readonlyIndex = this.selectedIndex;
                  $(this).css('background-color','#CDCDCD'); //Adds a background colour to readonly item
                  this.readonlyFn = function(){
                      this.selectedIndex = this.readonlyIndex;
                  select.bind("change", this.readonlyFn);
          //For input items
          $(selector).filter("input,textarea").attr('readOnly','readOnly');
          $(selector).filter("input,textarea").css('background-color','#CDCDCD');
    </script>and apply it using a jQuery selector (call it in the "execute on page load" or any other JS code)
      makereadonly('#ITEMNAME1,#ITEMNAME2,#ITEMNAME3',true);Not that all of these methods(that act at the client side) will only prevent the user from modifying it 'normally', they could manipulate these readonly items using Javascript(or using firebug or any tool like that). So its better to make sure that your don't use the item value(from the page) for processing.

  • HT4759 How can make the events listed in my chalenda become automatically a reminder in the reminder?:

    How can make the events listed in my chalenda become automatically a reminder in the reminder?:

    Welcome to the Apple community.
    Calendar and reminders are two different and separate apps, you cannot transfer information between the two of them.

  • How to make a select list editable or searchable like the combobox

    Does anybody know, How to make a select list editable or searchable like the combobox? Do we need a plugin here, where I can get it.

    Hi Nilesh,
    If this is what you are looking for http://apex.oracle.com/pls/apex/f?p=32395:3:1202144397644679
    get the combobox plug-in
    http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/searchable-combobox.html
    I have not tried this though. Found it while searching for some other plug-ins.
    Regards,
    -Senthil

  • Implementing dependent choice list with internal columns as varchar

    Hi,
    While implementing dependent choice list I created two tables & their views with internal column as varchar(for example: countryName for country table & stateName for states table) instead of int. I couldn't get the DCL working: selecting a value from the dropdown of parent field won't show up only the dependent values of the child field; it will display the dropdown with all values (it will show all values of the States irrespective of the countryname selection). However when I select the internal column as int & visible column as varchar the DCL works fine.
    Our requirement is to use the internal columns as varchar instead of int. Please suggest/help.
    Thanks,
    Madhur

    Hi Shashwat,
    I have done that. The problem is: dependent choice list doesn't seem work is you choose primarykey/foreign key as varchar. It works if I choose the primarykey/foreign key as int. And this key will be the internal column in the views. My requirement is to have them as varchar so that while checking-in content using RIDC API I don't have to provide the int value.
    Thanks & Regards,
    Madhur

  • How to make a lookup list in a response notification dynamic

    Hi Experts,
    I am implementing a custom workflow on ebusiness suite 11.5.10, I have a notification and one of the response attributes is a lookup list based on a static lookup type and several codes. I would like to make this lookup list dynamic i.e. based on a SQL statement, so that my users can update the list. Is there anyway of doing this?
    Thanks
    Keith

    Hi,
    You might be able to do some kind of personalization or custom framework page to render the notification on screen, but there is nothing in Workflow that will enable you to do this.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Dependent Choice List Not working in ECapture as Expected

    Hi Martin_A,
    In ECapture i am trying to create a dependent Chocie list which will show City name based on Country name.
    But in ECapture that configuration is not working since during the creation of Depedent list from Parent
    Source,configuration is taking only one value of Parent source for eg. Country- US
    Hence child choice list is showing cities related to only US.
    Which should not be the case since in actual scenarios depended list means filter on the basis of selected parent value.
    Please let me know if i configured it wrongly.
    Please send me the steps if you did it perfectly last time
    @Martin_A

    Looking at the documentation 3.7 of  Managing Oracle Webcenter Capture, that's how it is, you have to have a separate child list of cities for every country in the country list, only 196 parent items and 196 lists to configure then
    In a choice list dependency, a parent field is linked to two or more child choice lists,
    one of which is displayed after the user makes a selection in the parent field.
    Important Points About Choice List Dependencies
    ■ You can create choice list dependencies between Capture user defined choice lists,
    database choice lists, or between choice list types.
    ■ Create all choice lists you plan to link before creating a choice list dependency. At
    a minimum, you need a parent choice list, and two or more child choice lists.
    ■ Each item in a child list can be related to multiple parent items. For example,
    Supplies could be a child item to Household and Automotive subproducts.
    ■ You can create multi-level dependencies (for example, great grandparent,
    grandparent, parent, and child choice lists).
    ■ Only one choice list dependency may be assigned to a client profile. Multiple
    parent/child dependencies must be defined within a single choice list dependency.
    Martin

  • Dependant choice lists

    Hi,
    I would like to be able to present the user with two dropdown lists, with the data from the second one dependant on the first. I understand with 10g this is somewhat simpler due to the introduction of primaryClientAction. I thought of using the query type facility within JHeadstart to read a value from the session Data to populate the second list. My question ? Is this possible without having to submit the form (assuming that the value is only going to get set on the sessionData once the form has been submitted). Is there a way that I could store the value on the sessiondata using a javascript function on my first choice list ??
    Thanks,
    Brent Harlow

    Hi Peter,
    Thanks for the reply ! Seemed somewhat daunting at first but not bad once I tried it out. Not 100% successful yet though. I thought that I would first try it out populating a table on a separate page to make sure I had the basics right. First problem is that "'<%=sessionData.getAttribute("controller")%>" does not seem to be getting resolved - the alert(xmlHTTP.responseText) returns "404 Error : Resource /Choicedemo/<%9cessionData.getAttribute("controller")xtarget......"do I need to include something else in my javascript or struts-config ? Secondly, when I replace the code above and hard-code in the web url, the action returns success but the forward table page is not displayed ?? Here is my code
    struts-config
          <action path="ModuleRouter" type="oracle.jheadstart.controller.struts.action.DynamicActionRouter">
             <set-property property="forwardParameterName" value="targetGroup"/>
             <set-property property="attributeNameParameter" value="targetCondition"/>
             <set-property property="attributeValueParameter" value="targetConditionValue"/>
             <set-property property="defaultForward" value="Studies"/>
             <set-property property="defaultPreviousForward" value="false"/>
             <forward name="Studies" path="StudiesRouter"/>
             <forward name="Kits" path="KitsRouter"/>
          </action>
          <action path="StudiesRouter" type="oracle.jheadstart.controller.struts.action.ActionRouter">
             <set-property property="defaultForward" value="initial"/>
             <forward name="initial" path="GetStudiesSet"/>
             <forward name="browse" path="BrowseStudiesSet"/>
             <forward name="insert" path="GetDefaultStudies"/>
             <forward name="save" path="SaveStudies"/>
             <forward name="delete" path="DeleteStudies"/>
             <forward name="firstPoplistChanged" path="getSecondPoplist"/>
             <forward name="groupPage" path="/WEB-INF/page/StudiesPage.uix"/>
          </action>
          <action path="getSecondPoplist" type="oracle.jheadstart.controller.struts.action.GetDataObjectSet">
             <set-property property="dataObjectInterface" value="hmdclinical.choicedemo.model.invkitdetail"/>
             <set-property property="dataObjectSetName" value="KitsSet"/>
             <set-property property="isUpdatable" value="true"/>
             <set-property property="rangeSize" value="30"/>
             <set-property property="queryType" value="SecondPoplistQuery"/>
             <set-property property="attributeNames" value="firstPoplistValue"/>
             <set-property property="useAttributeNameAsKey" value="false"/>
             <forward name="success" path="/WEB-INF/page/KitsTablePage.uix"/>
             <forward name="userError" path="/WEB-INF/page/KitsTablePage.uix"/>
             <forward name="dataObjectNotFound" path="/WEB-INF/page/KitsTablePage.uix"/>
          </action>my javascript that is being called from the onChange handler
    function firstPoplistChanged(item)
      if (item.selectedIndex >0)
        // This is a url that will invoke a specific forward on
        // a specific actionRouter in your Struts config file.
        // var url = '<%=sessionData.getAttribute("controller")%>?targetGroup=Studies&targetCondition=firstPoplistChanged&targetConditionValue=true';
        var url = 'http://192.168.0.39:8989/Choicedemo/StartChoicedemo.do?targetGroup=Studies&targetCondition=firstPoplistChanged&targetConditionValue=true';
        // Add a parameter to the URL that holds the selected
        // value in the first poplist
        url += '&firstPoplistValue='+item.options[item.selectedIndex].value;
        alert(url)
        // Invoke this URL
        var xmlHTTP = new ActiveXObject("Microsoft.XMLHTTP");
        xmlHTTP.open("GET",url, false);
        xmlHTTP.send();
        // Decomment this alert to see what you actually got back
        // from the server.
        alert(xmlHTTP.responseText);
        // Find the second poplist (you'll need to set its id),
        // and overwrite its content
        // document.getElementById("secondPoplist").outerHTML = xmlHTTP.responseText;
      else
        // If the first poplist is not selected, clear the
        // second one.
        // document.getElementById("secondPoplist").innerHTML = "";
        alert("Item selected index <= 0")
    }and finally the oc4j debug showing me that the getSecondPoplist action was successful
    22:42:17 DEBUG (DynamicActionRouter) -Forward returned: Studies
    22:42:17 DEBUG (JhsRequestProcessor) -Execute StudiesRouter
    22:42:17 DEBUG (ActionRouter) -Forward returned: firstPoplistChanged
    22:42:17 DEBUG (JhsRequestProcessor) -Execute getSecondPoplist
    22:42:17 DEBUG (GetDataObjectSet) -Forward returned: successHow come /WEB-INF/page/KitsTablePage.uix is not being shown then ?
    Also..I appreciate you are giving me lots of info here but the last paragraph in your email "Finally, you need to write the simple secondPoplist.jsp that renders the second poplist with the new contents" has got me stumped - Sorry, I dont know where to begin ! How are the normal poplists rendered ? I was trying to find an example.......Im guessing that the JSP just provides the html that creates the poplist - dont understand how to hook it up to the dataObjectSetName. Also, the second list is going to be rather large so I wanted to use a LOV instead of a poplist ? Any pointers ? Do I just need to call the same lovFrame.jsp and pass in the new dataObjectName from the getSecondPoplist action ??
    Thanks a million Peter,
    Cheers
    Brent

  • How to make a smart list of photos containing any keyword

    I want to get all my keywords embedded. I think a workaround is to make a smart list that has all my photos which contain any key word. Export all these photos. Then import them back in using auto arrange by event.
    How do I make a smart list that contains all photos with any keyword (I dont see that as a choice) and will this workaround work?
    thanks

    Dale:
    In the Photos window turn off the Event Titles so all you see are the photos. Then sort by keyword, ascending or desending. The photos without a keyword will be at one end of the display of photos. Find all of the photo without a keyword and batch add a new, unique keyword. Then make a smart album with the criteria Keyword is not "XXXX".
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Dependent choice list with Idoc Script

    Hi,
    I'm developing a customized component and I have made my own template.
    This is made in *.hcst* extension.
    I use 3 variables dependent (they are choice lists),
    If I put these variables in a checkin profile everything is O.K.,
    but the problem I have using these fields in my template,
    if I select the first variable it shows a javascript error:"setOption is not defined", maybe that is problem because
    I must include the script that contains the function but I don't know where it is located.
    I do exactly what Bex's book says (as follows):
    <$include std_doc_page_definitions$>
    <$include std_html_head_declarations>
    <$fieldName="xCountry", fieldCaption="<b>Country:</b>",
    fieldIsOptionList=1, isInfoOnly=#active.isHcsp$>
    <$include std_display_field>
    <$fieldName="xState", fieldCaption="<b>State:</b>",
    fieldIsOptionList=1, isInfoOnly=#active.isHcsp$>
    <$include std_display_field-->
    <$fieldName="xCity", fieldCaption="<b>City:</b>",
    fieldIsOptionList=1, isInfoOnly=#active.isHcsp$>
    <$include std_display_field>
    <$include std_page_end$>
    the result is the first field with its list options properly filled in, but the second and third choice list do not have values, even if I select any in the first list
    I think the problem could be in some include
    (I do not know if there includes missing, or I forgot something)
    Please help me
    Best regards,
    Juanele

    The setOption function is defined in this dynamic html include:
    query_form_std_script
    There's also a different version defined in this include:
    expired_form_std_script

  • 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

  • Outlook 2010 - how to make "global address list" display larger?

    Does anyone know how to make the "global address list" box and text appear larger in Outlook 2010? 
    Thanks

    What do you mean? Can you please explain in detail?
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • How to make hidden Drop Lists functional in RBList Subforms?

    I have created a form that contains 3 isolated Radio Button lists, each with hidden subforms that are unique per each button.
    Two of my RBLists and subforms work perfectly, showing hidden Drop Down List options and other fields as they should when a button is selected.
    However, RBList3 presents the Drop Down lists as user entry fields only. Each hidden subform in RBList3 contains one drop down menu and one text box for instructions.
    I've used the same javascript to hide/show hidden fields when buttons are selected. All settings seem to match up. Here is a sample of my code:
    if(RBList3.F.rawValue != 2) 
        this.presence = "hidden";
        newsubform.presence = "hidden";
    else if(RBList3.F.rawValue == 2)
        this.presence = "visible";
        newsubform.presence = "hidden";
    Does anyone have any suggestions for how to make my Drop Down Lists in RBList3 show as functional Drop lists?
    I have attached the form for reference.

    See example #62 on my blog for a 10.1.3 example:
    http://tinyurl.com/smuench-adf-examples
    For a tutorial on how to create them using the new features we enable in 11g, see my Oracle Magazine article:
    Defining Cascading List of Values

  • How to make multi select list as dropdown??

    Hi friends,
    using apex 4.0
    i want to make multi select list as dropdown,how can i do this??
    thanks in advance.. :)

    mn123 wrote:
    using apex 4.0You MUST include the following information with every question:
    <li>Full APEX version
    <li>Full DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    This cuts down on the need for a lot of follow-up questions or second-guessing. Appropriate solutions may differ according to any of these variables.
    i want to make multi select list as dropdown,how can i do this??Please define exactly what you mean by "multi select list" and "dropdown".
    Do you mean displaying a multi-select enabled select list as a drop-down list rather than as a list box? If so, this is not possible using standard APEX/web browser controls.

Maybe you are looking for

  • Different versions of the same app on the app store

    Is it possible to let users download the different versions of the same app from the App store,( even though I have not seen it but just wonder whether it is possible) ? If not then can we have different releases of the same product with different fe

  • Changing brightness and colors of an image

    Here's code for an applet that will create a gradient: http://www.sitepoint.com/forums/showpost.php?p=1408696&postcount=5 How would you load an image and do this same thing to the image? Also, how could you add a slider to change the brightness? Any

  • Make ALV GRID screen resizable

    Hi All, I have created an object V_MAPBOX using reference to class CL_GUI_DIALOGBOX_CONTAINER. CREATE OBJECT v_mapbox       EXPORTING         width = 300         height = 130         style = cl_gui_control=>ws_sysmenu         repid = 'ZMAP'         d

  • Unhidden products not showing

    I have accessed my iTunes account onto my new laptop and have been re-downloading all purchases to my new library. All but one of my movies will not re-download. It was set as a 'hidden purchase' so I then chose to unhide it so I can download it agai

  • LR4 and ACR still in sync?

    As most here will know LR uses Adobe Camera Raw as its engine. Now what got me wondering is the fact that LR4 has been released as a final product while ACR 6.7 is still at the release candidate state. How is this possible? Has LR4 been released prem