Af:query prefill search fields on task flow enter

Hello.
What is given:
Bounded task flow A with shared data control scope. Task flow contains one page fragment with two components: <af:query> and <af:table>. Table takes data from read only view object B. <af:query> is bound to search criteria within B. Also there are several bind variables in B which are used in criteria.
Task flow A is used from other task flow via <af:region>.
What is needed:
When entering bounded task flow first time - show user empty search form and empty table.
When entering bounded task flow next time and user performed no search yet (just left task flow without hitting Search first time) - show user empty search form and empty table.
When entering bounded task flow next time and user performed some search - fill search form with latest entered values, show data in table that corresponds to search values.
What is the best/recommended approach for implementation of such functionality?
While debugging I can see on bounded task flow entry VO B contains latest bind variables from previous execution. But somehow they are not reflected in search form and are not applied when using Query Automatically View Criteria hint.
I am using JDeveloper 11.1.1.5

Hello Frank.
Thread you mentioned contains relevant info.
Thank you for help and quick response.
One difference I faced with thread's code is that I could not get view criteria using JUSearchBindingCustomizer.getViewCriteria. This method always returned instance of criteria without criteria rows at all. Thus saveState() was not working.
Instead, ViewObject.getViewCriteria("criteriaName") worked for me. Returned criteria in this case contained needed current row and filled criteria row attributes.

