Regarding date ranges in search criteria in oracle forms

I am using employee number,name, person type, and date ranges as search criteria in custom form.
when I enter employee number, hit the find button, I am getting the exact info in the result block.
Result block contains
employee name,personid,emp numb,org,start_date.
Similarly when I enter employee number,dept, I am getting correct values.
My question here is, when I enter date range. Iam unable to filter data.
When i enter START_DATE between nvl(:BLOCKNAME.START_DATE,'01-JAN-1901') and nvl(:BLOCKNAME.END_DATE,'31-DEC-4712') at where clause in the result block. I got data for the date range also.
if I give condition in the where clause, results are taking so much time when i search with employee name,number,dept,person type.
If i query with date, persormance is good.
Do u any know,how to prevent START_DATE between nvl(:BLOCKNAME.START_DATE,'01-JAN-1901') and nvl(:BLOCKNAME.END_DATE,'31-DEC-4712') when we search with employee name,number,dept,person type.

Initailly Ididnt given any code in the where clause of the result block. I got data in the result block when i search with employee name,number,person type,dept etc except date range.
If i give date range, irrespective of the date, getting all the data.
after that i added code to the where clause of the result block. Now i am getting data for everything.
like, when i query with employee name,number,even date range also.
My question here, performance.
when I query with date range, data is coming in expected time in the result block.
when i query with dept, taking much time since date range logic exist in the where clause of the result block.
I need to restrict the where clause only to the data ranges. Where clause should not necessary for employee number,name,person type dept search criteria
Tahnks for your reply

