Two dependent lists in a search form

How can i create two dependent lists in a search form?
Am using jdev 10.1.3?
Is there any sample wich can help me?
THanks in advance !
cheers,

REPOST !

Similar Messages

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

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

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

  • Two select lists in tabular form

    I have two Select Lists which one of them depends on the another -the second one's query depends on the first one's - .....
    This operation can be done in a form or a page, but how it could be done in a tabular form???
    Saad

    The simple answer is that to the best of my knowledge, it cannot be done because of how the tabular form works. If I understand it correctly, Tabular forms are populated completely at page load and cannot post back from items inside the form in order to refresh a list of values on the second select list. If you want to do this, you will need to build the form as a "Form and Report" page type where you have links in your report that populate a regular page form. Just tell it to put the form and the report on the same page them add a hidden page item that you set to 1 or 0 to display the form and setup the form processing so it is button tied instead of unconditional (You may have to duplicate auto processing processes).
    The complex answer....there probably is a way to do this using AJAX as AJAX is good at this kind of stuff and every field in the tabular form has an HTML id of some kind....but I am not well versed enough in AJAX to give you a straight answer as to how to accomplish it. I used AJAX to do something similar to what your talking about but it was with regular page items (using a select list to populate a shuttle without a post back) and not items in a tabular form.

  • List Of Value in search forms

    Hello,
    I am using ADF 11g
    I am trying to prepare a custom search form (not af:query component). I dragged and dropped a view object in data control to create a select one choice component. It is working good.
    But i am not able to have the LOV to have an empty item in the beginning.
    I already tried to edit the View definition, and selected "Include no selection item" in List UI Hints section, but in the page, select one choice still does not have an empty item in the beginning.
    What is missing here or what am i doing wrong ?
    Thanks

    List of values in 11 does not work as in 10.
    They need to be binded in model in specific view attribute.
    You can create a transient view object (i.e. select null as list_attr from dual)
    then you need to add to the attribute the list of value,
    then drag and drop ListAttr to the page

  • Difference between dependent list of values in table and form

    Hi ,
    Is implementing dependent lov in editable table i.e. in adf table different from implementing the same in an adf form.
    In one of his posts Frank Nimohius mentioned that he can send us the implemented application for dependent list of values in editable table, if he reads this could you please send me the same.
    Has anybody ever implemented depedent list in adf table.
    Thanks and regards,
    Raksha
    Edited by: Raksha Sharma on 7 Jun, 2009 2:48 PM

    Hi,
    its already online: http://thepeninsulasedge.com/frank_nimphius/2008/04/08/adf-faces-building-adf-dependent-list-boxes-in-adf-faces-table/
    Frank

  • Create Site Column and add it to two different list as dependent lookup column

    I want to create two lookup lists that will have one common column. The common column values will vary depending on the list.
    For ex: List A holds Countries (USA) and their Currency code (USD). List B holds States (New York) and their code (NY). The lists are completely independent of each other. I would like to create a common site column named "Code" of type
    Text and use it across these two lists. Is it possible?
    My solution so far -
    a. created the site column (programmatically) which is pretty straight forward.
    b. created list definition with two fields (Title and Code).
    c. created list instance for Country list. Added data rows in the elements.xml. But not sure how to add Code field as dependent lookup.
    If I remove the code field from the elements.xml, the solution deploys successfully creating the Country list with just the Title field. But I need both the fields. Any help is appreciated.
    Here is a look at the elements.xml with data rows for Country list instance
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <ListInstance Title="List Instance" OnQuickLaunch="TRUE" TemplateType="10001" Url="Lists/CountryList" Description="Country Values">
    <Data>
    <Rows>
    <Row>
    <Field Name="Title">USA</Field>
    <Field Name="Code">USD</Field>
    </Row>
    <Row>
    <Field Name="Title">Japan</Field>
    <Field Name="Code">Yen</Field>
    </Row>
    <Row>
    <Field Name="Title">Australia</Field>
    <Field Name="Code">AUD</Field>
    </Row>
    </Rows>
    </Data>
    </ListInstance>
    </Elements>

    Hi,
    According to your post, my understanding is that you want to add lookup field to the list in elements.xml.
    I recoment you to create lookup column as site column, then bind the lookup column to the contnet type, and then use the contnet type in the list.
    For more information, you can refer to:
    http://spcodes.blogspot.com/2013/02/create-custom-content-type-with-lookup.html
    http://social.msdn.microsoft.com/Forums/office/en-US/d5ec08d5-cfa7-4bbb-9459-78d04674ee59/add-a-lookup-column-in-the-schemaxml?forum=sharepointcustomizationlegacy
    http://www.justanothertechnologyguy.com/2013/01/how-to-create-and-connect-lookup-fields.html
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Required Dependent List of Values in Reports Parameter Form

    Dear All,
    These days I am facing a problem in Oracle Reports(ver. 2.5). I have develope a report. In the parameter form of this report, I want a list of value (LOV) on the second field which should be dependent on the first field value.
    For Example, In The Employee Details report, I have a Parameter form in which there are 2 Parameter fields, 1 is Deptno and the other is Empno. I want to attach a LOV on the Empno field but in this LOV I want to display only those empno's which should be dependent on the Deptno field.
    Thanks
    Vipin

    Hi,
    its already online: http://thepeninsulasedge.com/frank_nimphius/2008/04/08/adf-faces-building-adf-dependent-list-boxes-in-adf-faces-table/
    Frank

  • ADF:two dependent navigation lists on one database table

    Hello,
    I´ve got one table with adress informations and I like to define two navigation lists (drop down lists) on which the first one shows the streets and the second one shows the names. When I select the street in the first one I like to see the names in the second list only of the selected street.
    How can I realize this? In my datacontrol I´ve got one dataview with the several attributes and I can create the two lists but they don´t depent on each other.
    Many Thanks!

    Hi!
    Thank you for your reply, Frank.
    But the examples you mean, are based on two or more tables and worked with Master/Detail tables. I only have one table and I like to define two select choices for two columns of that one table. For example, one selectchoicelist for name and the other one for street. So the results are the rows which are matching the two selected criteria.
    Regards
    Sven

  • Is it possible? two dropdown list

    I try to get a value from the first dropdown(jdbc connection) in the second dropdown box.
    using jdeveloper 10.1.3.4
    I always get error message;
    500 Internal Server Error
    java.lang.NullPointerException     at hr.DataHandler.get_prj_num(DataHandler.java:446)     at _test__dropdown._jspService(_test__dropdown.java:68)     [/test_dropdown.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.javaI think request.getParameter() in second dropdown box can not read it from the first dropdown box.
    would you help me ? - code is the following, not everything because of space-
    ****datahandler class****
        public ResultSet get_prj_num(String job_title) throws SQLException {
          try {
            job_title = job_title.toUpperCase();
            getDBConnection();
            String jobquery = "begin ? := get_prj_num(String job_title); end;";
            CallableStatement callStmt = conn.prepareCall(jobquery);
            callStmt.registerOutParameter(1, OracleTypes.CURSOR);
            callStmt.execute();
            rset = (ResultSet)callStmt.getObject(1);
          } catch ( SQLException ex ) {
          logException( ex );
          return rset;
    ***function in database***
    FUNCTION GET_PRJ_NUM(st in VARCHAR2)
    RETURN PRJPKG_NUM.REF_CURSOR
    AS PRJNUM_CURSOR PRJPKG_NUM.REF_CURSOR;
    BEGIN
    OPEN PRJNUM_CURSOR FOR
    SELECT PROJECT_NUMBER FROM PROJECTS WHERE STATE_CODE =st;
    RETURN PRJNUM_CURSOR;
    END;
    ****jsp page a part of it -for space*****
    <%@ page language="java" import=" java.sql.ResultSet"%>
          <jsp:useBean id="empsbean" class="hr.DataHandler" scope="session"/>
           <%ResultSet rset = empsbean.get_prj();%>
        </h3><form action="insert_action.jsp ">
          <table cellspacing="2" cellpadding="3" border="1" width="70%">
            <tr>
              <td width="30%">
                <span class="bold">
                  <span class="bold">
                    <span class="bold">
                      <span class="bold">
                        JOB_TITLE
                      </span>
                    </span>
                  </span>
                </span>
              </td>
              <td width="70%">
                <select size="1" name="JOB_TITLE">
                  <%while (rset.next ())
        out.println("<option value=" + rset.getString("state_code") + ">" +
        rset.getString("state_code") + "</option> "  );
    empsbean.closeAll();
    %>
                </select>
              </td>
            </tr>
            <tr>
              <td width="30%">
                <span class="bold">
                  <span class="bold">
                    <span class="bold">
                      <span class="bold">
                        STATUS
                      </span>
                    </span>
                  </span>
                </span>
              </td>
              <td width="70%">
                <select size="1" name="prjnum_drop">
    <%ResultSet rset1;
    String job_title = request.getParameter("JOB_TITLE");
    // String job_title ="TN";
      rset1 = empsbean.get_prj_num(job_title);
    %>
                  <%while (rset1.next ())
        out.println("<option value=" + rset1.getString("project_number") + ">" +
        rset1.getString("project_number") + "</option> "  );
    empsbean.closeAll();%>Edited by: Jin on Oct 10, 2008 2:51 PM

    after debugging, I have one error now.
    500 Internal Server Error
    java.lang.NullPointerException     at _test__dropdown._jspService(_test__dropdown.java:70)     [/test_dropdown.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)java.lang.NullPointerException     at test_dropdown._jspService(_test__dropdown.java:70)-the error points at the following;
    String job_title = request.getParameter("JOB_TITLE");
    it seems the second dropdown couldn't get the value from the first dropdown selection.
    I wonder jdbc connection in the first dropdown still alive when the second dropdown list turns.
    is it easy to use Servlet with the two dependent dropdown list?
    thanks

  • Need help with dependent lists boxes with ADF.

    Hello,
    I am doing a project that use tree dependent list boxes.
    Ex. State---->
    College---->
    List of courses of the college chosen above----->
    The way this should work is when I select the state automatically I want it to change to the correspondent list of colleges of that state and after i choose the colleges I want to be able to get all the courses that are given in that college.
    To implement the first two list boxes I create tree views on JDeveloper and and using SelectOneChoice for both State and Colleges. In the binding editor I bind the first View with the second and then the second view with the third and at this point if I execute the first SelectOneChoice would give me all the state and the second SelectOneChoice would give me the list of all the colleges that exist.
    Now on the third view that I create a binding variable and i put a Where state=:TheBindingVariable on the query.
    Also I set the first SelectOneChoice the outoSubmit property to true, id to StateId and PartialTrigger property to CollegeId.
    On pageDef.xml in the bindings I create action form where I select the third view from Date Collection and select Action as ExecuteWithParams. And I set the value under the parameters section to #{bindings.state.inputValue}.
    Under executables still in pageDef.xml I create a invokeAction and I set binds = ExecuteWithParams.
    On first SelectOneChoice on the ChangeValueListener i create a new ManageBeans which generate me a java class and I create a new method as well to use it to change the binding variable on the second SelectOneChoice.
    Here is the method:
    public void Change_StateId(ValueChangeEvent valueChangeEvent) {
    String StateId;
    valueChangeEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
    FacesContext adi = FacesContext.getCurrentInstance();
    ValueBinding vb = adi.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer bc = (DCBindingContainer)vb.getValue(adi);
    if(valueChangeEvent.getNewValue().toString().equals("0")){
    StateId = "MA";
    OperationBinding opBindingCollegeLovIter = (OperationBinding) bc.get("ExecuteWithParams");
    opBindingCollegeLovIter.getParamsMap().put("TheState",StateId);
    opBindingCollegeLovIter.execute();
    }else{
    DCIteratorBinding statesLovIter = (DCIteratorBinding) bc.get("CollegeProvaView1Iterator");
    Row rw = statesLovIter.getRowAtRangeIndex(((Integer)valueChangeEvent.getNewValue()).intValue());
    StateId = (String) rw.getAttribute("State");
    OperationBinding opBindingCollegeLovIter = (OperationBinding) bc.get("ExecuteWithParams");
    opBindingCollegeLovIter.getParamsMap().put("TheState",StateId);
    opBindingCollegeLovIter.execute();
    I don't know what I have done wrong because I am new in this field and a little support would be really helpful.
    I am using JDeveloper 10.1.3.1.0 and Oracle SOA Suite 10.1.3.1.0.
    I would appreciate any help.
    Thanks a lot.

    user8116089 wrote:
    For some reason the first selectonechoice doesn't give me all the states that are in the database it gives me just the first 10.check the value of RangeSize for itarator in pageDef. in this case to show all items it must be set to -1
    Also there is a way to assign the first value of the first selectonechoice to null at the start.this is a problematic requirement since all items are bound to iterator and basically this should serve for navigation purpose so the first item is set as selected, but maybe some workaround exists...
    regards,
    Branislav

  • Combo Box not working in Search Form After migrating to Jdev11.1.2.1

    Hi,
    I developed my application using Jdev11.1.1.3 and its works fine. I migrated my application to jdev11.1.2.1. After migration when i run my application, in search form combo box displaying ArrayIndexOutOfBound Exception while searching through it. This exception is only throwing for Combo box and choice list. When I changed combo box to InputListOfValues and ComboBox with ListOfValues its working. Please help.

    Try this on jdev 11.1.1.3 if possible. If not, try everything with 11.1.2.1.
    1. Select Model project and invoke "Clean Model.jpr" (Menu->Build->Clean XXX). Do the same for View project.
    2. Delete all /classes/ folders from model and view projects
    3. Visit view project dependencies (under project properties->Libraries and classpath) and see if JDev is reporting any error there. Delete the errored dependency if any.
    now, follow this on 11.1.2.1
    4. Migrate (i.e. open the app in 11.1.2.1)
    5. Rebuild all.

  • Two related selectOneChoice components for search criteria

    Hi All,
    ADF/BC4J
    I have two related selectOneChoice components (master/detail) and I want to use them as search criteria. At startup both selectOneChoice should have <Not selected> option selected AND second (detail) selectOneChoice should contain ALL available options (for all parents). As someone selects any value in master selectOneChoice, detail selectOneChoice should filter detail values.
    Under Both selectoneChoice I have View Objects (not entities), so the example from Steve's Muench page isn't applicable.
    Can anyone tell me how to make such a page?
    kind regards,
    krzysiek

    Hi,
    you don't need entity objects to implement dependent list boxes. All you need is to create a dependency between the two VO. So either you create a VL between them or you use a bind variable that you populate in a ExecuteWithParams binding (method call in a managed bean upon list value change of the master list).
    Frank

  • Search form with multi-tab result

    Dear,
    I would like to create a search form with multiple items. These can be different select lists (dont know yet if one list is going to be parent of another list).
    If on the search form I press submit the result is used in the different tabs. (two page level tabs. THey can all have a different report.
    When I switch between the tabs I can still see the original search form with the original filled in values.
    Is this some kind of shared control or shared component like a navigation bar?
    I would appreciate your help.
    Kind regards,
    Nico

    Most probably your problem is different, but I remembered another (possibly similar) problem.
    A few months ago another guy had a problem related to PPR of content on a ShowDetailItem in a PanelTabbed. He had not set the whole ShowDetailItem as PPR target but he had set a PanelFormLayout inside the ShowDetailItem as a PPR target. The problem was workarounded by setting either the whole ShowDetailItem or the whole PanelTabbed as a PPR target. So if you have not set the whole ShowDetailItem as a PPR target of the "execute query" button (by using ShowDetailItem's "partialTriggers" attribute), please try what will happen if you set it.
    Dimitar

  • Enhancement reqest: Advanced Search form

    I would like to request another form wizard like all the great ones already there. A Advanced Search form wizard.
    Basically a form that asks for a bunch of query items like those found on any Advanced Search form and depending on which ones are non-blank, constructs a dynamic query and populates a SQL query region when the Search button is pressed.
    Thanks

    From what I can tell from each of the examplesthere
    is no option to specify any kind of compoundcriteria
    syntax for a single field, as I pointed out in my
    earlier post, e.g. where id=1 or id=2 and type=6and
    type=7. That kind of thing.Right, but (IMHO) your UI is approaching the problem
    too "literally" i.e. too much in terms of the
    underlying SQL. You are making the user literally
    think in terms of a SQL SELECT statement.I agree to some extent - it clearly looks like a query builder - but the UI provides an abstraction layer so the user doesn't have to worry about typing the underlying syntax correctly.
    And remember, this is a business application - not Google. In my experience users of business applications are pretty demanding when it comes to getting at their data. Not that I want to perpetuate bad designs on anyone. I just want to make sure the user has the tools they need. And they want field level searching.
    >
    P.S. I've already implemented a basic searchfunction
    at the top of each report page that let's the user
    enter a single value that will do an 'OR' againstall
    the fields in the view. It's just that the userRight, thats the way most search functions work. You
    type a keyword and the system does a full-text
    case-insensitive search for that keyword across a
    pre-determined set of columns.
    doesn't really have any control over which fieldsare
    tested against the value.Another way to approach this would be to put up a
    single search text field and list all the columns you
    want to search across as checkboxes. User can select
    the column(s) he wants the keyword to be searched
    in.
    Your example of multiple predicates on the same
    column is a little unusual, but
    where id=6 or id=7Unusual, perhaps..., until you get a request from someone that wants to find all the equipment with serial numbers between XYZ123456 and XYZ2345678. ;>)
    This can be implemented as a multi select list (or N
    separate text fields) where user can select/enter
    each value and you go and build the resulting SQL.I've thought of making the values select lists based on valid entries that exist in the table for a couple of cases where it might be appropriate - but I need to get basic function working first.
    >
    Just some ideas...
    ThanksThanks again for your thoughts. I have an example page on OTN that give the beginnings of my idea here: http://htmldb.oracle.com/pls/otn/f?p=36337:14 It's not fully functional yet but if you click the Search button it will throw the where clause in the text box at the bottom of the page. Let me know what you think if you get a chance.
    Earl

  • Is there a way to have a search form for the CRM database?

    I know there is a search form provided for the Web Apps. I can't seem to find how to create a search form for the CRM database. I have created a membership site, and also extended the CRM database with additional fields. I would like the users to be able to search on selected fields in the CRM database including the extended database fields. For example, I have a field called membership type in the extended database. I would like to be able to search on that in a search form. Is that possible?
    Thanks

    Sidney,
    Your input is very helpful to put me on the track to find a workaround. As I tried using Web App approach, I get into a road block that hopefully you can help throw some light on.
    This my scenerio: I created a Web App for holding the profile fields (called it Profile). I created a Page to display the Customer record (Names, usernames, email, etc, and I would also want to display the fields from the Profile Web App. I am at lost how to do that. Seems like I can only insert the web item list in that page but I actually want to display the Detall Layout instead of the List layout. To display the Detail Layout, I need to first manually choose the item before it will direct me to the Detail layout. I am trying to find a way to do this automatically based on the fact I have only one Profile web app item for each customer.
    The question is whether there is a way to pull up a specific Profile web app item based on the customer's id or something that link the two together, using javascript or whatever method. Is there a tag to gives me the customer record id? If I can get that id, I could insert that id into one of the fields in the Profile Web App during creation of profile. Perhaps I can then pull up the profile item based on this id.
    Thanks for all the help
    Steve

Maybe you are looking for

  • How to enabe RSS in Cisco enic using UCS?

    I need to enable RSS (receive-side scaling) on the enic interfaces in UCS. I followed the document at this link. However, all the interrupts are still being delivered on only one CPU. There are 8 CPU queues with 7 of them always empty. "ethtool -k" a

  • New After Effects CC 2015 Character Animator Feature

    Hi, the new After Effects CC 2015 character animator feature looks amazing. Is this compatible with Photoshop CS6 or would you have to use the Photoshop CC version?

  • Windows Fabric Warning messages and node failure

    Hi , We have a service bus farm with 3 servers and sql installed in separate alwaysOn Instance. we are seeing some warning messages in Event Viewer: failed to send message Activate to node d917cb318cf36c4ce0867df57f2b57:130630848896673695 with error

  • S_ALR_87012357 VAT   Re execution

    Hi, I have excecuted the report S_ALR_87012357 VAT  for output tax but failed due to errors. No postings were made. Now when i am trying to re excecute the report I am unable to do it. Is this report executed only once? We run this report once in a m

  • Can't import messages using Communication Centre

    I am trying to import messages to my phone using the Communicaiton Centre. However the 'Import' command is greyed out under messages view and only available under 'Contacts' view. The help file says: "Importing messages from a text file To import mes