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

Similar Messages

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

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

  • 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

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

  • Viewing PDF files in IPM Search form and Package Search

    I recently released a PDF file into the Oracle IPM software, but can't view the document in either Search Form or Package Search. It shows a blank page, no document. Can someone point me to some documentation which might explain how to configure the IPM system to be able to view a stored PDF file rather than a Tiff file?

    I wish I could say it helped, but it did not.  I do not have Acrobat 6 or Acrobat 7. I have Adobe Reader 10.1.3.
    I did a "find" for acrobat and found a preference that i moved to the trash it case it was a holdover for when I had acrobat, then I did a restart and the problem is still there.

  • 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

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

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

  • 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

  • Help needed with search help with ina search help

    Hi all,
    i have a field fld1 (non primary key )and to the dataelement of that field a search help is assigned in table ztable1.
    That search help is referring to a table in which fld1 is primary key in ztable2.
    I have created another search help with all the fileds in ztable1 and iam using this search help in a selection screen returning another field say fld2.
    in this search help i have drill down for fld2, which in turn gives the fields of ztable2.
    This is working fine.
    i have created another search help with the fields of ztable1 but this time its its returning the value of fld1. for some reason in this search i am not able to see the drill downn for fld1 .
    can anyone tell me how to get the drill down even the import parameteris fld1
    Thanks

    hi,
    any suggestions on this
    thanks

  • "Updated" search bar with Bing search appeared in Tabs today & I can't get rid of it!

    PROBLEM SOLVED! This is so embarrassing, but here's what fixed it. I'll leave the question here in case others download the add-on and can't figure out why it's doing what it's doing, but if a mod wants to delete the question I won't mind.
    Anyhow, I right clicked on exactly the right spot on the bar and chose Delete, which brought up the add-on tab, which showed an add-on called "Default Tab," restarted Firefox, and now both behaviors are gone--no more search window in the tab bar, and no more search box in new tabs. I must have thought Default Tabs sounded cool, but didn't expect it to do what it did.
    <nowiki>********************************************************************************</nowiki>
    Sometime between Friday and this morning a new search box¬ appeared in Firefox that called itself the “Updated Search Bar” until I tried it the first time. I’d like to avoid resetting Firefox, but if that’s the only way to fix this I guess I’ll have to. All suggestions are welcome.
    The box looks much like the default search box except that it has a big orange button on the right saying "Search." It’s located in the tab bar, next to the last tab, taking up valuable real estate if I have more than 4 or 5 tabs open, which I often do. The default “search” is Bing, the other options are things like Facebook and Twitter, and it has no option to manage search engines. It doesn’t appear in my extensions or plugins, and I can’t find information about it anywhere.
    BTW, my old search box is still in the navigation bar, and although I haven’t been able to get rid of Bing for the “search” search, I’ve made DuckDuckGo the default by moving it to the top of the list.
    Thanks for reading!

    PROBLEM SOLVED (see above)
    Oh, and now if I open a new tab it has a Bing search bar. Grr!

  • After I search something with the search bar everything comes up small and I can not read what Mozilla has found.

    I type in anything in the google search box. When my results come up on my left they are so small I can not read them. once I click on one of them it pulls up the page and It is back to normal, but it is minimized in the search.

    Reset the page zoom on pages that cause problems.
    *<b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages

  • Multi step form with three tables

    Hi:
    I have a database with 3 tables. Table 1 has one-to-many
    relationship with two others. Infact in table 1 user should enter
    his basic info and details will be submited itno two other tables.
    Is there any easy way to make it with DW/colfusion?
    I know that session may help but it is needed that each page
    can submit information (if the user doesn't fill the last form them
    I may loose data with session)
    I thought of sending information to other page with form
    action="page.cfm" but my problem is I don't know how to submit
    information in the second form that the primary key of table one
    becoms the foreign key of the next page. Please please I really
    need this. I really need it.
    Thanks
    Benign

    Hi:
    Thanks for the reply. In fcat I have to put them in different
    pages because they have many many fields.
    Is there any easy way to do it?
    My project is about patients registration database. I am a
    medical doctor and know some about coldfusion and some about SQL. I
    am doing this project for the patient and free of charge and I can
    not hire any professional programmer. My research center has boght
    a Coldfusion Web server (Webserve.ca) and we are in hurry to
    register the patients and organize their data to manage their
    cancer problems or alarming them for future personal/familial
    follow ups.(purchasing the host was a problem then {because of the
    money shortage}but solved fortunately)
    The cancer information tables are about 10 tables and a
    parent table for patients general/personal information.
    I tried to build it with coldfusion/dreamweaver wizards but I
    have many problems. There is no coldfusion expert avaiable as I
    said (as you know there is a shortage of money in research centers)
    and the solution is something that the patients really need.
    It will be great if some one helps me. Surely the name of the
    this project savior (you are really a savior of many if you help)
    will be a part of the prject.
    Thanks
    Benign

  • 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

Maybe you are looking for