Search Form Problem

Hi
I have a Form name BPRESTATARIAS with two blocks.
A block BUSCAR that has a text item BUSCAR.
And another block PRESTATARIAS with origin of data in the table PRESTATARIAS.
SQL> desc prestatarias
Name Null? Type
CODIGO_PRESTATARIA NOT NULL NUMBER(6)
NOMBRE_PRESTATARIA NOT NULL VARCHAR2(50)
The clause where of this block = NOMBRE_PRESTATARIA LIKE :BUSCAR.BUSCAR||'%'
In the WHEN-NEW-FORM-INSTANCE i have this code:
DECLARE
half_sec NUMBER(3):= 50;
timer_id TIMER;
BEGIN
timer_id := create_timer('key_timer',half_sec,repeat);
:global.txt := '';
END;
In the WHEN-TIMER-EXPIRED i have the following code:
DECLARE
Timer VARCHAR2(100);
BEGIN
timer := get_application_property(timer_name);
IF timer = 'key_timer' THEN
     IF :system.cursor_item = 'buscar.buscar' THEN     
     IF ltrim(rtrim(:global.txt)) <> ltrim(rtrim(:buscar.buscar))
     OR (ltrim(rtrim(:buscar.buscar)) is null and :global.txt is not null)
     OR (ltrim(rtrim(:buscar.buscar)) is not null and :global.txt is null) THEN
          :global.txt := ltrim(rtrim(:buscar.buscar));
          GO_BLOCK('prestatarias');
          EXECUTE_QUERY;     
          GO_BLOCK('buscar');
     END IF;
     END IF;
END IF;
END;
The forms work, but for example when BUSCAR.BUSCAR = 'MEDIC ', and a timer expires, BUSCAR.BUSCAR change to 'MEDIC';
Why?, how I suppress this problem?.
Thanks.

Forms strips trailing spaces on items when interacting with the database.
Regards,
Robin Zimmermann
Forms Product Management

