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

Similar Messages

  • 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

  • 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 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

  • Handling Large list with 150+ columns(40+ Searchable) and 100000 rows.

    Hi All,
    We are working on project architecture for project with the following issue:
    1. List having 150+ columns out of which:
    - 40+ columns need to have search (i.e Indexing)
    - 30+ lookup columns
    - 10+ date time columns
    - 40+ multiline text columns
    2. List having 100000+ records
    - As per business we don’t have any specific folder criteria to divide list items into folders.
    Business Requirements:
    - filter on the list (it should show real time data so can’t use SharePoint Search)
    - Export to Excel 30000+ data in <30 Sec
    Our list is already normalized and we don’t see any scope to normalize it further.
    Problems of breaking the list into multiple list:
    1.)Low performance as join is taking very much time(due to 30,000 items)
    2.)Secure transaction problem i.e. suppose we broke list into 5 child lists. Now if I need to add an item in list then it has to be implemented by adding part of item to each child list.
       There may arise problem such as items inserted to 4 list successfully but failed in insertion into last list.
    Thank you in advance.
    Thanks, Satish

    Hi All,
    We solved this problem by normalizing list into many list.
    Then creating one search list with all columns as plain text no look up this list have all the columns from all different list. Then writing event receiver to update this search list on item change. 
    and one timer job which will delete and recreate this search list weakly.
    Let me know if you have any better solution.
    -Satish 

  • Creating Select List with multiple columns

    I want to create a select list with multiple columns. I followed the demo application model described in the by Denes Kubicek (Currently my reference for APEX !!)
    The code is as follows:
    CREATE OR REPLACE FUNCTION getcrops(p_cropid IN NUMBER)
    RETURN VARCHAR2
    IS
    v_cropid VARCHAR2 (400);
    v_fcode VARCHAR2 (400);
    v_product VARCHAR2 (400);
    v_var VARCHAR2 (400);
    v_fname VARCHAR2 (400);
    v_acres VARCHAR2 (400);
    v_style_start VARCHAR2 (400);
    v_style_end VARCHAR2 (400);
    v_return VARCHAR2 (400);
    BEGIN
    FOR c IN (select "CROP"."CROPID" as "CROP ID",
         "CROP"."FIELDCODE" as "FIELD CODE",
         "CARROTPRODUCTLIST"."CARROTPRODUCTNAME" as "PRODUCT",
         "VARIETYLIST"."VARIETYNAME" as "VARIETY",
         "FIELD"."FIELDNAME" as "FIELD NAME",
         "CROP"."SIZEINACRES" as "ACRES"
    from     "FIELD" "FIELD",
         "CARROTPRODUCTLIST" "CARROTPRODUCTLIST",
         "VARIETYLIST" "VARIETYLIST",
         "CROP" "CROP"
    where "CROP"."CARROTPRODUCTTYPE"="CARROTPRODUCTLIST"."CARROTPRODUCTID"
    and     "CROP"."VARIETYID"="VARIETYLIST"."VARIETYLISTID"
    and     "CROP"."FIELDID"="FIELD"."FIELDID")
    LOOP
    v_cropid := TO_CHAR (c.'CROP ID', 'FML999G999G999G999G990');
    v_fcode := c.'FIELD CODE';
    v_product := c.'PRODUCT';
    v_var := c.'VARIETY';
    v_fname :=c.'FIELD NAME';
    v_acres :=c.'ACRES';
    FOR i IN 1 .. 12 - LENGTH (c."CROP ID")
    LOOP
    v_cropid := v_cropid || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'FIELD CODE')
    LOOP
    v_fcode := v_fcode || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'PRODUCT')
    LOOP
    v_product := v_product || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'VARIETY')
    LOOP
    v_var := v_var || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'FIELD NAME')
    LOOP
    v_fname := v_fname || ' ';
    END LOOP;
    FOR i IN 1 .. 12 - LENGTH (c.'ACRES')
    LOOP
    v_acres := v_acres || ' ';
    END LOOP;
    v_return := v_cropid || v_fcode || v_product || v_var || v_fname || v_acres;
    END LOOP;
    RETURN v_return;
    END;
    I created this anonymous Pl/SQL function at a application level ..Then I followed up to create a select list with a function inside. However I could not create select list with the command suggested in the demo which is
    select getcrops(cropid) d, cropid r from crop;
    APEX (2.1) returns a error message. What am I missing ? Should the function be called from somewhere else after creating a regular select list..? Where the functions (Pl/SQL) should be ideally stored for application level access..? and for across application level access ? How can I check the function works good. Help is appreciated.

    Still really one column.
    If they need to be independent then you've got to have three selection lists.
    %

  • Selection list with multiple columns

    How can i create a selection list with multiple columns?

    Still really one column.
    If they need to be independent then you've got to have three selection lists.
    %

  • Select list with multiple columns

    I want to create a select list with multiple column option. What are the options. Any developments in apex 3.0.1 ? Thanks in advance. I tried the tutorials by Kubicek.
    I am kind of stuck to see the function entry inside LOV definition returns a error.

    Still really one column.
    If they need to be independent then you've got to have three selection lists.
    %

  • List with multiple column

    hello all ,
    how to create a list with multiple columns ? can anyone share some examples or code snippets

    What I would usually do is create a movieclip/sprite that contains a row with every column in it (each column being a textfield).  Then pile up the rows one atop the other (using Actionscript) as they are populated with data.

  • Exclusive choice list with Palm OS Emulator

    hi,
    I try to use an exclusive choice list with a palm os 3.5 and 4.0. (MIDP for Palm 1.0.3)
    But my screen show me only the text with a small point in front of it. It isn't possible to determine visually which line is selected!
    I haven't find any information about this problem in bug list and I'm very surprised!
    Is that a solution?
    Thanks
    Pascal

    [rapazp],
    Firstly, I do know that the MIDP for Palm OS 1.0 BETA has not been officially tested on PalmOS 4.0, so you may get some funny rendering issues with the screen. However, you should not get any problems with PalmOS 3.5.
    An "Exclusive Choice" List is usually rendered to the screen as a group of radio buttons so you should get to see a couple of radio buttons that you can scroll up or down and pick one choice. Are you testing this on the emulator or are you testing this with the MIDP.prc installed on your Palm device?
    Below is some simple source code sniplets using Exclusive Choice List:
    List list = new List("Border Style", Choice.EXCLUSIVE);
    list.append("Selection 1", null);
    list.append("Selection 2", null);
    list.append("Selection 3", null);
    list.addCommand(BackButtonPressed);
    list.addCommand(OKButtonPressed);
    public void commandAction(Command cmd, Displayable d) {
    if (cmd == OKButtonPressed) { int i = (List)d.getSelectedIndex();}
    else if (cmd == BackButtonPressed) { //code to handle the Back button command}
    }HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • Get Managed Metadata (Taxonomy) ALL Lists with Columns and ALL Choice Lists with Columns VALUES programmatically

    Hi there,
    How to get Managed Metadata Lists  ALL Columns and ALL Choice Lists Columns that are used in the Site Collection programmatically please.
    Regards

    Hi sharepointaju,
    Managed Metadata list is a hidden list, that you can access it through
    http://siteurl/Lists/TaxonomyHiddenList/AllItems.aspx, then it is similar to other lists, you can use server or client code to interate each field in the list, show the the value for each item.
    For all choice list columns, I'm not clear what you mean in this situation, do you mean to get all choice columns in the site collection, if so, iterate site columns, and lists to get list fields, check whether it is a choice type field.
    This may be not your requirement, please provide more information how you want to get which value.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Popup List with multiple columns but returning a single column (key value)

    Hi,
    1. Is it not possible to show a POPup (returning a key value) or Select list with more than 1 column? If so how?
    2. I have an item in a page which should be hidden if 1 particular button was pressed. This is is to use the same page but have some behavioural change based on which button (option) was selected. How can I get the name of the BUTTON PRESSED TO INVOKE THIS PAGE.
    thanks
    SebJos

    Hi,
    In that case, you should make the page item conditional. There are many techniques to do this but it would depend on what the button is for.
    As a simple example...
    1 - Create a hidden item on your page called, say, Pn_SHOW (replace n with your page number - eg, P1_SHOW). Set the default value of this item to either 0 (zero) or 1 - 0 will hide the item and 1 will display it, so in your example, set it to 0
    2 - On the page item you want to show/hide - on its definition, you have a Conditions section. Set the following:
    Condition Type: Value of Item in Expression 1 = Expression 2
    Expression 1: P1_SHOW
    Expression 2: 1
    When the page is loaded, because the value of P1_SHOW is 0, and due to the conditions we have just set (where P1_SHOW must be 1 for the item to be shown), the item will not appear on the page.
    When you created your button, a new page branch should have been created. On this branch, you have two settings - "Set these items" and "With these values". Set the following:
    Set these items: P1_SHOW
    With these values: 0
    You should also have at least one other branch on your page - one of these will need to set the value of P1_SHOW to 1 to get the item to display.
    Andy

  • 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

  • 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

  • Site lookup columns that contain a list with lookup columns help needed

    Here is the theoretical scenario,
    I have a list called Shirts. The list contains name,color, and size columns.
    I have a list called Pants This list contains name, color and size columns as well.
    These two lists are contained at the root level of the site. I created site lookup columns for these two lists and used the name, color and size columns as additional fields on both lookup columns. Lets call these lkupPants and lkupShirts.
    On a sub site I have a list called people. It contains name,date,lkupPants and lkupShirts columns.
    The list looks something like this is dataview:
    Name Date lkupPantsName lkupPantsColor lkupPantsSize lkupShirtName lkupShirtColor lkupShirtSize
    This is the behavior I expected. The additional columns selected in the site lookup columns appear in the list.
    I now create another site lookup column this one is based on the list called people at this subsite level. When creating the site lookup column, the data from lkupPants and lkupShirts are not available.
    How can one create a lookup column that contains list data and any lookup columns contained in the list as additional fields.
    If anyone can see where I am going with this, can they provide another means to accomplish what I am trying to do?
    fr0stsp1re

    create additional columns in people list.  look up values are available in the workflow so populate the additional columns with the values you need.  this will allow you to create another look up column based on this list and all the fields needed.
     just a thought.
    kashif

Maybe you are looking for

  • Sorry, a serious error has occurred...(Premiere Elements 7)

    I am having a problem with Premiere Elements 7.  It was installed in January of this year and worked fine then.  I didn't do any video editing for a few months and came back to it recently.  Now I am having a problem opening old Version 7 projects an

  • Printing in Word for Mac: strange result

    Today I tried a simple thing like printing a word page from app Word for mac. Usually I obtain a normal print. But today the result is quite strange: the page is printed in an over stretched form, characters seem stretched in vertical, but with some

  • File adapter every 15 minutes  one file !!!

    Hello every one If I need to pick a file every 15 minutes using scenario file adapter to mail .. How can I make this works ??? Thanks

  • Problems with the E4200

    Last week I purchased the E4200 and for simplicity, I configured it with basic settings using Cisco Connect. Today, I went into the web interface. The only thing I did was review settings and get the Routers PIN (it appears that Intel Chipset cards o

  • The deadlock between RangeS-S and RangeI-N

    Hi Experts , We are getting deadlocks in ranges-s and range1-N lock types, do you have any suggestion to avoid the kay range deadlocks. below given is the deadlock graph, <deadlock> <victim-list>   <victimProcess id="process2e93b3708"/> </victim-list