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 "'"

Similar Messages

  • 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

  • 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

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

  • Adding extra keywords to a search form

    Hi all,
    I have a search form, and it has a single search form, and a submit button.
    I can't figure out how to add some default keywords to it when it sends the info.
    This is what submits it:
    function formSubmit() {
    document.layout.submit();
    }I think what I need is something like this:
    var defaultKeyords = "default keywords here";
    document.layout.Keywords.value == (document.layout.Keywords.value + var defaultKeyords);
    document.layout.submit();
    }Can anyone give me any suggestions?
    Also, this form don't open in blank pages. When I put _blank in the hfre tag, it just give me a dud blank page? Does anyone know why?
    Anything would be appreciated! :)
    Cheers,
    Doug

    Isn't that Javascript you're asking about? This is a Java programming forum. Different language.

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

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

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

  • 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

  • Difference between BPC for MS and BPC for NW

    Hi All,
    I'm looking for some comparative analysis between BPC for MS and BPC for NW. Can you please give me your points or direct me to some link/material where I can find such stuff.
    Primarily I'm focusing on following two points:
    - How would the integration to SAP BI work (=differences between SAP BPC (NW) and SAP BPC (MS))?
    Could the same degree of automation be established?
    - I was told that  SAP BPC (MS) could be much faster implemented than the NW version. Is this really the case? Why?
    I would really appreciate your earliest response.
    Regards,
    Shabbar

    Hi,
    BPC for MS runs on Microsoft platform where as BPC for NW runs on SAP Netweaver.
    BPC for NW is tightly integrated with SAP BI all the dimensions and applications created in BPC NW can be seen in BI system in the form of Infoobject (dimensions) and Infocubes (applications).
    Performance depends on the complexity and scalability of the project. BPC for NW may undergo lots of improvements and developments in future versions.
    search SDN u will get help.
    Hope this helps
    Regards

  • Looking for help to develop data search form

    I have built a SQL Query that produces a data set of
    approximately 60,000 records which includes last_names,
    First_names, ID_numbers, Office_Names, Association_Names, and
    Member_Type fields. I have created a table that displays ten
    records at a time (in alphabetical order by last, first name). I
    want to (1) be able to search for a specific person in the dataset,
    and then once I find him/her, (2) be able to click on their
    ID_Number to select it and then go to another page with their
    ID_Number.
    I have not been able to find documentation on conducting
    searches of datasets. I am using classic ASP for server side
    scripting (though I am brand new at this).
    Any assistance you might be able to provide will be most
    gratefully appreciated.
    Thanks very much,
    Austin

    > Thank you Murray for your kind response. I am not
    entirely sure how to do
    > this. I suspect if I create a simple form with First and
    Last Name Fields
    > and
    > a Submit button and then POST the content of that form
    to a 'processor'
    > page
    > this is a good place to start???????
    That would surely work.
    > But I am not entirely sure how to insert those two items
    into the query on
    > the
    > processor page. Can you point me to any documentation or
    tutorial that
    > might
    > help me along with this?
    The search form posts its results to the processor page. The
    processor page
    retrieves those form values from the $_POST array, and uses
    them to
    formulate a new SQL SELECT statement, identical to the old
    one, except with
    the inclusion of the first and last name values from the
    $_POST array in the
    WHERE statement.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "AustinMoran" <[email protected]> wrote in
    message
    news:g914dr$rig$[email protected]..
    > Thank you Murray for your kind response. I am not
    entirely sure how to do
    > this. I suspect if I create a simple form with First and
    Last Name Fields
    > and
    > a Submit button and then POST the content of that form
    to a 'processor'
    > page
    > this is a good place to start???????
    >
    > But I am not entirely sure how to insert those two items
    into the query on
    > the
    > processor page. Can you point me to any documentation or
    tutorial that
    > might
    > help me along with this?
    >
    > I am sorry to be such a bother with this. I have a
    handful of books, but
    > none
    > of them touch on this and I am at a loss.
    >
    > Thanks again for your kind helpfulness.
    >
    > Austin
    >

  • Passing param from UIX Master-Deatil to Search form

    OK This seems to be little bit advanced question (at least for me).
    Say I have two UIX pages
    1. The first page (P1) contains Master Detail view of some table T1(ID1, ID2, ID3).
    2. The second page (P2) is UIX search phase created from from the view of T2(ID4,ID5,ID1)
    NOTE that ID1 is FK in T2 and is also PK in T1.
    Let's say that user picks some record in P1. Then the user clicks some submit button that should open P2. Now when the P2 renders it starts with 'Results' table (I hope everyone is familiar with UIX search pages).
    What I WANT is this:
    a) When P2 renders it should show only records where ID1 matches the one selected in P1, ie
    SELECT T2.ID4, T2.ID5, T2.ID1 FROM T2
    WHERE T2.ID1=T1.ID1 <-- this one is chosen from P1 and T1.
    b) When user now wants to create a search critera it has to have ID1 set to the one chosen from P1 T1.
    Hope the question is clear
    Please help!
    Rade

    This is how we recommend doing this:
    Create your data model so that the Detail is a child of Master. You might not have this set up correctly currently.
    Next, on the struts-config.xml diagram, create a Data Page and call it the MasterDataPage. Open the page and make sure to name it with the .uix extension. Select the Master Data Control and drag a read-only table onto the MasterDataPage. Drag and drop a uix submitButton component in the tableActions named child of your table.Set the event attribute on the submit button to "search". (don't create an event handler in the uix page yourself since this happens in struts).
    Draw your forward line from MasterDataPage to Search DataAction and call it "search". Create a DetailDataPage that comes off of SearchDataAction via "success", the default. Select the Detail model and drag it as a Read-only table onto that page.
    Now run the MasterDataPage. Select a row from the master table. Click the Submit button. This will take you to the Detail page and you will see the details for the row on the master that you selected.
    I hope this helps,
    Jeanne

  • How to Enable the LOV to query for partial user entries in af:query in an ADF search form

    Hi guys,
    I have faced one issue in creating a search form in ADF, in that I have used af:query and table region. and I have attached an lov vo to the base vo for the list of values and given UI hint as Input values with List of values. Now the issue is that I have given auto submit property as true so when I give some value suppose "Jan-14" and tab out it gives me all the correct results. but if I give like "Jan%" and then tab out then it does not give me any value. Could you kindly help me with some solution. I am using Jdev 11.1.1.6.0.
    Thanks,
    Tanmoy

    To enable the LOV to query for partial user entries, we can trap the 'LaunchPopupListener' event and add custom code there. Within the af:query component, just wondering how can we set property the 'LaunchPopupListener' for the search criteria ?

  • 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

  • How to create  search help for field in interactive adobe form

    HI
    I want to create search help for PERNR field in adobe form.
    how i can do it.
    Can any one giud me.
    Regards,
    Laxman Sankhla

    Hi Laxman,
    Please search SDN, there are lots of queries posted and solved earlier on this.
    especially there are step by step blogs.
    Cheers,
    Sai

  • Viewing PDF files in IPM Search form and Package Search

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

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

Maybe you are looking for

  • Preview PDF has a black and white checked background

    Hi All. I am trying to look at a map in pdf format which when opened in Preview has a grey and white checked background behind the black lines. this makes it impossible to read. i realize that I can open this in Acrobat Reader I guess but does anyone

  • Syncing issues for just one User

    I have one user who has an issue with the flags for messages that have been replied to or forwarded via ActiveSync intermittantley not updating back to Outlook or OWA. This has been the case with at least 5 different andriod devices, and several new

  • Dual Computer / Intel-PowerPC Setup

    Hello all, I'm thinking of buying an Intel Mac, but I don't want to get rid of my PowerPC computer, because of all the old applications that aren't Intel compatible. My questions are: 1) How well do Intel Macs emulate with Rosetta (how much performan

  • Trying to replay a CD containing songs that I burned

    I am very new at this, and I hope I am understood. I purchased songs from iTunes. I then tried to burn the songs to a CD., which I believe was accomplished. Then I tried to listen to the songs, after inserting the CD. What happens is: Another program

  • How I can set Leopard to use the color management mixture that Tiger uses?

    I have recently bought a new Mac with Leopard installed. My old Mac is running Tiger. Unfortunately the color management default settings in Leopard are different than in Tiger, so this is completely messing up my calibration. Can somebody please tel