Similar Messages

  • 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

  • Problem with search forms in master-detail structure

    According to JHeadstart error message i cant generate 2 search forms in one page, BUT i generated master table in one page and master form + detail table in another so WHY i cant put search forms for both tables?? They are on the different pages!
    How can i solve this problem?

    Sasha,
    The reason this is not allowed, is because when you use Layout Style table-form, the same UImodel is used for both the table and the form page, and each UImodel can have only one advancedSearch binding (which is also used for quick search). Each advancedSearch binding can be linked to only one iterator, and that is either the iterator of the master table or the iterator of the detail table.
    An enhancement request to remove this limitation is high on our wish-list, but didn't make it in the 10.1.2.1 release.
    You could try to make post-gen modifications to add an extra search. I have not tried it, but here is what I would do:
    - generate with search for master, and backup the generated pages and ui model
    - generate with search for detail, and backup the generated pages and ui model
    - merge the pages and ui models, renaming one of the advancedSearch bindings
    - for the page where the renamed binding should be use, make a subclass of JhsDataAction and override onQuickSearch and/or onAdvancedSearch, to use the other binding name
    Hope this helps,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • Not Able to put LOV in search form fields

    Hi
    I created the search form using Bindvariables.In my application i am using only JSF,ADF BC,trindad components(In Mobile apps,we have to use only trinidad comp's).
    I want search fields as LOv's .
    In AppModule,under view,ExecuteWithParams i have bindvariables.while dragging them i selected the selectonechoice ,in Edit List Binding Window,for base datasource i am giving one VO,and for list Data Source i am giving different VO .
    everithing is fine.but when i click 'ok' Button,it is giving th efollowing error.
    The selected target attribute has read-only access.please select an updateable attribute
    what is the Wrong i am doing?
    PLease anyone help me in figuring out my problem?
    I want to make the search fields as LOV in search form.so that user no need to enter the data in to them.simply can select the value from LOVand find out the results .
    Sailaja.

    what actulay is the problem.. i triied it , this is working fine.
    I guess just in the lov you have made make both the fields updatable
    Edited by: Rohit Hoon on Apr 23, 2009 2:13 AM

  • How to use Multiple Keywords in a Search Form?

    I'm currently using a bind variable on the view object to generate a search form where the user enters one keyword that is applied to the WHERE cause of the SQL query.
    The problem is I'm trying to implement a Google-type search, where the user can enter multiple keywords in a single text input area. I then want to parse out those keywords and search the database on each keyword (similar to a Google search.) Can someone please help me point me in the right direction as to where / how to code in the appropriate hooks to accomplish this?
    Example:
    (user input) Enter Search Keywords: keyword1 keyword2 keyword3.. keywordn
    database query:
    Select item from table where (desc like '%keyword1%') or .. (desc like '%keywordn%') or
    (category like '%keyword1%') or .. (category like '%keywordn%')

    Can't you parse what was entered and create a number of view criteria rows, then apply them? At that point, they would be 'OR'd together'.

  • SelectInputDate component in a search form - JDev 10.1.3.0.4

    Cheers to all of you buddies in this valley of tears, have a good day
    I have a table that contains a date column, and a search form to do "query by example" and its date field is a "selectInputDate" with its date chooser.
    The date column in the table is formatted as yyyy-MM-dd (assigned in the underlying BO).
    I assigned a "convertDateTime" with a pattern yyyy-MM-dd to the selectInputDate component.
    At this point, the page works correctly. I select a date and get the appropiate results.
    The problem rised when adding a validator to the "selectInputDate" component.
    I added a "validateDatatimeRange" validator and binded the Maximum and Minimum values to two java.util.Date fields (minDate and maxDate) defined in a session managed bean named depSessionBean. The binding was done using EL as #{depSessionBean.minDate} and #{depSessionBean.maxDate}. The effect is that the date chooser only enables dates within the range (good).
    The problem arises when I click on the "Execute" action button. All I get is a lovely error complaining about date conversions.
    The attached converter returns a String that is correctly used to query the data but the validator expects a java.util.Date (it does not accept String values).
    So, am I missing something? How can I get the converter and validator to work together?
    Thanks a heap for any help.
    A.Gurisatti
    This is the error I get when executing the query (2006-08-14 is the chosen date):
    500 Internal Server Error
    oracle.adfinternal.view.faces.convert.ConvertException: Could not convert instance:2006-08-14 of type:class java.lang.String into type:class java.util.Date
         at oracle.adfinternal.view.faces.convert.GenericConverterFactory.convert(GenericConverterFactory.java:189)
         at oracle.adfinternal.view.faces.validator.DateTimeRangeValidator.validate(DateTimeRangeValidator.java:27)
         at oracle.adf.view.faces.component.UIXEditableValue.validateValue(UIXEditableValue.java:378)
         at oracle.adf.view.faces.component.UIXEditableValue.validate(UIXEditableValue.java:206)
         at oracle.adf.view.faces.component.UIXEditableValue._executeValidate(UIXEditableValue.java:522)
         at oracle.adf.view.faces.component.UIXEditableValue.processValidators(UIXEditableValue.java:302)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at javax.faces.component.UIForm.processValidators(UIForm.java:170)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:912)
         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:342)
         at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    Frank,
    Thanks for your reply and yes I'm using BC (I allways forget that important piece of information).
    Unfortunatelly I still have a few doubts:
    - I suppose that assigning a pattern to a date column in a BO is for display purposes and in some cases to have the right conversions in where clauses. In this case, choosing yyyy-MM-dd (that is the default) is a coincidence and in this case, you are right it is superfluous. But suppose we use dd/MM/yyyy. In this case, the date will be rendered with this new pattern. Even more, I suppose that in a query by example, when building the where clause, JDev expects the given date to be a string with that same pattern (dd/MM/yyyy). So, we have the first conclusion: The selected date must be a String with the given pattern. That is why I assigned a converter to the selectInputDate component.
    I did some tests and concluded: The patterns in the BO and in the converter assigned to the selectInputDate component must match or the query won't work.
    The second step is to narrow the date range. The way I found to do it is by assigning a datetime validator to the selectInputDate component. This validator expects java.util.Date values for its min and max dates, and the date chooser works well (by enabling only dates between the given range).
    The problem rises when you submit the form. At validation time you have: a date expressed as a formatted String (needed for the query) and a validator expecting a java.util.Date to perform the validation. So, you get a casting error.
    All this is what I understood and concluded about the situation and, of course I could be completelly wrong.
    If my steps for configuring the search parameters are correct, there must be a way to do the String - Date casting and avoid the error.
    If my approach is wrong then there must be a correct approach for this kind of situation.
    Thanks a lot for your help,
    A. Gurisatti

  • HOW TO CREATE A KEYWORD SEARCH FORM

    Hi, I'm creating a image gallery and I'm about 90% complete. One of my  final objectives is to create a keyword search for my image gallery. I  have 4 fields in my DB, (id,image,description,keywords) I want to be  able to enter keywords into the text field  and the images with there  descriptions show up. I already have the  keywords in my mysql, I already know how to use mysql, I just need to learn how to add a search form that pulls keywords from my mysql. THIS DOES NOT REQUIRE ANY CODE so please do not respond with code. I just need a step by step on what type of form to insert, (dynamic text field or text field) what paramaters to pass etc. NO CODE, this whole thing can be done in design veiw.
    For this project I'm using Dreamweaver Cs5, I'm not really an  experienced coder I rely heavily on dreamweaver for my code, I just make  minor tweaks. So if anyone has an answer to my problem please break  down and simplify your answer I'm still a beginner. Thanks in advance.
    ps
    If anyone knows of any other video tutorials of this process please inform me, it would be greatly appreciated, thank you.(not php acedemies)

    This is helpfull but I'm still running in to some problems. I believe everything on my search page is correct, I think it's my results page thats giving me issues.  When I view my search page in firefox and type in a keyword in the text field, when the results page loads all I get is the field names of DB table (id,layouts,desription,key_words) instead of the actual data...??
    On my search page in the action box I have my results page "search_results.php". In the method box I have "GET".  On my "search_ruselts.php" page I created a recordset, selected all columns, and filtered "key_words". (im not sure if I filtered correctly) I placed this in a dynamic table. Where did I go wrong?
    this is my code if it helps any
    search page:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="get" action="search_results.php">
      <label for="textfield"></label>
      <input type="text" name="textfield" id="textfield" />
      <input type="submit" name="button" id="button" value="Submit" />
    </form>
    </body>
    </html>
    results page:
    <?php require_once('Connections/test_db.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $maxRows_Recordset1 = 10;
    $pageNum_Recordset1 = 0;
    if (isset($_GET['pageNum_Recordset1'])) {
      $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
    $colname_Recordset1 = "-1";
    if (isset($_GET['key_words'])) {
      $colname_Recordset1 = $_GET['key_words'];
    mysql_select_db($database_test_db, $test_db);
    $query_Recordset1 = sprintf("SELECT * FROM images2 WHERE key_words = %s ORDER BY id DESC", GetSQLValueString($colname_Recordset1, "text"));
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $test_db) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    if (isset($_GET['totalRows_Recordset1'])) {
      $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
    } else {
      $all_Recordset1 = mysql_query($query_Recordset1);
      $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
    $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
    $colname_Recordset2 = "-1";
    if (isset($_GET['id'])) {
      $colname_Recordset2 = $_GET['id'];
    mysql_select_db($database_test_db, $test_db);
    $query_Recordset2 = sprintf("SELECT * FROM images2 WHERE id = %s ORDER BY id DESC", GetSQLValueString($colname_Recordset2, "int"));
    $Recordset2 = mysql_query($query_Recordset2, $test_db) or die(mysql_error());
    $row_Recordset2 = mysql_fetch_assoc($Recordset2);
    $totalRows_Recordset2 = mysql_num_rows($Recordset2);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <table cellpadding="4" cellspacing="4">
      <tr>
        <td>id</td>
        <td>Layouts</td>
        <td>Descriptions</td>
        <td>key_words</td>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_Recordset1['id']; ?></td>
          <td><?php echo $row_Recordset1['Layouts']; ?></td>
          <td><?php echo $row_Recordset1['Descriptions']; ?></td>
          <td><?php echo $row_Recordset1['key_words']; ?></td>
        </tr>
        <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
    </table>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    mysql_free_result($Recordset2);
    ?>

  • ADF UIX Search Form - Is this a bug?

    I created a JDev 9.0.5.2 ADF UIX Search form from the component palette. I ran the page without making any changes. I chose the Find button which displayed the search criteria. I selected the delete button and then the create button, which created 2 blank records (possible bug?) in the search criteria table at the top. I selected one of the blank records and entered search criteria. I chose the submit button which changed the data in the search criteria table as it is supposed to do. I selected the other blank record, entered search criteria and submitted it. Again the data in the search criteria table was changed appropriately. I selected the delete button and the wrong record was deleted (bug?).
    Are these bugs?

    Hello,
    a similar sort of situation is created if you have a Read-only table on a page which drills down to an edit/create input form page. If you enable a create functionality you need to enable some way for the user to back out of the created record and clean up the newly created row. On the detail page (JobsEdit.do) i created a link to a custom event on the master page action (JobsView.do) like this:
    <button text="Cancel" destination="JobsView.do?event=cancelinput"/> In the Data Action class for the JobsView page i have a method defined as follows:
    public void onCancelinput(DataActionContext ctx)
        Row row = ctx.getBindingContainer().getApplicationModule().findViewObject("JobsView1").getCurrentRow();
        row.refresh(row.REFRESH_REMOVE_NEW_ROWS );
    }as a workaround, it sounds like you may need put some manual controls in place to tightly control any newly created rows which have/will not been used. I don't know if this will resolve the deleting wrong record problem...
    regards,
    Brenden

  • Simple Search Form

    I am having a really annoying problem with my single field search form. When I search for results I want it to load a page with a form with all the fields filled in.
    I have this method working on another page.
    The form is on member_search.php and the form field is name 'mid'. I have the form action set to member_search2.php which has the complete member profile form on it.
    I have a recordet on member_search2.php with the filter is mid = form varriable mid and have all the fields dynamic.
    But when I search it loads the member_search2.php with all fields blank.
    Any help is wonderful!
    Thanks,
    Nicole

    What is your form Method set to? If it's set to POST, form variable is correct, but if it's set to GET, you should use URL parameter as your filter.

  • 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

  • How to create search form in jsf telnet with auto submit?

    I am trying to create a simple search form on a jsf telnet page
    with jdeveloper 10.1.3 and and j2se version 1.4.2.
    The problem I am having is the example search form I have seen
    uses an execute command button, which I can't use on the telnet page.
    I would like to query the results upon entering the criteria, without the
    user pressing a button. This is because the page will used with a barcode
    scanner. I am attempting to use a valueChange listener on the input field, but
    I am unsure if this is the right approach. Any feedback is appreciated.
    Thanks

    In my application whenever I change a value or want to follow a commandLink, my page just refreshes and I end up with the old values. I have not been able to navigate in my application. I am using the arrows or tab to navigate in my page and press enter to submit.
    I have set the STATE_SAVING_METHOD to server, but this is not helping.
    I have a deadline that is closing in on me, can anyone hint me in the right direction?

  • Dates in ADF Search Form

    Hi,
    I have implemented a search form where i query the set of entries and display the results below in a table.
    The problem that i am facing is that when i query the set using the "Created by" column of my table i do not get any results. The date format in my database is in the form of dd-MMM-yy and i have set the control hint of the attribute in the entity but with no luck.
    Please someone help me.
    Thanks
    Antonis

    Can you double-check with a SQL example? Often create-date is something people populate with the SYSDATE or the current machine time that has both a date and a time component.
    I tried this test with the SCOTT schema:
    SQL> update emp set hiredate = to_date('17-NOV-1981 10:41:22','DD-MON-YYYY HH24:MI:SS') where empno = 7839;
    1 row updated.
    SQL> select empno, to_char(hiredate,'DD-MON-YYYY HH24:MI:SS') as hiredate from emp where empno in (7839, 7369);
         EMPNO HIREDATE
          7369 17-DEC-1980 00:00:00
          7839 17-NOV-1981 10:41:22If formatted as above at the SQL level to show the full HH24:MI:SS time component, do your created date values have all 00:00:00 for the time, or some non-zero time?
    If you try a query like:
    select count(*) from your_table where trunc(created_date) = created_datedo you get a count that is the same as all rows in the table, or some number that is less than all the rows?

  • ADF Swing Search form based on readonly VO

    Hello,
    Does somebody know how to use the JUNavigationBar search form, when it is binded to ViewObject, that is readonly?
    The problem is that the form begins readonly too...
    Thanks,
    Jordan

    Hi,
    you could create your own parameter form and pass the data to a method on the ApplicationModule that hen applied the ViewCriteria. Alternatively you add bind variables to the query and use a form based on the ExecuteWithParams operation
    Frank

  • ADF Search form inside a jsp page's panel page container

    I am going through the Oracle JDeveloper 10g for Forms & PL/SQL book and I got to page 391 where I need to drop a search form onto a jsp page set up with a panelpage. The form show up but when I go to delete the extra fields JDeveloper completely locks up. I am running JDeveloper version 10.1.3.3.0.4157. I tried reinstalling it and it still locks up. I tried going back a few steps and recreate the search form and it still locks up.
    Can anyone explain why it is locking up or how to delete the extra fields without locking up?

    I also tried selecting a field in the source file code window. Just selecting a field in any form or window locks up JDeveloper. My program worked find until I created a search form from a data set. I think it is a bug in the version of JDeveloper I have. I did a similar task in a previous version and it worked fine. I could select and delete fields with no problem.

  • Best way to store user-saved searches/forms

    Hello,
    in our project, we want to give to our users ability to save form fields values for later use. It will be named the fast OR saved searches.
    We have a relatively huge number of search forms, each one with specific fields. So I don't want, if possible, to use a distinct table for each form.
    The good and logic way to design the table for this purpose looks like :
    SAVED_USERS_FORMS (
    USER_ID NUMBER,
    -- corresponding user
    FORM_ID NUMBER,
    -- system wide unique form identificator (maybe varchar2 code rather than number?)
    SAVED_NAME VARCHAR2,
    -- name of the shorcut/saved form, by user
    FIELDS_VALUES ???????,
    -- saved fields key/values for PK (user, form, name) combination
    PRIMARY KEY (USER_ID, FORM_ID, SAVED_NAME)
    The hesitation here is : how to store the fields & values pairs?
    - XML field?
    - our custom text structure and formating representing something key => value
    - our custom serialized java object into a field
    I think that the EAV modelling technique approach can be a flexible way to achieve our goal, but as I read on the net there's an important set of downsides with this approach. But, this way, my table is something like:
    SAVED_USERS_FORMS (
    USER_ID NUMBER,
    FORM_ID NUMBER,
    SAVED_NAME VARCHAR2,
    FIELD_NAME VARCHAR2,
    FIELD_VALUE ????,
    -- saved field key/values for PK (user, form, name, field name) combination
    PRIMARY KEY (USER_ID, FORM_ID, SAVED_NAME, FIELD_NAME)
    So the new problem can be the field FIELD_VALUE type enforcement. Do we need to have a field for each data type, so validation complexity can increase dramatically...
    Do we need or is suggested to have in a way or another metadata tables describing supported form fields, datatypes, etc?
    Other things to take into account:
    * simple and scalable solution, heh, ye, please.
    * what happens if the form evolve over time? the final solution must not crash or cause some kind of inconsistencies.
    * ..... others ..... ?
    Other info: we're using Oracle Database 10g, JDEV, JSF, ADF, Business Components.
    thanks for any help or comments
    Bruno

    Hello,
    in our project, we want to give to our users ability to save form fields values for later use. It will be named the fast OR saved searches.
    We have a relatively huge number of search forms, each one with specific fields. So I don't want, if possible, to use a distinct table for each form.
    The good and logic way to design the table for this purpose looks like :
    SAVED_USERS_FORMS (
    USER_ID NUMBER,
    -- corresponding user
    FORM_ID NUMBER,
    -- system wide unique form identificator (maybe varchar2 code rather than number?)
    SAVED_NAME VARCHAR2,
    -- name of the shorcut/saved form, by user
    FIELDS_VALUES ???????,
    -- saved fields key/values for PK (user, form, name) combination
    PRIMARY KEY (USER_ID, FORM_ID, SAVED_NAME)
    The hesitation here is : how to store the fields & values pairs?
    - XML field?
    - our custom text structure and formating representing something key => value
    - our custom serialized java object into a field
    I think that the EAV modelling technique approach can be a flexible way to achieve our goal, but as I read on the net there's an important set of downsides with this approach. But, this way, my table is something like:
    SAVED_USERS_FORMS (
    USER_ID NUMBER,
    FORM_ID NUMBER,
    SAVED_NAME VARCHAR2,
    FIELD_NAME VARCHAR2,
    FIELD_VALUE ????,
    -- saved field key/values for PK (user, form, name, field name) combination
    PRIMARY KEY (USER_ID, FORM_ID, SAVED_NAME, FIELD_NAME)
    So the new problem can be the field FIELD_VALUE type enforcement. Do we need to have a field for each data type, so validation complexity can increase dramatically...
    Do we need or is suggested to have in a way or another metadata tables describing supported form fields, datatypes, etc?
    Other things to take into account:
    * simple and scalable solution, heh, ye, please.
    * what happens if the form evolve over time? the final solution must not crash or cause some kind of inconsistencies.
    * ..... others ..... ?
    Other info: we're using Oracle Database 10g, JDEV, JSF, ADF, Business Components.
    thanks for any help or comments
    Bruno

Maybe you are looking for