Similar Messages

  • How do I change the default "date range" when searching in the forums?

    Hi all,
    New to the SAP forums...  How do I change the default date range when searching in the forums?  I am getting a 90 day search by default.  Then I have to change it and search again.  Argh!
    Thanks,
    --Amy Smith

    Hi Amy,
    the default date range cannot be changed by users. It is defined system-wide.
    Regards,
    Michael

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

  • Trying to Add a DFF Search criteria in Oracle Receivables (Customers HTML)

    Hi Everyone,
    I am trying to add a DFF search criteria within the Customer's HTML page. I was able to add the new message box, but am not sure how to tie the box to attribute 3 which is in the Receivables Party information Descriptive flex field. Oracle ebs r12.1.2 is the system.
    Thanks for the help,
    -Mike

    Yes. It is possible through personalization.
    1. Create a criteria row under Advance Search
    2. Create a Result Item under advance table columns
    3. Create a Query Criteria Map based on the criteria and result item above.
    Please note the newly added criteria field should be in the Searchresults VO attributes list.
    Otherwise you need to extend the VO as well.
    Hope this helps.
    Regards,
    -Mukesh.

  • Regarding Date Range parameter

    hello,
    in purchase order, i want to pass date range parameter. For eg .
    I want to fetch data from 21/11/2011 to 25/11/2011
    how to pass parameter for this?? or do i need to create any formula??
    if yes then how/???????
    awaiting for soonest reply.

    hi,
    you need to do this in the Formula workshop.
    this formula {OPOR.DocDate} = {?DateRange}
    {OPOR.DocDate} - this is the PO DocDate
    {?DateRange} - this is what you have done in step #4 in my 1st post. in this example "DateRange" is the name of my Parameter.
    Quote from you post
    {OPOR.DocDate} = {?25/11/2011 to 30/11/2011} In this way should i write a formula??????
    change this {?25/11/2011 to 30/11/2011} to the name of your Parameter. refer to step #4.
    regards
    Fidel

  • Query regarding date range

    Hi I am using below query
    select count(*) from
    select M.Login_name
    , P.IND_PROD_LOGIN_ID
    , count(P.IND_PROD_LOGIN_ID) over (partition by P.IND_PROD_LOGIN_ID) cnt
    from CITI_USER_2.CCS_CUSTOMER_MAST M
    , CITI_USER_2.CCS_CUSTOMER_PROD P
    WHERE M.CUSTOMER_ID = P.CUSTOMER_ID and P.IND_PROD_LOGIN_ID not like '508127%'
    and to_char( M.CREATE_DATE , 'DD/MM/YYYY') = '16/10/2009'
    ) where cnt = 1
    and translate(Login_name,'x0123456789','x') is null
    and i got the result as 10 records but if i try to put in the date range as below
    select count(*) from
    select M.Login_name
    , P.IND_PROD_LOGIN_ID
    , count(P.IND_PROD_LOGIN_ID) over (partition by P.IND_PROD_LOGIN_ID) cnt
    from CITI_USER_2.CCS_CUSTOMER_MAST M
    , CITI_USER_2.CCS_CUSTOMER_PROD P
    WHERE M.CUSTOMER_ID = P.CUSTOMER_ID and P.IND_PROD_LOGIN_ID not like '508127%'
    and to_char( M.CREATE_DATE , 'DD/MM/YYYY') between '16/10/2009' and '17/10/2009'
    ) where cnt = 1
    and translate(Login_name,'x0123456789','x') is null
    i got the result as 653 records
    But it should be 10 only and when i check the records it is giving me wrong result.
    Can someone highlight how to use the range between the date, i need to check the number of records between the date range from 01/05/2009 to 01/10/2009

    this is all happening because of
    to_char( M.CREATE_DATE , 'DD/MM/YYYY') between '16/10/2009' and '17/10/2009'in your second query...
    that is doing a string comparision not date comparision...
    in string comparision
    check this example...
    select * from dual where '17/10/2009' > '16/10/2010'which will result a record but you might also observe that 17 th in 2009 is less than 16th of 2010. this is because here string comparision is ocurring.
    you need to change it as....
    M.CREATE_DATE between to_date('16/10/2009','DD/MM/YYYY') and to_date('17/10/2009','DD/MM/YYYY')so your query becomes...
    select count(*) from
    select M.Login_name
    , P.IND_PROD_LOGIN_ID
    , count(P.IND_PROD_LOGIN_ID) over (partition by P.IND_PROD_LOGIN_ID) cnt
    from CITI_USER_2.CCS_CUSTOMER_MAST M
    , CITI_USER_2.CCS_CUSTOMER_PROD P
    WHERE M.CUSTOMER_ID = P.CUSTOMER_ID and P.IND_PROD_LOGIN_ID not like '508127%'
    and M.CREATE_DATE between to_date('16/10/2009','DD/MM/YYYY') and to_date('17/10/2009','DD/MM/YYYY')
    ) where cnt = 1
    and translate(Login_name,'x0123456789','x') is null check your answer and get back.
    Ravi Kumar
    Edited by: ravikumar.sv on Oct 16, 2009 3:12 PM

  • Updating record in a data block based on view in oracle forms

    hi all ,
    We have two data blocks in our custom oracle form.The first data block is for search criteria provided with buttons 'GO' and 'ADD ROW' and the second data block is based on a view that fetches record when user clicks on GO based on the the criteria specified in the above block. The Below block contains one SAVE button too.
    We have a requirement when GO button is pressed and corresponding records are shown in the below block, user should be able to edit the record. Want to know how to make it editable?
    Help appreciated....!!!

    Your view is based on how many tables and does it include all NOT NULL fields from all tables?

  • Search wildcard in Oracle forms

    Hi ,
    I want to search in Oracle forms to values containing the % charachter.
    when using F11 and the % character Oracle returns all values, while I only want the query to returns the values containing the % character
    How can I do this. In SQL you can do this using escape characters but in Oracle forms this doesn't seem to work?
    Regards,
    Jan

    Hi;
    Please check below notes which could be helpful for your issue:
    How Is The WildCard (%) Used When Searching For A Customer In Oracle Customers Online (OCO) ? [ID 358724.1]
    Simple Search For Change Doesn't Work With '%' Wildcard Character [ID 948916.1]
    'Customer Smart Search' wildcards '%' And '%%' [ID 870178.1]
    How to Search Supplier Using % Wildcard in Requisitions Search page in Release 12? [ID 961374.1]
    How To Enable Use Of The Wildcard (% Or *) In Catalog Search? [ID 462017.1]
    Regard
    Helios

  • How to clear last search criteria in ADF form?

    I'm building an ADF form. This form uses JTextField controls. When I switch to Find Mode, I want to clear criteria of the last search that JDev remembered. I've tried to remove ActionListener of FIND button in Navigation Bar, then add a new ActionListener that I created to handle FIND action myself. But the results are not perfect as I expected: JDev still filled the last search criteria.
    For example, I searched with these criteria: Code = 'ABC', the next time enter Find Mode, I want this criteria to be cleared. My code is below:
    JButton btnFind = navApplication.getButton(navApplication.BUTTON_FIND);
    btnFind.removeActionListener(navApplication);
    btnFind.addActionListener(new ActionListener(){
           public void actionPerformed(ActionEvent e)
         navApplication.doAction(navApplication.BUTTON_FIND);
         if (navApplication.getModel().isFindMode())
              txtCode.setText("");
              txtName.setText("");
              txtAddress.setText("");
    });

    Hi,
    Could, some body please answer to my question I raised above.
    Cheers,
    Krishna.

  • How to include a date range in Search Help

    Hi All,
    I need to include a range for a date field in a Search help.
    That is I have to add From Field and To Field for the same field in the search help.
    Please advise.
    Regards.

    If you are going to add an entirely new field (not existing in the SAP standard search), try using EEWB and for the query on that field would be a modification to the Model access class.
    Regards,
    Shailaja

  • Search Button in Oracle forms

    hi, i want to use a search button which search employees data when employee_id was given. I don't know PLSql code written in "when button pressed" trigger.
    any help?

    go_block('employee_table');
    execute_query;
    create an item on the form where user will enter the employee_id,
    on the same form on another block show your employee_data to be shown on the screeen
    you will now set where clause on the block of employee_table as where employee_id=:employee_id1

  • Search and update oracle forms 10g

    hi
    i hav a table in database with name TBH.in that table there are 25 to 30 columns.its a material details table.
    by using add material form i insert all the details of the material in the table.2 colums have primary key(material id and material code).
    now iam making search and update form.on material code item i have WHEN-MOUSE-CLICK-TRIGGER and calling LOV and displaying
    record.
    but the problem is when iam making changes in some fields its giving error ...UNABLE TO INSERT....
    when i check display error its showing
    ORA-00001: unique constraint (DETA.SYS_C006356) violated..
    please help...
    FRM-40508:ORACLE error:unable to insert record.
    Edited by: 911229 on Mar 10, 2012 11:00 PM

    now iam making search and update form.on material code item i have WHEN-MOUSE-CLICK-TRIGGER and calling LOV and displaying record. Please show us your code! It sounds like you are adding the found record to your block manually rather than letting Forms query the record. Consquently, Forms will recognize this as a new record instead of an existing record and will attempt an INSERT rather than an UPDATE. Again, please show us your code so we can better help you.
    Craig...

  • How to default date on search criteria

    Hi,
    Working in jdev 11.1.1.3.0,ADF BC with rich faces.
    I need to default in my date filed in search criteria as sysdate - 90. Can any one suggest me how can we achive this.
    Edited by: user5802014 on Aug 10, 2010 8:31 AM

    It would be nice if you can say how it was resolved - then next time someone searches for a similar issue, they can find your solution.
    MWHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA
    sorry, I burst out laughing when I said that because hardly anyone ever searches before posting :D
    John

  • Date Ranges as Criteria

    I'm having an issue using a date range as a criteria in the Where clause of my SQL Statement. The SQL statement
    works with only one date but adding the second date results in [OLE/DB provider returned message: ORA-00936: missing expression.   Thanks in advance for your assistance...An example is shown below:
    SELECT T.Something, V.Something
    FROM BAAN.TTDPUR400100 T, BAAN.TTDPUR401100 V, BAAN.TTCCOM100100 U
    WHERE T.T$ORNO = V.T$ORNO AND T.T$OTBP = U.T$BPID AND (T.T$ODAT >=  ''05-APR-2004''AND T.T$ODAT =< ''10-APR-2004''                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Two things:
    1). There appears to be an extra opening bracket before the T.T$ODAT expression.
    2). Use single quotes around the date values and always use TO_DATE to explicitly convert the string value to DATE. Never rely on the automatic conversion to do the job.
    SELECT T.Something,
           V.Something
    FROM   BAAN.TTDPUR400100 T,
           BAAN.TTDPUR401100 V,
           BAAN.TTCCOM100100 U
    WHERE  T.T$ORNO = V.T$ORNO AND T.T$OTBP = U.T$BPID AND
           T.T$ODAT >= TO_DATE('05-APR-2004',
                               'DD-MON-YYYY') AND
           T.T$ODAT = < TO_DATE('10-APR-2004',
                                'DD-MON-YYYY')

  • Enhance B2B search criteria in order status screen.

    hi,
    we are tring to enhance search criteria in b2b sales order status screen. Need to add "Requested Delivery Date" to the search criteria for document. I was able to figure out some changes to be done in crmc_repdy. What is the accronym to be added for requested delivery date ?

    Hi Deepak,
    There is a order status screen in webshop(B2B). The search criteria includes certain parameters such as document type, creation date, status etc. I need to enhance it to accomodate one more search criteria i.e Requested Delivery Date. The XML file corresponding to the search criteria for B2B sales is generic-searchbackend-config.xml.
    Hope i made things a bit clear !
    Best regards,
    Rohit Sharma

