Search form with af:pannelTabbed results issue

Hi all,
I've created a search page with an ADF Parameter Form based on an ExecuteWithParams operation.
Following [url http://blogs.oracle.com/shay/2010/12/combining_multiple_queries_and.html?goback=.gde_1002457_news_308820955]Shay Shmeltzer´s post, the search form queries two view objects simultaneously and the results are displayed in two tables (each in a different tab).
Everything goes fine if both tables are displayed in the same af:showDetailItem tab.
If each table is displayed in a different tab then executing the search works for the first tab (the one that's disclosed by default). But when clicking on the second tab, no results are displayed. I have to reexecute the search.
Any help will be appreciated.
Barbara
Version
ADF Business Components 11.1.1.56.60
Java(TM) Platform 1.6.0_18
Oracle IDE 11.1.1.3.37.56.60

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

Similar Messages

  • 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

  • Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotfo

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

  • Can I auto submit a WebApp Search form (with javascript) so the results show up automatically?

    Can I automatically submit a WebApp Search form (with javascript) so the results show up automatically?

    yes. I also interested in how to do it.

  • Search Form with UIX

    Hi all, is it possible in a search form with uix shows always the edit criteria with execute button and not when I click the find button?
    Please help!!!
    Matteo.

    I want show the edit criteria with results. Is it possible? How can I do this?
    Any suggestion will be appreciated.
    Thanks, matteo.

  • General search form with JQuery not working

    Hi,
    I tried to use jquery to submit a search form because I need some checking before submit. However,  it did not go to search results page, but went to home page instead.
    Here is my html:
    <form name="catsearchform96767" id="generalSearchForm" method="post">
        <p><label style="opacity: 1;" for="f-search">Search</label> <input type="text" name="CAT_Search" id="f-search" /> <button type="submit">GO</button></p>
    </form>
    Javascript:
    $('#generalSearchForm').submit(function(){
         $(this).attr('action', '/Default.aspx?SiteSearchID=1060&amp;ID=/search-results');
         $(this).unbind().submit();
         return false;                                         
    It does not work with JQuery. But when I moved form action url from jquery to html, it worked. Any ideas? Cheers.

    Hi David,
    Below is the complete code I have used to load the current user to the people picker in SharePoint 2013.
    $(document).ready(function(){
    SP.SOD.executeFunc('sp.js', 'SP.ClientContext', LoadCurrentUser);
    function LoadCurrentUser() {
    var context = SP.ClientContext.get_current();
    var siteColl = context.get_site();
    var web = siteColl.get_rootWeb();
    this._currentUser = web.get_currentUser();
    context.load(this._currentUser);
    context.executeQueryAsync(Function.createDelegate(this, SetPickersToCurrentUser), Function.createDelegate(this, LoadUserfailed));
    function LoadUserfailed() {
    alert('failed');
    function SetPickersToCurrentUser()
    var loginName = this._currentUser.get_title();
    SetPeoplePicker('Order Team', loginName);
    function SetPeoplePicker(fieldName, userAccountName) {
    var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + fieldName + "']");
    var peoplePickerEditor = peoplePickerDiv.find("[title='" + fieldName + "']");
    var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
    peoplePickerEditor.val(userAccountName);
    spPeoplePicker.AddUnresolvedUserFromEditor(true);
    Let me know if you have any questions. I will help you out!
    -Praveen.
    ASP.NET and SharePoint developer
    Blog: http://praveenbattula.blogspot.com
    Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you.

  • A search form with three search criterias

    I want to create a search form in Apex with three text boxes that would let us search with a lastName,firstName or a course Name. So i would have three text box regions where the user can enter any one of the search criterias and get a results
    the sql query that does the join is as
      select Student.Student_id, 
             Student.First_NAME, 
               Student.LAST_NAME,
             Student.Email1 as Primaryemail,
             Student.Email2 as SecondaryEmail,
             Student.Phone1 as MobileNumber, 
               Student.Phone2 as HomeNumber,
             Address.Street1 as Street ,
               Address.City as City,
               Address.State as State,
               Address.ZIP as Zip, 
               Course.PROVIDER_COURSE_ID as CourseID,
               Course.Course_Name as Course,
               Course.Credit_Hours as Credit_Hours,
               INSTITUTION.Name as InstName
      from Student Inner join Address on Student.ADDR_ID =  Address.ID
                   Inner Join Institution on Student.INST_ID = Institution.ID
                      Inner join Course on Course.INST_ID = Institution.IDand i want to incorporate my query into pl/sql example as below which is provide in apex examples as below where it searches for assignee and status. any ideas guys how i can do this or if there is simpler way to do this where the user can have three text boxes and search with their names or course name etc.
    declare
       c pls_integer := 0;
       l_detail varchar2(4000);
       i pls_integer;
       l pls_integer;
       l_max_rows    integer;
    begin
    l_max_rows := nvl(:P2_ROWS,10);
    if :P2_SEARCH is null
    and :P2_ASSIGNEE is null
    and :P2_STATUS is null then
       sys.htp.p('<p>'||
           apex_escape.html('Please enter at least one search condition.')||
           '</p>');
    else
      -- PUT YOUR QUERY HERE
      for c1 in (
      select id, project, task_name, start_date, end_date, status, assigned_to,
           cost, budget
      from EBA_DEMO_SEARCH_PROJECTS
      where (   instr(upper(assigned_to),upper(:P2_ASSIGNEE)) > 0
             or :P2_ASSIGNEE is null)
      and (   instr(upper(status),upper(:P2_STATUS)) > 0
           or :P2_STATUS is null)
      and (   instr(upper(project),upper(:P2_SEARCH)) > 0
           or instr(upper(task_name),upper(:P2_SEARCH)) > 0
           or instr(upper(status),upper(:P2_SEARCH)) > 0
           or instr(upper(assigned_to),upper(:P2_SEARCH)) > 0
           or :P2_SEARCH is null
      loop
        c := c + 1;
        if c = 1 then
           sys.htp.p('<ul class="sSearchResultsReport">');
        end if;
        sys.htp.p('<li>');
        sys.htp.prn('<span class="title">');
        -- DEFINE DRILL DOWN LINK HERE
        sys.htp.prn('<a href="'
          ||apex_util.prepare_url('f?p='||:APP_ID||':3:'||:APP_SESSION||
            ':::3:P3_ID:'||c1.id)||'">');
        -- ASSIGN PRIMAY ATTRIBUTE HERE, REFERENCE QUERY COLUMN
        l_detail := c1.project;
        i := instr(upper(l_detail),upper(:P2_SEARCH));
        if  i > 0 then
           l := length(:P2_SEARCH);
           l_detail := apex_escape.html(substr(l_detail,1,i-1))||
              '<span class="highlight">'||
              apex_escape.html(substr(l_detail,i,l))||'</span>'||
              apex_escape.html(substr(l_detail,i+l));
        end if;
        sys.htp.prn(l_detail);               
        sys.htp.prn('</a></span>');
        sys.htp.prn('<span class="description">');
        -- ASSIGN SECONDARY ATTRIBUTE HERE, REFERENCE QUERY COLUMN
        l_detail := c1.task_name;
        i := instr(upper(l_detail),upper(:P2_SEARCH));
        if  i > 0 then
           l := length(:P2_SEARCH);
           l_detail := apex_escape.html(substr(l_detail,1,i-1))||
              '<span class="highlight">'||
              apex_escape.html(substr(l_detail,i,l))||'</span>'||
              apex_escape.html(substr(l_detail,i+l));
        end if;
        sys.htp.prn(l_detail);
        sys.htp.prn('</span>');
        -- DEFINE ADDITIONAL QUERY COLUMNS FOR SEARCH BELOW
        sys.htp.p('<span class="type">');
        sys.htp.prn('Assigned to: ');
        sys.htp.prn(apex_escape.html(c1.assigned_to));
        sys.htp.prn('</span>');
        -- display additional column detail
        sys.htp.p('<br /><span class="type">');
        sys.htp.prn('Status: ');
        sys.htp.prn(apex_escape.html(c1.status));
        sys.htp.prn('</span>');
        sys.htp.prn('</li>');
        if c = l_max_rows then
           exit;
        end if;
      end loop;
      if c > 0 then
        sys.htp.p('</ul>');
        sys.htp.p('<p>'||c||' results found.</p>');
      else
        sys.htp.p('<p>No data found matching your search criteria.</p>');
      end if;
    end if;
    end;i tried to change the pl/sql to incorporate it into my apex application but i consistently get an error as pl/sql not defined.
    any help or a slight hint is very much appreciated
    thanks for looking and taking the time to read it through if u made it this far or even if u made it half way

    Thanks that worked and i got the procedure inside apex as well now i have to figure out how to make the search condition so that it will look for a like condition as well so the user can enter sam for samuel and still find the users
    declare
       c             pls_integer := 0;
       l_detail      varchar2(32767);
       i             pls_integer;
       l             pls_integer;
       l_max_rows    integer;
    begin
    l_max_rows := nvl(:P37_ROWS,10);
    if :P37_SEARCH is null
    and :P37_FirstName is null
    and :P37_LastName is null
    and :P37_Course_Name is null
    then
       sys.htp.p('<p>Please enter at least one search condition.</p>');
    else
      for c1 in (
    select
    /* SIMULATE A UNIQUE COLUMN */
             Student.Student_id || ',' || Course.Course_id as FAKE_PK,
    Student.Student_id , 
             Student.First_NAME as FirstName, 
               Student.LAST_NAME as LastName,
             Student.Email1 as Primaryemail,
             Student.Email2 as SecondaryEmail,
             Student.Phone1 as MobileNumber, 
               Student.Phone2 as HomeNumber,
             Address.Street1 as Street ,
               Address.City as City,
               Address.State as State,
               Address.ZIP as Zip, 
               Course.PROVIDER_COURSE_ID as CourseID,
               Course.Course_Name as Course_Name,
               Course.Credit_Hours as Credit_Hours,
               INSTITUTION.Name as InstName
      from Student left join Address on Student.ADDR_ID =  Address.ID
                   left Join Institution on Student.INST_ID = Institution.ID
                    left join Course on Course.INST_ID = Institution.ID
      where ( instr(upper(First_Name),upper(:P37_FirstName)) > 0
             or :P37_FirstName is null)
       and
              (instr(upper(Last_Name),upper(:P37_LastName)) > 0
             or :P37_LastName is null)
       and
                (instr(upper(Course_Name),upper(:P37_Course)) > 0
             or :P37_Course is null)
       and ( 
             instr(upper(First_Name),upper(:P37_SEARCH)) > 0
           or instr(upper(Last_Name),upper(:P37_SEARCH)) > 0
           or instr(upper(Course_Name),upper(:P37_SEARCH)) > 0
           or :P37_SEARCH is null
      order by Course_Name desc
      loop
        c := c + 1;
        if c = 1 then
           sys.htp.p('<ul class="sSearchResultsReport">');
        end if;
        sys.htp.p('<li>');
        l_detail := c1.Course_Name;
        i := instr(upper(l_detail),upper(:P37_SEARCH));
        if  i > 0 then
           l := length(:P37_SEARCH);
           l_detail := apex_escape.html(substr(l_detail,1,i-1))||
              '<span class="highlight">'||
              apex_escape.html(substr(l_detail,i,l))||'</span>'||
              apex_escape.html(substr(l_detail,i+l));
        end if;
        sys.htp.prn(l_detail);               
        sys.htp.prn('</a></span>');
        sys.htp.prn('<span class="description">');
        l_detail := c1.FirstName;
        i := instr(upper(l_detail),upper(:P37_SEARCH));
        if  i > 0 then
           l := length(:P37_SEARCH);
           l_detail := apex_escape.html(substr(l_detail,1,i-1))||
              '<span class="highlight">'||
              apex_escape.html(substr(l_detail,i,l))||'</span>'||
              apex_escape.html(substr(l_detail,i+l));
        end if;
        sys.htp.prn(l_detail);
        sys.htp.prn('</span>');
        sys.htp.prn('<span class="type">Incident: ');
        sys.htp.prn(apex_escape.html(c1.FirstName));
        sys.htp.prn('</span>');
        sys.htp.p('</li>');
        if c = l_max_rows then
           exit;
        end if;
      end loop;
      if c > 0 then
        sys.htp.p('</ul>');
        sys.htp.p('<p>'||c||' results found.</p>');
      else
        sys.htp.p('<p>No search results.</p>');
      end if;
    end if;
    end;  Edited by: user13133295 on Jun 4, 2013 1:59 PM

  • ADF 11g: How to implement search form with automatic substring search

    We have ADF search form and result table on the same page. Say, VO that this search form is based upon is famous Employee table from HR schema. What we need is a logic when user enters partial employee first name ie: 'jo'...it should return 'john', johnny, joanne etc...
    just like if user would use wildcard %
    What worked in 10g ADF was something like this:
            AccessServiceImpl svc = (AccessServiceImpl)JSFUtils.EL("#{data.AccessService.dataProvider}");
            BirthViewNewImpl b = svc.getBirthViewNew();
            ViewCriteria vc = b.getViewCriteria();
            String staffId = JSFUtils.getFromSession("staffId").toString();
            String studyId = JSFUtils.getFromSession("studyId").toString();
            if (vc != null) {
                System.out.print("BR " + studyId + " " + staffId + " ");
                AttributeDef[] defs = vc.getViewObject().getAttributeDefs();
                Iterator criteriaRows = vc.iterator();
                while (criteriaRows.hasNext()) {
                    ViewCriteriaRow r = (ViewCriteriaRow)criteriaRows.next();
                    if (r != null) {
                        for (int j = 0, numAttrs = defs.length; j < numAttrs; j++) {
                             if (JboTypeMap.isCharType(defs[j].getSQLType())) {
                                 String val = (String)r.getAttribute(j);
                                 String col = defs[j].getColumnName();
                                 if (val != null) {
                                     System.out.print(col + "=" + val + " ");//just to see what is going on
                 System.out.println("");
            b.searchRecords();//method in VO that executes query
             * This is now very wrong.... Very artificial way to eliminate % from the UI
             if (vc != null) {
                 AttributeDef[] defs = vc.getViewObject().getAttributeDefs();
                 Iterator criteriaRows = vc.iterator();
                 while (criteriaRows.hasNext()) {
                     ViewCriteriaRow r = (ViewCriteriaRow)criteriaRows.next();
                     if (r != null) {
                         for (int j = 0, numAttrs = defs.length; j < numAttrs; j++) {
                             if (JboTypeMap.isCharType(defs[j].getSQLType())) {
                                 String val = (String)r.getAttribute(j);
                                 String col = defs[j].getColumnName();
                                 if (val != null) {
                                     val = val.substring(0,val.length()-1);//return to normal
                                       System.out.println("Column: " + col);               
                                       System.out.println("Value: " + val);               
                                       r.setAttribute(j,val);
            return null;The problem is for some reason this does not quite work in 11g.
    What is the best practice to achieve this functionality in 11g?

    Or use a catsearch index or a contains index in your query. The will preform much better for large datasets as it doesn't do a full table scan.
    Google for Oracle Text ( http://www.google.de/search?q=%27oracle+text%27+catsearch&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:de:official&client=firefox-a )
    Timo

  • How to make a search form with required items?

    Hi
    I am using JDeveloper 11.1.1.2 and JHeadstart 11.1.1.2.29
    I want to make a Search-form for Searching Employees. I want to search for Last Name OR First Name OR Maximum Salary OR ( Combination ManagerID and DepartmentID). One of these is required.
    On the view object for Employees, I defined a view criteria for the search.
    In JHeadstart, I disable Quick Search and set Advanced Search to model-samePage and Advanced Search View Criteria to the view criteria I just defined.
    But now, I can also personalize the Advanced Search. How can I disable this?
    And is this the right way to create such a Search-form or do you have other suggestions?
    Regards,

    The model-based search is standard ADF functionality.
    Jheadstart simply generate the search component on the page. There are a lot of addiitonal properties on af:query that you can set that we do not expose through the Jheadstart application definition editor.
    You can create a custom template to set those additional properties.
    See the af:query tag doc for more info:
    http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_query.html
    Steven Davelaar,
    Jheadstart Team.

  • PLSQL for a search form -- based off of the issue tracker tutorial

    Here is the basic query that returns the results that I need: (works in toad)
    SELECT i.id,
    i.date_modified,
    i.last_name,
    i.first_name,
    i.email_address,
    i.job_title,
    c.br_disc as branch,
    d.loc_num as branch_num,
    i.change_agent,
    i.super_name as supervisor
    FROM SAP_USER_INFO i,
    SAP_BRANCH_LOCATION c,
    SAP_BRANCH_LOC_NUM d
    WHERE
    i.branch_name = c.ID
    and
    d.loc_num = 1444
    Now here is my plsql:
    DECLARE
    q VARCHAR2(32767); -- query
    w VARCHAR2(4000) ; -- where clause
    we VARCHAR2(1) := 'N'; -- identifies if where clause exists
    BEGIN
    q := 'select "i"."ID", '||
    ' "i"."LAST_NAME", '||
    ' "i"."FIRST_NAME", '||
    ' "i"."ORGANIZATION", '||
    ' "i"."JOB_TITLE", '||
    ' "i"."SUPER_NAME" as supervisor, '||
    ' "i"."SUPER_EMAIL", '||
    ' "i"."BRANCH_NAME" as BRANCH_NAME, '||
    ' "c"."BR_DISC" as "BRANCH", '||
    ' "d"."LOC_NUM" as "BRANCH_NUMBER" '||
    ' FROM "#OWNER#"."SAP_USER_INFO" "i", '||
    ' "#OWNER#"."SAP_BRANCH_LOCATION" "c", '||
    ' "#OWNER#"."SAP_BRANCH_LOC_NUM" "d" ';
    IF :P19_AGENT_NAME != '-1'
    THEN
    w := ' CHANGE_AGENT = :P19_AGENT_NAME ' ;
    we := 'Y';
    END IF;
    IF :P19_BRANCH_NUMBER != '-1'
    THEN
    IF we = 'Y'
    THEN
    w := w || ' AND BRANCH_NUMBER = :P19_BRANCH_NUMBER AND BRANCH_NAME = "c"."id" ';
    ELSE
    w := ' BRANCH_NAME = c.id AND BRANCH_NUMBER = :P19_BRANCH_NUMBER';
    we := 'Y';
    END IF;
    END IF;
    IF we = 'Y'
    THEN q := q || ' WHERE '|| w;
    END IF;
    RETURN q;
    END;
    Please forgive me as I'm very new to plsql. I keep getting errors on the where clause. Does anyone see a formatting problem jump out at them?
    failed to parse SQL query:
    ORA-00904: "c"."id": invalid identifier

    Larry,
    Thanks for the reply. That seemed to work but I have found that my query is not doing what i thought that it would. So i've included a sub select. Do you know off the top of your head how I should handle a "(". If you look at this line:
    ' FROM ( SELECT "i"."id", '||
    I don't know if I need to handle that ( in a diffrent way.
    This is what I'm at now:
    DECLARE
    q VARCHAR2(32767); -- query
    w VARCHAR2(4000) ; -- where clause
    we VARCHAR2(1) := 'N'; -- identifies if where clause exists
    BEGIN
    q := 'SELECT "id", '||
    ' "date_modified", '||
    ' "last_name", '||
    ' "first_name", '||
    ' "email_address", '||
    ' "job_title", '||
    ' "branch", '||
    ' "branch_num", '||
    ' "supervisor" '||
    ' FROM ( SELECT "i"."id", '||
    ' "i"."date_modified", '||
    ' "i"."last_name", '||
    ' "i"."first_name", '||
    ' "i"."email_address", '||
    ' "i"."job_title", '||
    ' "c"."BR_DISC" as "branch", '||
    ' "d"."LOC_NUM" as "branch_num", '||
    ' "i"."super_name" as "supervisor" '||
    ' FROM "SAP_USER_INFO" "i", '||
    ' "SAP_BRANCH_LOCATION" "c", '||
    ' "SAP_BRANCH_LOC_NUM" "d" '||
    ' WHERE "i"."BRANCH_NAME" = "c"."ID" '||
    ' AND "i"."BRANCH_NUMBER" = "d"."ID" ) ';
    IF :P20_AGENT_NAME != '-1'
    THEN
    w := ' CHANGE_AGENT = :P20_AGENT_NAME ' ;
    we := 'Y';
    END IF;
    IF :P20_BRANCH_NUMBER != '-1'
    THEN
    IF we = 'Y'
    THEN
    w := w || ' AND "d"."LOC_NUM" = :P20_BRANCH_NUMBER ';
    ELSE
    w := ' "d"."LOC_NUM" = :P20_BRANCH_NUMBER AND "i"."BRANCH_NAME" = "c"."ID"';
    we := 'Y';
    END IF;
    END IF;
    IF we = 'Y'
    THEN q := q || ' WHERE '|| w;
    END IF;
    RETURN q;
    END;
    The Error that returns is:
    1 error has occurred
    Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00904: "i"."super_name": invalid identifier
    Message was edited by:
    Mike.R

  • Custom search form and custom results

    Hi, everyone!
    My problem is that I have to search for custom items with custom fields (attributes). So I have to create my own search form with necessary fields. Than the solution may be to call the portal30.wwsbr_search_api.submit_search procedure, but it renders it's own HTML result with advanced search form. That doesn't suit me. Searching for alternative API, I found portal30.wwv_searchdb.search function. I tried to use it, but in any case it fails with exception and error message "ORA-01403: no data found". From the previous messages I've discovered that there is custom search portlet in 9.0.2. But is it possible to solve my problem without these new features?
    Thank you for your answers ;)
    yk
    P.S. Sorry for my English...

    Yuriy,
    I'm sorry but the portal30.wwv_searchdb.search api is not one of the public apis. There is no simple out of the box way to address your issue with release 1 of Oracle9iAS Portal (you'll have to wait for release 2 for that), but you could do some post processing of the HTML that gets returned from the search results screen and present that to your users. While it would take a little work it would probably give you the functionality you desire.
    You would create a custom search screen, and have the submission call our api with the users values. Then process the results of that call (an HTML page) inside a procedure to finally present your own view of the data.
    Good luck,
    Rich

  • Problems with custom search form in adf

    Hi,
    I am using JDeveloper 11.1.2.4. please can you help with this issue?
    I've created a custom search form with the help from this link.
    Jdeveloper,Oracle ADF &amp;amp; Java: Implementing custom search form in ADF programmatically (Without using af:query)
    I've created two bind variables SkuBind & ImperfectBind and a View Criteria.
    My problem is when I press Search button, it does not filter based on values of the bind variables in the View Criteria.
    I rightly get bind variable values in the System output though
    Skubind = 1000
    Imperfectbind = N
    but there is no where clause
    where clause = null
    public void SearchOddShoes(ActionEvent actionEvent) {
    AppModuleImpl am = (AppModuleImpl)resolvElDC("AppModuleDataControl");
    ViewObject oddShoeVo = am.getRtnOddShoesVO1();
    oddShoeVo.setNamedWhereClauseParam("SkuBind", skuPgBind.getValue());
    oddShoeVo.setNamedWhereClauseParam("ImperfectBind", imperfectPgBind.getValue());
    System.out.print("Named Skubind = " + oddShoeVo.getNamedWhereClauseParam("SkuBind") +"\n");
    System.out.print("Named Imperfectbind = " + oddShoeVo.getNamedWhereClauseParam("ImperfectBind") +"\n");
    System.out.print("where clause = " + oddShoeVo.getWhereClause()+"\n");
    System.out.print("where clause params= " + oddShoeVo.getWhereClauseParams()+"\n");
    System.out.print("Sql is " + oddShoeVo.getQuery()+"\n");
    oddShoeVo.executeQuery();
    public Object resolvElDC(String data) {
               FacesContext fc = FacesContext.getCurrentInstance();
               Application app = fc.getApplication();
               ExpressionFactory elFactory = app.getExpressionFactory();
               ELContext elContext = fc.getELContext();
               ValueExpression valueExp =
                       elFactory.createValueExpression(elContext, "#{data." + data + ".dataProvider}", Object.class);
               return valueExp.getValue(elContext);
    thanks

    Not clear what part of the code doesn't work. Assuming that you did check that the code you wrote executed
    the problem may be the following.
    You need to add partial trigger on the destination component.
    Add ...
    oddShoeVo.executeQuery();
    AdfFacesContext.getCurrentInstance().addPartialTarget(HERE_THE_BIND_NAME_OF_YOUR_TABLE);
    Also I don't see that you acctually use View Criteria. There are specific way to apply View Criteria programatically and I don't see that you use it.
    The simpliest way is just to change the VO query to embed bind variables into the query
    E.G.
    select 1
    from dual
    where some_column= :P_PARAM1

  • Reg - Search Form for a VO with group by clause

    Hi,
    I have a Bar graph that displays data based on the Query below.
    SELECT STATUS.STATUS_ID AS STATUSID,STATUS.STATUS,COUNT(SR.SERVICEREQUEST_ID) AS SRCOUNT
    FROM SERVICE_REQUEST SR ,SERVICEREQUESTSTATUS STATUS
    WHERE SR.STATUS_ID = STATUS.STATUS_ID
    GROUP BY STATUS.STATUS_ID,STATUS.STATUS,SR.STATUS_ID
    It displays the count of SRs against a particular status.
    Now I need to add a search form to this graph with customer and date range.
    So we need to add the line below to the where clause.
    "SR.CUSTOMER_ID = :customerId AND SR.REQUESTED_ON BETWEEN :fromDate and :toDate"
    But the columns SR.CUSTOMER_ID, SR.REQUESTED_ON also need to be added to the select clause to create the View criteria for search panel.
    The two columns should also need to be added to the group by clause if we are to add them in the select clause.
    This would not produce the expected results.
    How do I create a search form with the criterias applied only at the where clause.Please help.
    With Regards,
    Guna

    The [url http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17483/oracle/jbo/server/ViewObjectImpl.html]ViewObjectImpl has methods for doing this programmatically (setQuery, defineNamedWhereClauseParam, setNamedWhereClauseParam) that you can use to manipulate the query, the bind variables expected, and the values for the binds.
    John

  • Case-insensitive Search with Search Form

    I am using a Search Form with a UIX Page. One of the issue that need to be resolved is to be able to do case-insensitive search for text information stored in some database columns. Please advise me how to implement case_insensitive search with JDeveloper's Search Form.
    Thanks in advance,

    Hi Qian,
    This article (below) by Steve Muench explains how you can customize Query by example behaviour of ADF BCs and if you really want, how to create your own ViewCriteriaAdapter (but you don't have to go quite that far - luckily :) ).
    http://radio.weblogs.com/0118231/2005/02/10.html#a492
    Here is what I did. I implemented the following method in my base view object class (MyBaseViewObject). Note that this code is based on a piece of code that Steve posted on his blog (http://radio.weblogs.com/0118231/stories/2003/07/11/implementingAViewCriteriaAdapterToCustomizeQueryByExampleFunctionality.html); originally an example about creating your own ViewCriteriaAdapter.
    Since applyViewCriteria(oracle.jbo.ViewCriteria) is used by the query-by-example mechanism you're able to "intercept" the ViewCriteria on "it's way in". After that the standard ViewCriteria does it's job as ususal and generated the where clause when required.
    public void applyViewCriteria(ViewCriteria vc)
         if( null == vc || vc.size() == 0 ) super.applyViewCriteria(vc);
         ViewCriteriaRow criteriaRow = (ViewCriteriaRow)vc.first();
         StructureDef def = criteriaRow.getStructureDef();
         AttributeDef[] attrs = def.getAttributeDefs();
         System.out.println(getClass().getName() + ": applyViewCriteria()");
         boolean bFirst = true;
         do{
           if(vc.hasNext() && !bFirst) criteriaRow = (ViewCriteriaRow)vc.next();
           criteriaRow.setUpperColumns(true);
           for (int j = 0, attrCt = attrs.length; j < attrCt; j++)
             String criteriaAttrVal = ((String)criteriaRow.getAttribute(j));
             if (criteriaAttrVal != null && !criteriaAttrVal.equals("") && !JboTypeMap.isNumericType(attrs[j].getSQLType()))
              criteriaRow.setAttribute(j,criteriaAttrVal.toUpperCase());
           bFirst=false;
         }while(vc.hasNext());
         super.applyViewCriteria(vc);
    NOTE that doing this makes all your views case insensitive (to vc search) you may want to implement more functionality in your base view object to set whether a view is in case insensitive mode or not.
    ALSO that flag will not be passivated (if I remember correctly - someone correct me if I'm wrong) so you'll have to add that flag to the passivated data.
    Cheers!
    Sacha

  • Jdev 10.1.13 EA1 - search form (BC + ADF faces) with date field

    Did anyone tried to make a simple search form with BC,( just draging view form control palette to faces page?)
    Because when i did it and tried to search by one date field (for example orderDate) i got exception:
    oracle.adfinternal.view.faces.convert.ConvertException: Could not convert instance:Wed Sep 07 00:00:00 CEST 2005 of type:class java.util.Date into type:class java.lang.String
    Is it a bug?
    I tried to use converDateTime component but it haven't fixed the problem.
    Bart.

    Hi,
    Business Components doesn't perform type conversion. This is the problem I see. Basicaly the expected format is String
    Could not convert instance:Wed Sep 07 00:00:00 CEST 2005 of type:class java.util.Date into type:class java.lang.String
    Is you date field really a date field ?
    Frank

Maybe you are looking for

  • "Not using a pattern recognized by the GSA table invalidation mechanism" warning (many-to-many items relationships)

    Hello. I'm getting such warnings on server startup: 12:57:33,241 WARN  [StoreRepository] Warning - table: store_user appears in item descriptors: store and user but not using a pattern recognized by the GSA table invalidation mechanism.  Cached value

  • Summary Report with 4 Dimensions and 5 Facts

    Hello OBIEE Czars: I have a problem. I am trying to make a summary report with 4 Dimensions and 5 Facts. Out of that only 2 Dimensions are Confirmed. Now when I try to bring in all the facts, I get view display error. I searched forum for similar iss

  • Not able to print

    PRINTER WILL NOT PRINT  HP OFFICEJET 6500 Wireless All-In-One Printer Two issues really....   Scanner not recognized and when I go to print, the printer acts as if it is printing and no black ink or text appears.    If I switch to color I get somethi

  • Spry Tabbed Panels- Open link on click

    I am completely new to Dreamweaver and web design in general so please bear with me. I have created a tab menu using Spry Tabbed Panels but dont know how to make it so once a tab has been clicked an html file (ex. tab1.html which is saved on my compu

  • HOME BUTTON WILL NOT WORK

    Home button suddenly stopped working....what do I do???