Like Operator is not working

Hi have a table BACKLOG where i have a column called item_number
I have made report on this table and i have included all item_number. Now i have to create another set of reports where i have to exclude records on basis of item_number.
For this i have made a static lov which is having values like SERVICE,SAMPLE,EBV
The item_number is db contains SERVICE,SAMPLE,EBV in them. Examples are
SERVICE WFR SEN
SERVICE NRE SEN
SAMPLE NRE SEN
SAMPLE WFR SEN
EBV NRE SEN
EBV WFR SEN
In my report i am using the like operator as
and a.item_number like '%:P2_ITEM_NUMBER%'
[/CODE]
I have used the :P2_ITEM_NUMBER because i have a select list in the report page.
Apart of it i want one more query to exclude the selected value of :P2_ITEM_NUMBER from report
Thanks in advance
Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Hi
Well for a start, you are doing some very strange conversions there. For example...
and to_char(a.msd, 'MM/DD/YYYY') != '11/11/2030'
and to_char(a.msd, 'MM/DD/YYYY') != '10/10/2030'If a.msd is a date then you should e converting on the other side ie.
and a.msd != TO_DATE('11/11/2030', 'MM/DD/YYYY')
and a.msd != TO_DATE('10/10/2030', 'MM/DD/YYYY')Also, you may want to take into consideration nothing being input in :P2_ITEM_NUMBER like this...
AND INSTR(a.item_number,NVL(:P2_ITEM_NUMBER,a.item_number)) > 0Is item number actually a number or char field? If it's a number, you want to explicitly convert it to a string for using INSTR like this...
AND INSTR(TO_CHAR(a.item_number),NVL(TO_CHAR(:P2_ITEM_NUMBER),TO_CHAR(a.item_number))) > 0?
Cheers
Ben