Maybe you are looking for

  • Vendors Payment terms text

    Hi, I'm trying to catch the text from the payment terms of a purchase order, but i'm getting nothing... Can anyone please see the code and tell me what i'm i doing wrong? Thanks P.S. - this code is in the Code Initialization of the sap adobe forms in

  • Use "Additional File"

    Hello, I have attachments to a document e. g. a Word-file with one or two PDF-Attachments. I would like to use the function "additional file" for the Word-File. However, you can only see that there is a additional file, if you open details from the d

  • Raw material transfer

    hi all i have a query on transfer of raw material from one plant to another plant. my question is: when we transfer raw material from one plant to another plant in sales are we going to create delivery? can anyone please give the process flow for thi

  • Cycle Counts, import and use

    I see that when importing to the oItems destination via DTW, it is possible to bring in Cycle Count info. There is no sample or template CycleCount sheet, so what I know I gleaned just from looking at the mappable fields in DTW. Can anyone give me so

  • Net8 Configuration Assistant Problem?

    NCA installed on Win98 is ok with Oracle8.1.6 EE R2 on Win2000. But, NCA don't work with Oracle8.1.6 EE on Red Hat Linux 6.2. Followed are .ora files. Server(Linux): $ORACLE_HOME/network/admin/listener.ora LISTENER = (ADDRESS_LIST = (ADDRESS = (PROTO