Similar Messages

  • Sql query w/search field, pagination issue

    I have a page with a query which uses a search field. I am able to scroll through to different pages of the results.
    How can I always make certain that the results returned start on pagination = 1. For example:
    I leave P10_SEARCH_FIELD = null and scroll to page 2 (item 11-20). I then do a search for 'VAN'. The results return, however rather than page 1 appearing, page 2 appears. Is there a way to reset pagination so that it will always show the first item?
    thanks

    never mind. in the branch I checked the reset pagination for this page and that did the trick.

  • Query with search field in CS5

    I have recently upgraded to CS5.  In CS3, I developed several pages where there was a form where the user entered on search parameter, executed the query using the form method get and the results were displayed on the same page in a recordset.
    In CS5, I have used the same concept to build a search page but for some reason, I cannot get the results to appear.  I have compared the CS5 to the CS3 code and cannot find any differences.  I have attached my php page.  If anyone has any ideas, I would appreciate it.  I suspect it is something simple but cannot determine what it is.
    Thanks.  George
    http://www.cfoclinic.org/admin/regusers.php 
    $colname_Record = "-1";
    if (isset($GET_['input_year'])) {
      $colname_Record = $GET_['input_year'];
    mysql_select_db($database_cfouser, $cfouser);
    $query_Record = sprintf("SELECT * FROM CFO_Registration WHERE YEAR = %s and active = 'Y' ORDER BY Reg_id", GetSQLValueString($colname_Record, "text"));
    $query_limit_Record = sprintf("%s LIMIT %d, %d", $query_Record, $startRow_Record, $maxRows_Record);
    $Record = mysql_query($query_limit_Record, $cfouser) or die(mysql_error());
    $row_Record = mysql_fetch_assoc($Record);
    if (isset($_GET['totalRows_Record'])) {
      $totalRows_Record = $_GET['totalRows_Record'];
    } else {
      $all_Record = mysql_query($query_Record);
      $totalRows_Record = mysql_num_rows($all_Record);
    $totalPages_Record = ceil($totalRows_Record/$maxRows_Record)-1;
    ?>
    --- note  code skips ahead to following
    <form action="" method="get" name="Search" class="black11b" id="Search">
      <p> </p>
      <table width="386" border="1" align="center" class="black14b" id="table1">
        <tr>
          <th width="162" height="39" scope="col"><p>
            <input type="submit" name="Search" id="Submit" value="Execute">
          </p>
            <p>
              <input type="reset" name="reset" id="reset" value="Reset">
            </p></th>
          <th width="208" scope="col"><input name="input_year" type="text" id="year" size="4" maxlength="4"> <label for="input_year">Clinic Year</label></th>
        </tr>
        </table>
      <br>
    </form>

    Gunter,
    Unfortunately, it did not work.  I am re-attaching my code.  In addition to your comment, I added the first line listed below.
    Do you have any other suggestions?
    Thanks.  George
    $editFormAction = $_SERVER['PHP_SELF'];
    $maxRows_Record = 10;
    $pageNum_Record = 0;
    if (isset($_GET['pageNum_Record'])) {
      $pageNum_Record = $_GET['pageNum_Record'];
    $startRow_Record = $pageNum_Record * $maxRows_Record;
    $colname_Record = "-1";
    if (isset($GET_['input_year'])) {
      $colname_Record = $GET_['input_year'];
    mysql_select_db($database_cfouser, $cfouser);
    $query_Record = sprintf("SELECT * FROM CFO_Registration WHERE YEAR = %s and active = 'Y' ORDER BY Reg_id", GetSQLValueString($colname_Record, "text"));
    $query_limit_Record = sprintf("%s LIMIT %d, %d", $query_Record, $startRow_Record, $maxRows_Record);
    $Record = mysql_query($query_limit_Record, $cfouser) or die(mysql_error());
    $row_Record = mysql_fetch_assoc($Record);
    if (isset($_GET['totalRows_Record'])) {
      $totalRows_Record = $_GET['totalRows_Record'];
    } else {
      $all_Record = mysql_query($query_Record);
      $totalRows_Record = mysql_num_rows($all_Record);
    $totalPages_Record = ceil($totalRows_Record/$maxRows_Record)-1;
    ?>
    <form action="<?php echo $editFormAction; ?> " method="get" name="Search" target="_self" class="black11b" id="Search">
      <p> </p>
      <table width="386" border="1" align="center" class="black14b" id="table1">
        <tr>
          <th width="162" height="39" scope="col"><p>
            <input type="submit" name="Search" id="Submit" value="Execute">
          </p>
            <p>
              <input type="reset" name="reset" id="reset" value="Reset">
            </p></th>
          <th width="208" scope="col"><input name="input_year" type="text" id="year" size="4" maxlength="4"> <label for="input_year">Clinic Year</label></th>
        </tr>
        </table>
      <br>
    </form>

  • Error in searching field value by pressing enter

    Hi all,
    I am able to get a pop up with the values of the field and select in that pop up to the main screen on pressing enter.
    But i get all the values of the column present in the table and not the one which i want to search. Also the main screen gives error message if the cursor is in the field on main page and works properly  if the cursor is not there in the field.
    Error is as follows:
    <b>BSP exception: Access to URL /sap(bD1lbiZjPTAwMQ==)/bc/bsp/sap/z_startingwith/POST is forbidden</b>
    Does it have anything to do with <form method = "POST">
    as the values from main screen are not passing to the next screen!!
    <b>Find.htm:</b> (Main screen)
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <script language="JavaScript" type="text/javascript">
    document.onkeydown = function(){
    if(window.event && window.event.keyCode == 13)
                  popUp=window.open('help.htm','_blank', 'Emp Details','width=100,height=300');
    </script>
    <htmlb:content design="design2003" >
      <htmlb:page title="Add Employee Details " >
        <htmlb:form action="POST" id = "form1">
          Empid:
          <htmlb:inputField id          = "partner"
                            showHelp    = "true"
                           submitOnEnter = "true"
                            value       = "<%= partner %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <b>Help.htm</b>
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="Test" >
        <htmlb:form id="my_window" >
          <%
      data TV_ITERATOR Type Ref To zcl_itr." - Iterator Function
      data iterator type ref to IF_HTMLB_TABLEVIEW_ITERATOR.
      create object tv_iterator exporting appl_cons = appl.
      iterator = tv_iterator.
          %>
          <htmlb:tableView id               = "pop"
                           width            = "200"
                           headerVisible    = "true"
                           design           = "alternating"
                           visibleRowCount  = "10"
                           fillUpEmptyRows  = "true"
                           selectionMode    = "SINGLESELECT"
                           selectedRowIndex = "<%= row_index %>"
                           onRowSelection   = "MyEventRowSelection"
                           showNoMatchText  = "true"
                           filter           = "server"
                           sort             = "server"
                           onHeaderClick    = "MyEventHeaderClick"
                           table            = "<%= details %>"
                           iterator         = "<%= iterator %>" >
          </htmlb:tableView>
          <%
      if partner is not initial.
          %>
          <htmlb:inputField id      = "checked"
                            visible = "True"
                            value   = "<%= partner %>" />
                <script for="checked" language="javascript" event="onLoad()">
                       opener.document.form1.partner.value = <%= partner %>;
                       window.self.close();
          </script>
          <%
      endif.
          %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <b>Oncreate:</b>
    select partner from zcrmm_buag into corresponding fields of table details.
    <b>OnInputProcessing:</b>
    DATA: IND TYPE I.
      DATA: TV TYPE REF TO CL_HTMLB_TABLEVIEW.
      DATA: EVENT1 TYPE REF TO CL_HTMLB_EVENT.
      EVENT1 = CL_HTMLB_MANAGER=>GET_EVENT( RUNTIME->SERVER->REQUEST ).
      TV ?= CL_HTMLB_MANAGER=>GET_DATA(
      REQUEST = RUNTIME->SERVER->REQUEST
      NAME = 'tableView'
      ID = 'pop' ).
      IF TV IS NOT INITIAL.
        DATA: TV_DATA TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW.
        TV_DATA = TV->DATA.
        IF TV_DATA->SELECTEDROWINDEX IS NOT INITIAL.
          FIELD-SYMBOLS: <row> LIKE LINE OF details.
        READ TABLE details INDEX tv_data->selectedrowindex ASSIGNING <row>.
    if <row> is assigned.
    partner = <row>-partner.
    endif.
        ENDIF.
      ENDIF.
    Any help is welcome.
    Regards,
    Rohit Khetarpal

    <i>actually when the pop up comes,the page on the back(i.e. Find.htm) shows error message as mentioned below..
    BSP exception: Access to URL /sap(bD1lbiZjPTAwMQ==)/bc/bsp/sap/z_startingwith/POST is forbidden</i>
    -->Remove "method="post" in FORM tag. I tested.
    <b>To pass the value from Find.htm to Help.htm</b> - see the below code
    <script language="JavaScript" type="text/javascript">
    document.onkeydown = function(){
    if(window.event && window.event.keyCode == 13)
    var val;
    val = document.getElementById("partner").value;
    * Here the VAL will have the value of query value(what user entered as Filter value) from Find.htm
    popUp=window.open('help.htm?partner'+val,'_blank', 'Emp Details','width=100,height=300');
    </script>
    <b>And also make the "Patner" in help.htm as "AUTO parameter.</b>
    Hope this will solve your peoblme.
    Raja T
    Message was edited by:
            Raja Thangamani

  • ADF Regions and Task Flows

    Hi,
    I'm attempting to create a search bar, that would be added to all of my pages in my application.
    I have created a fragment that has a comboBox, a text field, and a commandButton. These three things make up my search bar. Then I added the fragment to its own bounded task flow. I then added the task flow to one of my jspx's as a region.
    Ideally, I'd like to do that on every page.
    When the search commandButton is pressed on any page, I would like the user to be redirected to a 'search results' page (that is not a fragment). With the value selected in the choice list, and the value entered in the input Text, I would like to call an executeWithParams before entering the 'searchResults' page.
    I'm wondering how I would do this with task flows, considering I have my searchBar in a boundedTaskFlow, and my other pages are not. There is no 'call' to my Search Bar bounded task flow, it is just a region on all the pages.
    What can I do to navigate from my search Bar (in a region on all pages) to my search result page?
    Any help or guidance will be appreciated.
    Thanks,
    Joel

    That's a good point.
    I oversimplified my original explanation. I don't need the search bar in all pages, but many pages.
    I went back and forth between A) making multiple templates, or B) creating a facet for the search bar in my current template, where pages that use it can place the search bar fragment/bounded task flow.
    I was trying to go with option B.
    Which option is easiest/best?
    Thanks,
    Joel

  • How can I get a query in the search field to open in a new tab or new window from the current window?

    How can I get a query in the search field to open in a new tab or new window from the current window?

    If you are searching via the Search Bar on the Navigation Toolbar, this preference can be changed to have searches there open in a Tab.
    Type '''about:config''' in the Address Bar and hit Enter. Then answer "I'll be careful". Type this pref in the Search at the top.
    '''browser.search.openintab''' = double-click to toggle to '''true'''

  • Adding Saved Searches task flow to a Page Template

    I am trying to add the Spaces "Saved Searches" task flow to my custom page template. I have tried a few different approaches and none seem to be working.
    First, I tried simply dragging and dropping the task flow from JDeveloper's Resource Palette into my template. JDeveloper created added the following to my template source code:
    +<af:region value="#{bindings.allsavedsearches1.regionModel}" id="pt_r1"/>+
    After uploading the changes to Spaces, there seemed to be no change to the rendered template.
    Second, I tried to simply add the task flow to a page in my test space via composer. However, as soon as I click the "Add" button next to the Saved Searches task flow, the page goes blank (white screen of death) and the following message shows up in the spaces error logs:
    javax.servlet.ServletException: com.sun.el.parser.ParseException: Encountered "\'" at line 1, column 65.
    Finally, I looked at how the out of the box templates implement the saved searches functionality. It appears that the saved searches use a custom folder in the Default Navigation Model. I looked at the source in the Default Navigation Model and found the following node:
    +<customFolder factoryClass="oracle.webcenter.search.view.rc.SearchServiceContextFactory" id="savedSearchesFolder" visible="true">+
    +<attributes resourceBundle="oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle">+
    +<attribute attributeId="Description" isKey="true" resourceBundle="oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle" value="NAV_APPLICATIONS_CUST_FOLDER_SEARCHES.DESCRIPTION"/>+
    +<attribute attributeId="IconURI" value="/adf/webcenter/foldersavedsearches_qualifier.png"/>+
    +<attribute attributeId="Title" isKey="true" resourceBundle="oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle" value="NAV_APPLICATIONS_CUST_FOLDER_SEARCHES.TITLE"/>+
    +<attribute attributeId="WEBCENTER_SERVICE_ID" value="oracle.webcenter.search"/>+
    +</attributes>+
    +</customFolder>+
    I copied the entire node and put it in my navigation model. Upon rendering the template, I can see the new node in the navigation but when I click on it, nothing happens.
    Can someone please tell me if I am on the right track with any of these three approaches? Or where to look to diagnose the issues I am running into?
    Thanks,
    Joe

    UPDATE: I updated the "activation" property in the page def for the allsavedsearches task flow to be "deferred". Now I am getting an ADF popup menu with two menu items: "My Searches" and "Other Members" but clicking on the items does not trigger anything...
    Any thoughts? What additional information would be helpful for analyzing this issue?

  • Advance Search not working in Document Management Task Flow

    Hi,
    We are using Document management task flow to manage UCM content. The simple search works for us but the Advance search does not work. Does anyone know of any possible reason why this could happen. Any hint would be really appreciated.
    Thanks
    Salim

    Hi Srinath,
    Thanks for replying.
    So in my scenario when I try to search the content using the simple search which is present at the right hand top corner I get the search result properly. But when I try to search by clicking on the Advance link which gives me a option to search by Filename, Keywords and adding other filters, it always returns zero search results.
    Thanks
    Salim

  • Task Flow Return Listener not fire when FK association fields set manually

    Guys and Gals,
    I've spent two solid days on this and I'm not sure why my task flow return listener is not firing.
    I start by selecting a row in a table. I then click a "Convert" button which converts the Quote document into a Sales document. I then press Submit which commits the data and the task flow exits. At this point my task flow return listener should fire. It does not. This return listener would, in theory, refresh the visible Quotes table and update the selected Quote's status to "Closed".
    The Quote's "Closed" status is a transient attribute which is calculated by looking at the Sales' document Qty attribute. If the Quote Qty = Sales Qty, then the status is closed. This can be measured by utilizing an association where
    Sales' BaseRefDocId = Quotes' OrderId
    Sales' BaseRefRowId = Quotes' RowId
    Setting these two row attributes represent the association linking a Quote document row to a Sales document row.
            nvp.setAttribute("BaseRefDocId", baseRow.getAttribute("OrderId"));     // Take the Quote Id and put in the Sales' Id ref field
            nvp.setAttribute("BaseRefRowId", baseRow.getAttribute("Row_Id"));    // Take the Quote Row Id and put it in the Sales Row Id ref field
            targetRow.createAndInitRow(nvp);                                                    // Insert the new referenced row into the Sales' DocumentAfter two days of running tests, it is the code above that keeps the return listener from firing and the transient attribute from refreshing on the page. These fields are not mandatory, but are necessary for the Quotes status to change to closed. Simply leaving these lines of code out allows my task flow return listener to refresh correctly, albeit with an incorrect Quote status.
    My expression language statements, however, evaluate correctly irregardless of table refresh. If I refresh the table manually, the status will then display the correct value. All other methods of manipulating the table function correctly i.e. task flow return statements work.
    I'm pretty sure it has something to do with some kind of silent association / view link error blocking the task flow from firing behind the scenes.
    Does anyone have any ideas? Using JDev 11.1.2.1.0.
    Will

    Hi Frank,
    Yeah, I thought it was really weird as well. I banged my head up against the wall again today and finally managed to semi-fix the problem.
    The "Convert" table toolbar button has a "Disabled" attribute that I've been setting with something like #{bindings.QuoteIterator.currentRow == null}. If I take this out, everything works fine. However, if I put it in, the task flow will not return. What's screwy is that I have several of these "Quote" tables for other data collections such as Sales, Deliveries, Invoices, etc. About half of them fire a task flow return with the "Disabled" attribute set for the convert button, and the other half don't. They all return a task flow return if I just set "Disabled" to false.
    At three days and counting, this is really an issue I just don't get, and I'm not sure if I could reproduce the problem to submit it to support because everything appears just fine and I've been digging for days.

  • Defaulting search fields in af:query component

    I have a search popup with af:query and a result table. My requirement is to default some of the fields in af:query when the popup launches.
    Since i could not achieve this, i wrote a temporary work around which should be removed as soon as we find a permanent solution.
    Work around:
    1. Wrote a method showQBE() in the bean. Wrote the logic to default the QBE fields by manually iterating through the component binding.
    2. Call showQBE() in the visible property of the af:query so that this executed when the popup is invoked.
    public boolean showQBE(){
    RichQuery rq = this.getResourcePickerQBE(); // Bindning for QBE
    QueryDescriptor dq = rq.getValue();
    List children = rq.getChildren();
    Iterator childrenItr = children.iterator();
    while (childrenItr.hasNext()) {
    RichPanelGroupLayout rpcl = (RichPanelGroupLayout)childrenItr.next();
    Iterator rpclItr = rpcl.getChildren().iterator();
    while (rpclItr.hasNext()) {
    // RichPanelLabelAndMessage
    UIComponent rplm = (UIComponent)rpclItr.next();
    Iterator rplmItr = rplm.getChildren().iterator();
    while (rplmItr.hasNext()) {
    UIComponent comp = (UIComponent)rplmItr.next();
    Iterator compItr = comp.getChildren().iterator();
    while (compItr.hasNext()) {
    UIComponent comp1 = (UIComponent)compItr.next();
    String class2 = comp1.getClass().getSimpleName();
    if (class2.equals("RichInputText")) {
    RichInputText rit = (RichInputText)comp1;
    if ("value40".equals(rit.getId()) ||
    "value41".equals(rit.getId())) {
    rit.setValue("Bryan");
    } else if ("value50".equals(rit.getId()) ||
    "value51".equals(rit.getId())) {
    rit.setValue(ADFUtil.evaluateEL("Adams"));
    } else
    rit.setValue("");
    AdfFacesContext.getCurrentInstance().addPartialTarget(rit);
    Popup code:
    <af:popup id="resourceSearch1"
    popupFetchListener="#{backingBeanScope.TerritoryProfileBean.showParentTerrOwnerReportsForTerrTeamMember}"
    binding="#{backingBeanScope.TerritoryProfileBean.resourcePickerPopup}"
    popupCanceledListener="#{backingBeanScope.TerritoryProfileBean.cancelButtonListener}"
    contentDelivery="lazyUncached" childCreation="deferred">
    <af:dialog id="d20" type="none" title="#{salesterrmgmtterritoriesuiGenBundle}">
    <af:panelGroupLayout id="pgl191" layout="vertical">
    <af:panelHeader id="ph21" text=" ">
    <af:query id="qryId2" headerText="#{applcoreBundle.QUERY_SEARCH_HEADER_TEXT}" disclosed="true"
    value="#{bindings.ResourcePickerSearchQuery.queryDescriptor}"
    model="#{bindings.ResourcePickerSearchQuery.queryModel}"
    queryListener="#{backingBeanScope.TerritoryProfileBean.onSearchBtn}"
    saveQueryMode="hidden" resultComponentId="::t3"
    binding="#{backingBeanScope.TerritoryProfileBean.resourcePickerQBE}"
    visible ="#{backingBeanScope.TerritoryProfileBean.showQBE}"
    queryOperationListener="#{backingBeanScope.TerritoryProfileBean.queryOperationListener}"/>
    </af:panelHeader>
    <af:panelStretchLayout id="psl2" startWidth="50px"
    visible="#{backingBeanScope.TerritoryProfileBean.showSearchTable}">
    <f:facet name="bottom"/>
    <f:facet name="center">
    <af:table value="#{bindings.ResourcesPicker.collectionModel}"
    var="row"
    rows="#{bindings.ResourcesPicker.rangeSize}"
    emptyText="#{bindings.ResourcesPicker.viewable ? applcoreBundle.TABLE_EMPTY_TEXT_NO_ROWS_YET : applcoreBundle.TABLE_EMPTY_TEXT_ACCESS_DENIED}"
    fetchSize="#{bindings.ResourcesPicker.rangeSize}"
    rowBandingInterval="0"
    selectionListener="#{bindings.ResourcesPicker.collectionModel.makeCurrent}"
    rowSelection="multiple" id="t3"
    binding="#{backingBeanScope.TerritoryProfileBean.resourcePickerTable}"
    contentDelivery="immediate"
    columnSelection="multiple" autoHeightRows="10"
    summary="#{salesterrmgmtterritoriesuiBundle.THIS_TABLE_LISTS_THE_RESOURCES}">
    <af:column sortProperty="ResourceName" sortable="true"
    headerText="#{bindings.ResourcesPicker.hints.ResourceName.label}"
    id="c3" rowHeader="unstyled">
    <af:inputText value="#{row.bindings.ResourceName.inputValue}"
    label="#{bindings.ResourcesPicker.hints.ResourceName.label}"
    required="#{bindings.ResourcesPicker.hints.ResourceName.mandatory}"
    columns="#{bindings.ResourcesPicker.hints.ResourceName.displayWidth}"
    maximumLength="#{bindings.ResourcesPicker.hints.ResourceName.precision}"
    shortDesc="#{bindings.ResourcesPicker.hints.ResourceName.tooltip}"
    id="it6">
    <f:validator binding="#{row.bindings.ResourceName.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="PrimaryPhoneNumber" sortable="true"
    headerText="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.label}"
    id="c6">
    <af:inputText value="#{row.bindings.PrimaryPhoneNumber.inputValue}"
    label="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.label}"
    required="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.mandatory}"
    columns="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.displayWidth}"
    maximumLength="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.precision}"
    shortDesc="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.tooltip}"
    id="it10">
    <f:validator binding="#{row.bindings.PrimaryPhoneNumber.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="EmailAddress" sortable="true"
    headerText="#{bindings.ResourcesPicker.hints.EmailAddress.label}"
    id="c5">
    <af:inputText value="#{row.bindings.EmailAddress.inputValue}"
    label="#{bindings.ResourcesPicker.hints.EmailAddress.label}"
    required="#{bindings.ResourcesPicker.hints.EmailAddress.mandatory}"
    columns="#{bindings.ResourcesPicker.hints.EmailAddress.displayWidth}"
    maximumLength="#{bindings.ResourcesPicker.hints.EmailAddress.precision}"
    shortDesc="#{bindings.ResourcesPicker.hints.EmailAddress.tooltip}"
    id="it1">
    <f:validator binding="#{row.bindings.EmailAddress.validator}"/>
    </af:inputText>
    </af:column>
    </af:table>
    </f:facet>
    </af:panelStretchLayout>
    </af:panelGroupLayout>
    <f:facet name="buttonBar">
    <af:group id="g41">
    <af:commandButton actionListener="#{backingBeanScope.TerritoryProfileBean.onApplyOrDoneFromResourcePicker}"
    id="cmdDone1" immediate="true"
    partialSubmit="true"
    text="#{acrGenBundle}">
    <af:resetActionListener/>
    </af:commandButton>
    <af:commandButton id="cb5" actionListener="#{backingBeanScope.TerritoryProfileBean.cancelButtonListener}"
    text="#{acrGenBundle}"/>
    </af:group>
    </f:facet>
    </af:dialog>
    </af:popup>
    * I created the same thread ADFbc forum: http://myforums.oracle.com/jive3/thread.jspa?threadID=632625. Since there is no response posting here.
    Thanks

    The af:query is based on a View Criteria from a PVO, so i wrote the following code to set the value for the criteria items in the View criteria.
    I wrote it in view object's getter in the AMImpl.java
    public ResourcePickerVOImpl getResourcePicker(){
    ResourcePickerVOImpl vo = findViewObject("ResourcesPicker");
    ViewCriteria vc = (ViewCriteria)vo.getViewCriteria("ResourcePickerSearch");
    ViewCriteriaManager vm = vc.getViewCriteriaManager();
    Row rows[] = vc.getAllRowsInRange();
    for(Row row : rows){
    List<ViewCriteriaItem> cit = ((ViewCriteriaRow)row).getCriteriaItems();
    Iterator<ViewCriteriaItem> itr = cit.iterator();
    while(itr.hasNext()){
    ViewCriteriaItem vtr = itr.next();
    vtr.setValue("Mathew");
    System.out.println("Column name: " + vtr.getColumnName() + " Value: " + vtr.getValue());
    I changed the contextDelivery = immediate and childrenCreation = immediate since the popup was always showing empty search fields.
    After changing this property i am seeing a new issue -> First time when i open the popup nothing is shown in the search fields. Then from the subsequent times it is showing the values defaulted through the above code.
    Any idea!
    Edited by: [email protected] on Aug 26, 2010 4:30 AM

  • ADF query panel with table, adding new search fields dynamically

    I am a beginner very new to ADF world. I have a ADF query panel with table which has its source from a ViewCriteria. I need to add a new search field on the form dynamically based on the user's need. Assume I am using a Employee table and I have search "employee ID" as one field in the form, upon clicking a add button in the form I need to have a another "employee ID" field appears along with the already existing one.
    I tried to add the condition in ViewCriteria but do not know how to add it ?
    Could some one pls address how it can be approached ?

    User, please always tell us your jdev version.
    Well, this use case need some thinking to be done. What do you want to archive with adding a new query field to the panel? As you said you already have one field for employeeId and now, on a click on a button, you add another one. How would the resulting query work with the new field? Should it use 'and' to concatenate the query or should it use 'or'?
    I suggest that you use the ADF Riche Client Demo (http://jdevadf.oracle.com/adf-richclient-demo/faces/index.jspx) select the Query node and then select 'af:query'. This shows you what is possible otu of hte box using the af:query component. You can add fields to existing queries in advanced mode (e.g. use system query 5, which starts with an empty panel and allows you to add fields).
    Once you understand how this works you may come back with a more detailed use case description or you have found the solution already. Read the documentation on af:query along with trying otu the component.
    Timo

  • Exclude search field in query

    I create a ViewObject and define a view criteria in the view object.  In the view criteria, I add a few attributes.  These attributes are displayed in the Search Panel of a form.  For one of these search fields, I do not want it to be used in the query directly.  I need to get the entered value in this field and use the value in the query in a different way (I override executeQuery() and programmatically use the entered value).  Is there any way to exclude this search field to be used in query directly?
    Thanks.

    User, which jdev version do you use?
    Your approach is tricky. You should tweak the view criteria item clause (and leaf the original where clause as is). The framework calls the query at different points in time and once you changes the query in executeQuery you have no control what's going on after that.
    For a ssample how to tweak the viewcriteria item where clasue check out http://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4/
    Timo

  • Reg Message Lov Input Field In Query Region Search.

    Hi ,
    I have a issue to implement a Message Lov Input Field in Query Region Search(AutoCustomizationSearch).
    Please Help on this Issue
    Thanks & Regards
    Santhu

    Santhu ,
    Please Let us know the step you have followed to achieve this , and what is the error you are getting .
    Regards ,
    Keerthi

  • Use Task Flow Parameter as value to View query?

    I'm not sure if I have all the terminology exactly correct, but basically I have a task flow that allows the user to edit data in a table. I want to open that task flow, pass a parameter from another task flow, and use that parameter to determine the row which I want to edit. A fairly typical use case I would imagine.
    I can get the calling task flow to call the other task flow, but I cannot seem to determine what to set the value of the parameter in the called task flow to so that it executes the query and populates the page with the data from the row specified by that parameter.
    What is the best practice for this type of use case?

    duplicate: Re: Task flow parameter not available to set method call parameter

  • Query regarding refreshing grid data when returned from  a different Task Flow

    Hi Experts,
    JDEV version used is :11.1.1.5
    Our application uses dynamic UI shell tabs.
    Whenever the user logs in he is taken to the TAB A.
    From TAB A, user navigates to TAB B.
    The TAB B has a GRID B(table with some records ).
    Column A on TAB B has a hyperlink which when clicked will open up a different task flow in a different tab.
    The click on column A's hyperlink for different rows will open different TF's (based on some conditions).
    On clicking the hyperlink the _launchActivity(String title, String taskflowId, boolean newTab) method is used which open the TF in a new tab.
    User works on the TF( on a new tab) which was opened on click of the Column A's hyperlink and clicks on SAVE.
    On click of save  some operation is performed and removeCurrentTab method is called which will close the current tab and the control goes to first  tab(TAB A) .
    The problem:
    Once the user tries to click or come back to to TAB B the GRID B is never refreshed as we are unable to get the handle to refresh the grid data.
    Any suggestions would be highly appreciated.
    Thanks,
    Vikranth

    Hi Experts,
    JDEV version used is :11.1.1.5
    Our application uses dynamic UI shell tabs.
    Whenever the user logs in he is taken to the TAB A.
    From TAB A, user navigates to TAB B.
    The TAB B has a GRID B(table with some records ).
    Column A on TAB B has a hyperlink which when clicked will open up a different task flow in a different tab.
    The click on column A's hyperlink for different rows will open different TF's (based on some conditions).
    On clicking the hyperlink the _launchActivity(String title, String taskflowId, boolean newTab) method is used which open the TF in a new tab.
    User works on the TF( on a new tab) which was opened on click of the Column A's hyperlink and clicks on SAVE.
    On click of save  some operation is performed and removeCurrentTab method is called which will close the current tab and the control goes to first  tab(TAB A) .
    The problem:
    Once the user tries to click or come back to to TAB B the GRID B is never refreshed as we are unable to get the handle to refresh the grid data.
    Any suggestions would be highly appreciated.
    Thanks,
    Vikranth

Maybe you are looking for

  • Urgent: UDC Issue

    Hi All, My requirement is to extract the data from the legacy system i.e. Sybase 12.5 using UDC to SAP BI 7.0. We have established UDC connection, created view and BI 7.0 datasource. The user has all the access i.e. select, dbo access for the view. W

  • How to Free up Disk Space to export from  Final Cut Pro to QuickTime?

    I am using Final Cut Pro on a Mac OX10. When I try to export a Final Cut Pro project to QuickTime I get a message saying that I do not have enough disk space available. How do I free up additional disk space? (I am a little confused because I have al

  • Simple Action Script question

    This is probably a very basic question, but going through all my old Flash work didn't help me remember... I have my animation starting on the main stage with an image fading in. when that is done playing, at the end i want it to go to a movie clip o

  • Album not in itunes

    I am looking to purchase an album that is not in the iTunes store/library. How do I do that? Specifically: Phish-Hampton Comes Alive

  • Letters and Words missing after converting Word doc to pdf

    While using Adobe Acrobat 9 Pro to convert MS Word 2007 documents, letters or complete words will go missing.  This can happen in the middle of a sentence or at the beginning.   I have tried saving the document a couple of times and reconverting with