Similar Messages

  • LIKE operator is not working in SQL Query in XML file

    Hi Gurus,
    LIKE operator is not working in SQL query in XML template.
    I am creating a PDF report in ADF using Jdeveloper10g. The XML template is as follows
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <dataTemplate name="catalogDataTemplate" description="Magazine
    Catalog" defaultPackage="" Version="1.0">
    <parameters>
    <parameter name="id" dataType="number" />
    <parameter name="ename" dataType="character" />
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[
       SELECT ename, empno, job, mgr from EMP where deptno=:id and ename LIKE :ename || '%']]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="EmployeeInfo" source="Q1">
    <element name="EmployeeName" value="ename" />
    <element name="EMPNO" value="empno" />
    <element name="JOB" value="job"/>
    <element name="MANAGER" value="mgr" />
    </group>
    </dataStructure>
    </dataTemplate>
    if i pass the parameter value of :ename from UI, it doesn't filter. But if I give ename = :ename it retrieves the data. Can anyone help me why LIKE operator doesn't work here?
    Appreciate your help,
    Shyamal
    email: [email protected]

    Hi
    Well for a start, you are doing some very strange conversions there. For example...
    and to_char(a.msd, 'MM/DD/YYYY') != '11/11/2030'
    and to_char(a.msd, 'MM/DD/YYYY') != '10/10/2030'If a.msd is a date then you should e converting on the other side ie.
    and a.msd != TO_DATE('11/11/2030', 'MM/DD/YYYY')
    and a.msd != TO_DATE('10/10/2030', 'MM/DD/YYYY')Also, you may want to take into consideration nothing being input in :P2_ITEM_NUMBER like this...
    AND INSTR(a.item_number,NVL(:P2_ITEM_NUMBER,a.item_number)) > 0Is item number actually a number or char field? If it's a number, you want to explicitly convert it to a string for using INSTR like this...
    AND INSTR(TO_CHAR(a.item_number),NVL(TO_CHAR(:P2_ITEM_NUMBER),TO_CHAR(a.item_number))) > 0?
    Cheers
    Ben

  • Delete operation is not working to delete selected row from ADF table

    Hi All,
    We are working on jdev 11.1.1.5.3. We have one ADF table as shown below. My requirement is to delete a selected row from table, but it is deleting the first row only.
    <af:table value="#{bindings.EventCalendarVO.collectionModel}" var="row"
    rows="#{bindings.EventCalendarVO.rangeSize}"
    emptyText="#{bindings.EventCalendarVO.viewable ? applcoreBundle.TABLE_EMPTY_TEXT_NO_ROWS_YET : applcoreBundle.TABLE_EMPTY_TEXT_ACCESS_DENIED}"
    fetchSize="#{bindings.EventCalendarVO.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.EventCalendarVO.collectionModel.selectedRow}"
    selectionListener="#{bindings.EventCalendarVO.collectionModel.makeCurrent}"
    rowSelection="single" id="t2" partialTriggers="::ctb1 ::ctb3"
    >
    To perform delete operation i have one delete button.
    <af:commandToolbarButton
    text="Delete"
    disabled="#{!bindings.Delete.enabled}"
    id="ctb3" accessKey="d"
    actionListener="#{AddNewEventBean. *deleteCurrentRow* }"/>
    As normal delete operation is not working i am using programatic approach from bean method. This approach works with jdev 11.1.1.5.0 but fails on ver 11.1.1.5.3
    public void deleteCurrentRow (ActionEvent actionEvent) *{*               DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcItteratorBindings =
    bindings.findIteratorBinding("EventCalendarVOIterator");
    // Get an object representing the table and what may be selected within it
    ViewObject eventCalVO = dcItteratorBindings.getViewObject();
    // Remove selected row
    eventCalVO.removeCurrentRow();
    it is removing first row from table still. Main problem is not giving the selected row as current row. Any one point out where is the mistake?
    We have tried the below code as well in deleteCurrentRow() method
    RowKeySet rowKeySet = (RowKeySet)this.getT1().getSelectedRowKeys();
    CollectionModel cm = (CollectionModel)this.getT1().ggetValue();
    for (Object facesTreeRowKey : rowKeySet) {
    cm.setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)cm.getRowData();
    rowData.getRow().remove();
    The same behavior still.
    Thanks in advance.
    Rechin
    Edited by: 900997 on Mar 7, 2012 3:56 AM
    Edited by: 900997 on Mar 7, 2012 4:01 AM
    Edited by: 900997 on Mar 7, 2012 4:03 AM

    JDev 11.1.1.5.3 sounds like you are using oracle apps as this not a normal jdev version.
    as it works in 11.1.1.5.0 you probably hit a bug which you should file with support.oracle.com...
    Somehow you get the first row instead of the current row (i guess). You should debug your code and make sure you get the current selected row in your bean code and not the first row.
    This might be a problem with the bean scope too. Do you have the button (or table) inside a region? Wich scope does the bean have?
    Anyway you can try to remove the iterator row you get
    public void deleteCurrentRow (ActionEvent actionEvent) { DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcItteratorBindings =
    bindings.findIteratorBinding("EventCalendarVOIterator");
    dcItteratorBindings.removeCurrentRow();Timo

  • I had a repair done on my MacBook Pro and had to have a new hard drive installed. The Apple Auth Repair Shop then updated the OS from 10.6.8 to 10.7.5. Now my iPhoto v 9.2.3 will not open and it sounds like it will not work with this OS. Can you plea

    I had a repair done on my MacBook Pro and had to have a new hard drive installed. The Apple Auth Repair Shop then updated the OS from 10.6.8 to 10.7.5. Now my iPhoto v 9.2.3 will not open and it sounds like it will not work with this OS. Can you please advise?

    You may need many other updates to retain compatibility with Lion. I suggest you reinstall Snow Leopard. Unfortunately, you will need to erase the drive first. Be sure to backup your data if you haven't done so already.
    Clean Install of Snow Leopard
    Be sure to make a backup first because the following procedure will erase
    the drive and everything on it.
         1. Boot the computer using the Snow Leopard Installer Disc or the Disc 1 that came
             with your computer.  Insert the disc into the optical drive and restart the computer.
             After the chime press and hold down the  "C" key.  Release the key when you see
             a small spinning gear appear below the dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, click on Options button
             and select GUID, click on OK, then set the format type to MacOS Extended
             (Journaled, if supported), then click on the Apply button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. After you finish Setup Assistant will complete the installation after which
             you will be running a fresh install of OS X.  You can now begin the update process
             by opening Software Update and installing all recommended updates to bring your
             installation current.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.

  • Facebook like button is not working, I have used the muse widget and created code from facebook. Does anyone know how to get this to work?

    Facebook like button is not working, I have used the muse widget and created code from facebook. Does anyone know how to get this to work?

    Hi connally25,
    Below is a link to a video tutorial on how to add a Facebook Log button, please check if you have followed the same steps to add the video.
    http://tv.adobe.com/watch/learn-adobe-muse-cc/adding-a-facebook-like-button/
    If you have followed the steps correctly and the button still does not work; here is a link to a forum thread which might help solving the issue:
    Facebook Follow Widget not working
    Regards
    Sonam

  • HT201407 The shake operation is not working on my iPhone, can anyone help me with it plz

    The shake operation is not working on my iPhone, can anyone help me with it plz

    All depnds what your using it for..  If it's an app, may be a delay in the app doing an update to be compaitible with iOS 6.  If its for an Apple app, then you need to check the settings for that specific app.

  • Facebook like button does not work in my FF 32.0.2

    Dear FF support-team,
    I've got a strange problem with the Facebook like button (in German called: "Gefällt mir") on my site and after some trying around myself, I need your knowledge, as mine seems not to be enough. :-)
    I have got a Facebook-Like button built in on my Wordpress-Site: See Reference: http://www.lifechange.at/kammel-scheck/ (at the bottom of the page).
    When I try to click it and I'm not logged in to Facebook, he opens up the popup and asks me to login. So far so got, but when I log in and try to "Like", he just opens the popup and closes it automatically after half a second and shows no like.
    When I open the "Like-Button"-Bar in an extra Tab (right click on Like-Button and select Current-Frame-->Open Frame in new Tab), then the Like-Button seems to work correctly.
    I have already cecked against all installed add-ons (deactivated completely, tested, reactivated). Especially AdBlockPlus. But I have deactivated AdBlockPlus on Facebook and on my Domain lifechange.at.
    Then I checked, if the Like-It - Link to Facebook was "https://" and not just "http://". That's also ok.
    On every other browser (Chrome, IE, Opera...) the Like-It Button works fine.
    And what's also interesting: the other FB-Button ("Share" ("Teilen") - Button) works fine even in Firefox.
    So you see, I will be lost without your help, for which I ask politely.
    Thanks a lot in advance.
    Greetz, Hannes

    Ahh, I forgot to mention: The "Google+" - Button also doesn't work. In all the other Browsers, it does. Thx, Hannes

  • 'OR' operator is not working in 'IF' condition!

    Hello,
    I am trying to put some validation/code, by using the 'IF' condition as below with 'OR' operator, but, its not working(am not getting any syntax erorr), pls. let reframe correctly, pls. note that 2 periods after my_form, am using it to point the text object/drop-down, bcz until run time i dont know the object's name
    if ((xfa.resolveNode("my_form.." + myArrayReq[i]).rawValue == null) || (xfa.resolveNode("my_form.." + myArrayReq[i]).rawValue == "")){
    // my code come here, like populate some variable
    Thank you

    Thank you.
    Also the way you are passing the array through the xfa.resolveNode may be incorrect. Test using console.println or an app.alert.
    For me, its working, yes i tested it, its fine.
    Any comments?
    Thank you

  • Facebook forms and action links like "untag" do not work in 3.6.8

    I upgraded to 3.6.8 last night, and now nothing on Facebook will work. If I try to post a status update or something on a friend's wall, the form doesn't automatically expand upon clicking in the box, and the submit button doesn't work. Also, when I try to untag pictures, the link does nothing. I switched to Safari, and everything works fine. While I love Firefox and have been using it religiously for years, it just seems to get MORE bugs as time goes on, like Flash video players not working correctly sometimes until a full quit-and-reopen in the last version. I love Google, too, but have never bothered to try Chrome... until now. I'm finally going to download it. I'll be back, eventually.
    == URL of affected sites ==
    http://www.facebook.com

    Facebook - Everything works perfectly in Safari but since I upgraded Firefox to 3.6.8, messages don't work, comments, don't work, show all comments buttons don't work etc. Have removed cookies, logged out and back in, etc. problem remains.

  • "Like" sql function not working  in Business Service

    Hi all,
    I have created a query with few Joins (Processing around 4-5 tables).It has Two scenarios, One with Equals and the other with Like function.
    SELECT
    ST.STREET,
    ST.DECOMPLEMENT,
    ST.STATE,
    LC.LOCALITY,
    DS.DISTRICT,
    ST.CDZIP,
    SP.street_type
    FROM
    STREET ST,
    DISTRICT DS,
    Locality LC,
    Street_Type SP
    WHERE
    ST.CDZIP LIKE ?
    AND ST.STARTDISTRICT = DS.DISTRICT (+)
    AND ST.LOCALITY = LC.LOCALITY (+)
    AND ST.STREET_TYPE = SP.street_type (+)
    When There is an Equal Sign after Where clause, The query gives desired output. But when there is a LIKE it does not give any output at all. How can i use this Query using perform operation.

    Hi Arun,
    How are you using it? Using DB Adapter / X-Query function? I have run similar SQL Queries easily through DB Adapter.
    Regards,
    Anuj

  • Opera mini not working after updating software fro...

    i bought a nokia 6303c on feburary 2010 , at that time the software version of my mobile was v9.10 but after two or three months i noticed that my calculator was missing an some other menu function are also missing. so i searched in internet and got information in nokia discussion that that missing calculator is software problem. So i decided to go to nearest nokia care for solution of my problem, where they updated my software to v10.12 i got my calculator back, but from the day opera mini is not working properly, then after one month i again go to nokia care , then they again updated my software , but problem remains same. so i asked them to please give me old version in my mobile but they told me that it is impossible to downgrade to 9.10,  i m fed up of this problem. In comparison of this new version my old version is much better.. please help. might be this is also a bug of software nokia gives that useless lifetool and nothing improvement is there.

    Could be a problem with the App and that it may not support IOS 7.1.1 yet and need updating.

  • Expired certificate and opera mini not working

    i had a problem while i was installing my whatsap,it always says "expired certificate" and my opera mini is not working,says check date settings.please help

    As this is your first post upon the forum an indication as to what device this appertains would be helpful.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • VN7-791G all bluetooth devices like Logitech mouse not working after Windows 10 upgrade

    After upgrading to Windows 10 on my 2 month old Acer VN7-791G, my Logitech bluetooth mouse could not pair, my bluetooth speakers could not pair and neither could by Nexus 7.  All these devices were working fine on Win 8.1 earlier. Under Device Manager, only the generic Windows Bluetooth, Microsoft Bluetooth Enumerator and LE Enumerator drivers were showing (dated  21/6/2006).  Under Network adapters, the driver showing was the Qualcomm Atheros QCA64x4 ver 10.0.0.62 dated 18/5/2015. I checked that this model is indeed compatible under ACER's website for Windows 10.  I have also been checking the ACER drivers for Win 10 for this model but there are no new updated ones for Bluetooth. I downloaded the Win 8.1 ones and installed them but they still would not work (the Microsoft ones are still showing under Device Manager). I had to actually downgrade back to 8.1 a few days ago due to this issue but thought I would try to update to Windows 10 again hoping it would work but still no luck.  I had googled but can't seem to find a solution and suspect that I need an updated bluetooth driver for Windows 10 from Acer or Broadcom.  The Atheros website do not have any Windows 10 bluetooth drivers as well. I may have to downgrade again and try again in a few months time unless someone could please point me in the right direction. Thank you.  

    Yay! Success at last!  Well, I had to resort to drastic measures which I was dreading and delaying. Basically, I rolled back to Windows 8.1 Then Reset PC to Factory Setting.  This wiped out all data and applications/programs After getting back to default Windows 8.1, I tried pairing my bluetooth mouse and it worked I then immediately installed Windows 10 (from ISO file downloaded earlier) off a USB stick I chose the option for a clean install (this doesn't load any of the ACER bloatware) Once logging into Windows 10,I went into Device Manager and uninstalled all Bluetooth drivers Then I ran the setup for the Windows 8.1 Atheros bluetooth drivers as suggested - "LITE-ON Bluetooth_M 3rd WiFi 2x2 AC+ BT M.2 QCA NFA344_3.0.0.373_W81x64" I tried pairing my mouse and Nexus 7 and it works!!! For reference, here is my setup under Windows 10 after successfully pairing bluetooth devices. btw, interesting to see that the event log still reports some error about further installation just like earlier - probably indicates that the Win 8.1 Acer drivers are not 100% compatible yet.     

  • Nokia 5130xm opera mini not working?

    sir my defult browser that is opera mini not open  since last two days. it show an error invalid app then not open after thet plz help me.

    http://www.google.ie/url?sa=t&source=web&cd=1&ved=​0CBMQFjAA&url=http%3A%2F%2Fwww.opera.com%2Fmobile%​...
    you need to have enough free space or a phone with sufficent capacity to run this
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • 6270 OPERATING KEYS NOT WORKING

    Keys of pnone are not working. I cant receive calls without sliding my phone. I cant read messages or see miss calls

    Try upgrading your phone's firmware. Take it to your nearest service center for that.

Maybe you are looking for