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

Similar Messages

  • UIX Search Form "difficult" question

    OK,
    Say you dragged and dropped UIX search form onto the page. When you start the page it will render the result table without specific where criteria set, ie SELECT * FROM TABLE;
    Questions:
    1) How to add default WHERE clause for the first time when the page opens ie I want to have result page something like SELECT * FROM TABLE WHERE PARAM='bla';
    2) Similar question but this time how to pass PARAM from some previous page?
    Please help

    1. Try setting an initial where clause on the viewObject that you used to construct the search form. You can do this in the BC4J editor (wizard) for your viewObject.
    2. you would have to write an event handler and programmatically set the where clause on your viewObject.

  • How To Build a Simple UIX Search Form

    Hi
    I am starting with ADF BC
    "I tried to run "How To Build a Simple UIX Search Form" sample but the error
    "query not found on action:/dataPage1" Could any one tell me where the problem is?

    I got the error when I press Query submit button, the application is running from page.uix as the sample

  • 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

  • Shay Shmeltzer : How To Build a Simple UIX Search Form

    Shay, I need your help here. I need to filter MessageChoice entries by doing setWhereClauseParam on the appropriate VO (The one that acts as a source for the LOV mode for MessageChoice). Say, this VO is in the 'root' level of AM_A.
    Everything from here (all VOs) are in AM_B.
    Say I am on page1.uix which has a readonly table and submit button. Let's say one of the table COLUMNS contains strings that I need to pass to the AM custom method (The one that will set where clause).
    So user selects the ROW and clicks submit. Somehow (how exactly?) string gets passed to data action (that I guess uses custom method, like the one in your example in AM_B). The page forwards to ANOTHER page2.uix. This page is input form with one field as MessageChoice. Now this is IMPORTANT. This message choice has a source driven by the VO that I wanted to set WHERE clause.
    I have been trying to do this for a week, tried all kinds of stuff but am never getting it to work.
    Please help.
    Rade

    ok, a little sample with the HR Schema.
    You are going to display the departments in the first screen, select a department and then use the row that you selected to set the where clause for a new view item that is based on EMP.
    So create a new view (call it queryEmp) that looks like this:
    SELECT Employees.FIRST_NAME,
    Employees.EMPLOYEE_ID,
    Employees.LAST_NAME,
    Employees.DEPARTMENT_ID
    FROM EMPLOYEES Employees
    WHERE DEPARTMENT_ID=:1
    Then add a method to your applciation module as follow:
      public void setMyWhere()
        ViewObject vo = this.findViewObject("queryEmp1");
        ViewObject vo_master = this.findViewObject("DepartmentsView1");
        System.out.println("valus is "+vo_master.getCurrentRow().getAttribute("DepartmentId"));
        vo.setWhereClauseParam(0,vo_master.getCurrentRow().getAttribute("DepartmentId"));
        vo.executeQuery();
      }Then the struts flow is from the first page that just shows the Departments and allows you to choose one (the radio button in the multi-row table does this for you).
    Then add a button that sends you to a dataaction. on this dataaction drag and drop the method you have defined (and made it a client method - setMyWhere)
    Then this method goes to a second UIX that shows the information from the Empquery view.
    Works for me.

  • BETWEEN ? AND ? for datefields in uix Search Form

    I tried to Search for a date Range using:
    between 'onedate' and 'anotherdate'
    but this doesn't really work. i always get all dates as a result!
    does anybody know how to work around?
    did anybody run into the same problem?

    I'd just like to mention, that the mentioned approach is vulnerable to SQL-Injection attacks, which can be quite harmful on oracle databases!
    You should add some validation logic to the setCondition method to filter out special characters, especially "'"

  • ADF UIX Messagechoice element with databinding in Search Page

    How can we use the Messagechoice element with databinding in a ADF UIX search page? The Messagechoice element needs both target and destination dataSources and returns the selectedIndex (0,1,2,3....) and not the actual value. Is there a way of retrieving the actual value from the dropdown Messagechoice list in a search page without using the selectedIndex?

    Arvind -
    You can use databinding by using the "childData" attribute in the contents tag. This will stamp out the data bound to childData as the options in the message choice. For example,
    <messageChoice name="myChoice" prompt="Choose a Language">
    <contents childData="${uix.data.data1.lang}">
    <option text="${uix.current.text}"/>
    </contents>
    </messageChoice>
    Matt Lee
    UIX Team

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

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

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

  • How To create ADF Search form in JDeveloper 11g 11.1.1.0.1

    Hi,
    I am using JDeveloper 11g 11.1.1.0.1 , in which i tried creating an ADF search form that has Find and Execute Buttons.
    I created the same ADF search form using JDeveloper 11g TP3 and TP4 wherein it works fine but not in JDeveloper 11g 11.1.1.0.1.
    Scenario....
    I dragged a read only view object on to the jspx page as ADF Search Form and dragged the same as Read only table.
    After doing this if i run the application the search functionality does not happen .
    ( I click on the find button and enter the condition and then click on the execute button. records does not get filtered based on that condition specified.)
    But when the same steps is done in 11g TP3 and TP4 the search functionalty works fine.
    Can someone suggest me what is the issue.
    Is this a bug in the new release.
    regards
    vinitha

    reply is in this id
    ADF Searchform with find and execute buttons in JDev 11.1.1.0.1 studio edi.

  • 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

  • Doubt in WebStyle search form in ADF

    Hi,
    I do have a search form as in the following url.
    http://www.oracle.com/technology/products/jdev/tips/muench/screencasts/threesearchpages/threesearchforms_partone.html?_template=/ocom/technology/content/print
    The 'SearchView' has three entity objects in it. One entity is the main table with a primary key. And the other two has the foreign key of the main table and it has multiple records for the same primary key of the main table. So now if I drag and drop this 'SearchView' as a adf search form, the result shows multiple results for the same primary key of the main table as it has multiple occurence in the other two tables.
    So in this scenario, is it possible for me to display the results only from the main table? That is I want to see only one result for the primary key. But at the same time I need other entity objects also in the search view.
    Or can you suggest me any other way to do this? Please help me.
    Thanks,
    Priya.S

    Jan and Steve,
    Thanks so much for the reply. But I am still confused with my case.
    There are three entities.
    1. Bill info (All main info with a request Id as a primary key, with the final status )
    2. Bill status history (Different status history for the same request id)
    3. Bill items (Different items to be billed for the same request id)
    My requirement is that I need to have a search page to find the requests using the request id and other criteria. The result(billInfoviewresult) is a adf table with the request ids which is given with a command link. So using the link, I can navigate to the actual request. This result page should have all the above three entities. i.e. a read and write table for the item entity with the old values and a adf creation form for the 'Status history' so that the user can change the status (the status should be inserted as a new row. The DB should have all the status history from 'new' to 'completed').Everything should be for that particular request id.
    I had a viewobject only for the bill info entity so that the result was a single occurence for a requestid. But I find difficulty in creating a status and item table as it always points to the first record in the data base. And when I manually change the data to set to this particular request, I do get null values. Because of this I wanted to add all these entities into a single viewobject. But getting multiple occurence for the same id in the result.
    Can you please give me any suggestion in building the correct viewobject to acheive this?
    Thanks,
    Priya

  • CANNOT USE "Advanced Custom Search Form For ADF"

    Hi,
    I have tried the application on this old post but it doesnt work on jdev 11g even after migrating.
    Can some body tell me whats wrong and / or post a working application here.
    Need to use this functionality urgently.
    the original post is here.
    http://my.opera.com/dominionspy/blog/2007/02/26/an-advanced-custom-search-form-for-adf
    Any help is really appreciated.

    Thanks for your reply.
    Could you tell me where can i find example implementations of the query model classes.
    they have mentioned it to be found in "For an example implementations of the different model classes for a query, see the classes located in the oracle.adfdemo.view.query.rich package of the ADF Faces sample application."
    Also where can i get the source code for this http://jdevadf.oracle.com/adf-richclient-demo/faces/components/query.jspx
    thanks in advance

  • 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

  • ADF UIX: LOV searchText contains wrong value (maybe it is a bug)

    I'm developing a WEB-application using ADF UIX.
    I'm using JDeveloper 9.0.5.2 build 1618.
    I've created a form with a messageLovInput field.
    If I type e.g. Veszprém into the input field the content of the searchText parameter seems wrong. The URL is http://bela:8988/szszr/_ui.uix?_t=fred&enc=UTF-8&_minWidth=750&_minHeight=550&configName=BaseUIPBCfg1&contextURI=/szszr&redirect=/szszr/telepulesekLOV.do&source=levCimTelepules&searchText=Veszpr%C3%A9m&event=lovFilter
    And the value of the searchText string in the lovFilter event is
    [0] 'V' 86
    [1] 'e' 101
    [2] 's' 115
    [3] 'z' 122
    [4] 'p' 112
    [5] 'r' 114
    [6] ' ' 65533
    The interesting thing is that the final letter (m) is missing from the string!
    If I write Veszprém into the search field of the listOfValue and I press the Go button I get the right value in searchText.
    The web.xml contains the following part:
    <filter>
    <filter-name>ADFBindingFilter</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    <init-param>
    <param-name>encoding</param-name>
    <param-value>UTF-8</param-value>
    <!--param-value>windows-1250</param-value-->
    </init-param>
    </filter>
    The encoding of the UIX pages is windows-1250.
    Any help is appreciated,
    Gábor

    repost

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

Maybe you are looking for

  • GL Open Item does not appear in F-03

    Hi Friends, I am trying to clear the GL open items thru F-03, while I see all the open items that appear in Line item display through FBL3N (total 25), out of them only 24 appear in F-03, I can not see the 25th item. I have checked the document in BS

  • How do I transfer contacts from my old iphone to my new one??

    I have found similar threads but they don't appear to have many answers. Would appreciate some assistance on this as I'm not much of a techie so am looking for pretty simple steps to follow. Thanks... Rob

  • Error while saving MIGO

    Dear Guru's While saving Goods movement (MIGO) in IDES server for SAP ECC 6.0, I am getting following error: "Please select complaince for Shipping instructions." Please let me know any config setting required or any thing missing out. Regards, Prash

  • How to enlarge picture on my hp office jet 6600 all in one printer

    how do i enlarge pictures from my hp office jet 6600 all in one printer

  • Quicktime VS ITunes

    I download alot of soundfiles...many are not songs but for music and sound design...I would like to doubleclick on a file and have Quicktime open it instead of ITUNES adding it to the ITUNES library...This way I can quickly go through files without h