Reg Exp won't make a match with metacharacters?

Hi All,
I'm trying to implement a filefilter using regular expressions to allow wildcard searches. Here is the code I have so far. Works fine for a literal match, but if i enter a wildcard search (eg. abc123) it will not list any files, even though if I enter the full name for a file, it matches just fine. Anyone got any ideas because I'm just comming up blank?
thanks!
package dbmanager2;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.regex.*;
* @author nkelleh
public class LotDialog
    // Declare variables
    private String[] dirFiles;
    // Class constructor
    public LotDialog(String path, String name)
        // Create new file object based on path name given
        File dir = new File(path);
        // Assign file names to string array
        dirFiles = dir.list(new stdfFilter(name));
    public void printFiles()
        for (String files : dirFiles)
            System.out.println("File is " + files );
    class stdfFilter implements FilenameFilter {
        Pattern pattern;
        public stdfFilter(String search)
            // Replace wildcard, '*', with reg exp, '.*'
            search = search.replaceAll("\\*", ".*");
            search = search.replaceAll("\\?", ".");
            pattern = Pattern.compile(search);
            System.out.println(pattern.pattern());
        public boolean accept(File dir, String name)
            if (new File(dir,name).isDirectory())
                return false;
            else
                // Return true if a match is found
                Matcher matcher = pattern.matcher(dir.getName());
                return matcher.matches();               
}

LeWalrus wrote:
Hi All,
I'm trying to implement a filefilter using regular expressions to allow wildcard searches. Here is the code I have so far. Works fine for a literal match, but if i enter a wildcard search (eg. abc123) it will not list any files, even though if I enter the full name for a file, it matches just fine. Anyone got any ideas because I'm just comming up blank?
...Try debugging your code. A good place to start is to print the following to see where things go wrong:
public boolean accept(File dir, String name)
  if (new File(dir,name).isDirectory())
    System.out.println("Ignoring: "+new File(dir,name));
    return false;
  else
    Matcher matcher = pattern.matcher(dir.getName()); // shouldnt that be 'name' instead of 'dir'?
    System.out.println("Accept: "+dir.getName()+"? "+matcher.matches());
    return matcher.matches();               
}

Similar Messages

  • How to make Matcher stop once a reg exp match is found

    Is there a way to make the regular expression Matcher stop reading from the underlying CharSequence once it finds a match? For example, if I have a very long String and a match for some regular expression is at the beginning of the String, can I make the Matcher object stop examining the String once it finds the match? The Matcher object seems to always examine the entire CharSequence, even if a match is very near the beginning.
    Thanks,
    Zach Cox
    [email protected]

    Nope, {1}+ doesn't work either. I know it's
    continuing because I created my own CharSequence
    implementation that just wraps a String orwhatever,
    and I print to System.out whenever Matcher callsthe
    charAt method.What about the lookingAt() method?I think lookingAt is like matches, except just the beginning of the CharSequence has to match (i.e. starting at index 0), not the entire thing. I tried it and it doesn't even find the reg exp. The find method at least finds the reg exp, it just reads too far.

  • I'm trying to make a purchase and I get a message that the information does not match with the bank. What can I do?

    I'm trying to make a purchase and I get a message that the information does not match with the bank. What can I do?

    Go to the APP store or Itunes. On the bottom of the mainpage, tap your apple id, view account. Then you can edit the payment information. Or you can do it(if you encounter a problem there) on Itunes on computer. Just go to the store, select your name and edit information. Make sure everything matches...exp date, name as appears on card etc..

  • Reg Exp - not as expected

    Not often I ask questions myself, and perhaps my mind's just gone fuzzy this morning, but I'm having trouble doing a simple replace with regular expressions...
    In the below example I just want to replace all occurences of "fred" with "freddies"...
    SQL> ed
    Wrote file afiedt.buf
      1* select regexp_replace('this freddies is fred fred record', 'fred', 'freddies') from dual
    SQL> /
    REGEXP_REPLACE('THISFREDDIESISFREDFREDRECORD'
    this freddiesdies is freddies freddies recordbut, obviously, I don't want the existing "freddies" to become "freddiesdies", it should stay as it is. So if I check for spaces either side of the search string (and take account of it maybe being at the start/end of the string...
    SQL> ed
    Wrote file afiedt.buf
      1* select regexp_replace('this freddies is fred fred record', '(^| )fred( |$)', '\1freddies\2') from dual
    SQL> /
    REGEXP_REPLACE('THISFREDDIESISFREDFRE
    this freddies is freddies fred record
    SQL>It no longer replaces the "freddies" incorrectly, BUT it only replaces the first occurence of "fred" with "freddies" and not the latter one. ?!?!?!
    If I put an extra space inbetween the two "fred"s then it works:
    SQL> ed
    Wrote file afiedt.buf
      1* select regexp_replace('this freddies is fred  fred record', '(^| )fred( |$)', '\1freddies\2',2) from dual
    SQL> /
    REGEXP_REPLACE('THISFREDDIESISFREDFREDRECO
    this freddies is freddies  freddies record
    SQL>But I'm not going to have double spaces between the words and I can't determine where to insert them to make it work like this so it's not a feasible solution, although it does seem to highlight that the regular expression parser is not taking the space after the first match in the context of being the space before the second match.
    Is that a bug in the regular expression parser, a feature of the way regular expressions work (i.e. expected) or am I doing something wrong with my search and replace reg.exp. strings?
    Cheers

    I think this will explain ..
    SQL> select regexp_replace
      2         ('this freddies is fred fred  fred record',
      3          '(^| )(fred)($| )','\1freddies\3') str
      4  from dual
      5  /
    STR
    this freddies is freddies fred  freddies record
    1 row selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • My iPhone 5 won't send texts without wifi, even when I have 4G. It also won't make calls. Any ideas?

    My iPhone 5 won't send texts without wifi, even when I have 4G. It also won't make calls. Any ideas?

    Do you have a cellular plan with data and SMS activated?

  • Won't Send Texts and Now Won't Make Calls... Claims No Service

    The other day my phone wasn't sending text messages, I could recieve them and make calls but no one was getting my messages I sent to them.  I've had this problem before and it would usually just correct itself, annoying, but it would.  Well it went on for two full days so I called and did the *228 and reprogrammed my phone.  And yes, I tried taking out the battery also and it didn't work.  It seemed to work after the reprogramming though.  Then the next morning, today, not only did my phone not send messages, after it had been working just fine, but it would not make calls either.  I couldn't even dial *228 without the call being dropped.  A message pops up every few minutes saying messages couldn't be sent and would be sent once service became available.  My phone has no service whatsoever, bars pop up for a second or two and then goes back to absolutely ZERO service.  This is very strange considering I live in a pretty decent service area, have never had issues with it before, and everyone else around here has Verizon as well and haven't had any issues.  On top of this, with my phone constantly searching for service, the battery ran out a lot faster than normal so I turned my phone off, since it was pretty much useless anyways.  Well, good thing I did because while it was one it was sending the text message I sent to my boyfriend this morning, before I'd realized my phone was having issues, over and over.  He recieved well over 100 duplicate messages.  And even when I turn my phone back on it keeps sending the message to him... even though on my end it still says no service and that none of my texts from today have sent and will be sent when service becomes available.  I called Verizon today and the woman I spoke with, while very nice, seemed clueless about my issue and tried to walk me through some troubleshooting she was just reading off of something and she herself didn't even know what she was telling me to do or what the benefit of it was.  When I finally said I was on my break at work and had to get back inside, she informed me she was just going over the basic troubleshooting and I could talk to Tech Support and they could further assist me.  I didn't have any time to stay on the phone then since it had already been 20 minutes that got me nowhere.  My issue now is I don't have a phone to even call Tech Support to try and figure out what's going because I was using a friends at work.  So long story short, my phone claims to not be able to send any messages but has sent over 100 messages to my boyfriend (and God knows who else who just hasn't told me), my phone won't make any calls without dropping them after a second, and my phone has no service even in good service areas... and all of these issues just came out of nowhere and my phone is pretty much unusable at the moment.  What I want to know is if there is anyway to fix this problem... or if I am just going to have to suck it up and get a new phone?  Thank you, I definitely appreciate the help.

    Restart the phone by holding down the top/power button and the Home button at the same time until the device restarts.
    Log on to your My Verizon account and select "Activate Device".

  • HT4913 i am trying to get my computer and my wifes computer on my itunes match.  i did the add a computer function and it says that this computer is already associated with an apple id...if you use itunes match with your apple id etc for 90 days...please

    i did the add a computer function and it says that this computer is already associated with an apple id...if you use itunes match with your apple id etc for 90 days...please explain.  is this going to screw my wifes account up? 

    If you both have seperate iTunes Store accounts then basically, yes, it is going "screw up" your wife's account.
    iTunes Match is designed as a single-user service which is associated with one and only one iTunes Store account ID. If you have subscribed on your account and want to activate the service on another computer that is already signed in with an account the present account must be signed out and then iTunes signed into your account. This means the other computer will have complete access to your account and will only be able to make purchases on your account. iTM is not designed to be signed in and out at will. If she has apps purchased with her iTunes Store account they will not be able to be updated.

  • DVDSP3 Won't Make New Buttons, Won't Open Project Files

    HELP!!!!
    The button editor in my DVDSP 3.02 stopped working after it opens a new project file. I mean, when you go to a menu and then hold down the mouse button and drag, nothing happens. It will not create any new buttons. Even if you drag a button template over and use the pop-up submenu. It will not create any buttons.
    Worse is what happens when I open an existing project file. Then it stalls forever at the "Loading Menus" point in the "Loading Project" dialog. It doesn't crash, it just stalls there forever. However, if I click "cancel" - THEN the app crashes.
    But it won't make buttons in the new project files it can open, and it won't open any existing project files. Very confusing.
    Here's what I know and have done to this point...
    If I watch this whole process in the Activity Monitor, here's what I see. I find that two apps named "DSPX_AEncoderServer" and "DSPX_EncoderServer" get hung (and turn red) when the "Loading menus" point is reached in the document load. Sometimes DVDSP will say it's hung, too, but not always.
    However, I found that my DVDSP app still runs flawlessly if I boot from my "clone" backup drive, which is how I'm still able to get work done currently.
    Back on my normal boot drive, all of the other Apple Pro apps still run perfectly - FCP, Compressor, A-Pack, etc. But not DVDSP.
    OK, here's a clue, but I don't know what it means. Two months ago, I had the logic board replaced on my G4. All the pro apps made me re-register. Then this DVDSP problem appeared out of the blue. Nothing fixed it that I could find. What made it finally go away was the timely arrival of a new Security Update to the OS via "Software Update." Installing that made the problem with DVDSP go away, for good.
    Not doing hard drive maintenance, repairing privleges, fully optimizing OS, Disk Warrrior, Norton DiskDoctor - none of them worked. But that Security Update showing up, installing, and then doing the post-install optimize fixed the problem. That time. Or maybe it didn't? Because...
    Two weeks ago the FW ports on the "new" logic board blew, just like the original, so AppleCare gave me a third logic board.
    Same deal as before with all the pro apps wanting to re-register because they are seeing a different serial number in firmware.
    Also, just like before, I have this trouble with DVDSP. But I can't fix it this time.
    In the past three days (two of which were really one "large" day with no sleep period in between) here's what I have done in an attempt to fix this, without success.
    I dumped the receipts for the DVDSP v3 installs and upgrades, then I reinstalled the DVDSP components from my original disc, and then reinstalled the online 3.02 upgrade. No go.
    I did all of the above, except this time I found an Apple TechNote on deinstalling DVDSP v2. So using that as a guide I did my best to delete the app and all its supporting files, as well as the install receipts, before doing a fresh install of the app and the v3.02 upgrade. No go.
    I did a plethora of hard drive and system maintenance thinking that perhaps some files had been misplaced, a hard drive directory corrupted, a bundle bit here or there un-set, a few system libraries de-optimized, various font and system caches corrupted, as well as numerous log files too filled up with "essential" data to run correctly therefore in need of deletion.
    Along with anything else I could think of based on my 20+ years of supporting Macs in a production environment. Again, no go.
    So I deleted all the DVDSP files and receipts from my boot drive again. Then I dumped all the install receipts for OS 10.3.9 and ran the "combo" version installer for that OS upgrade. Next I dumped the receipts for the Security Updates and reinstalled those. Then I did drive maintenance, OS permission fixing and optimizing. Then reinstalled DVDSP and friends. Still no go.
    But my version of the app that is on my backup hard drive that I cloned right before taking the Mac to the shop for the 3rd logic board still runs just fine. I boot off that drive (connected via Firewire) and DVDSP will run fine.
    I'm confused.
    Now I'm not inclined to spend a lot more time on this since my DVDSP 4 upgrade is due for delivery any day now, and I'm sure that will work OK. Especially since I'm planning on moving to Tiger at that point, too.
    But in the meantime, it sure would be nice to know what happened to my "regular" copy of DVDSP.
    Can anyone figure this out, or at least give me some new ideas on now to troubleshoot this?
    Apple Support refuses to help me because I'm still using an "unsupported" version of DVDSP. Even though I'm still using it because my purchased upgrade is being delivered via "media mail" - the US Postal Service's version of the proverbial "Slow Boat."
    That was a difficult and frustrating conversation withthe Apple Support rep, too, let me tell you. I've been a fan, user, customer, supporter, and evangelist for Apple hardware and software since 1984. But when that voice on the other end of the phone essentially told me that...
    a) if I was not using the latest and greatest version of the software, AND...
    b) if I was not willing to spend several hundred dollars each year on support fees...
    ...then I was basically on my own and they would not help me. Worse, they didn't care that I was an old and loyal customer, or that I was even a stockholder in the company. The support system essentially told me to get stuffed. Yee-e-e-ow!!!!
    I was especially mad about this because I have this nagging suspicion that this whole problem I'm having with DVDSP is somehow related to some kind of copy protection scheme that Apple has going on but doesn't talk about.
    I mean why did I need to re-enter the serial numbers for all my pro apps when I changed logic boards? Is my problem being caused by some Pro App component that knows enough to stop working when it thinks it's been bootlegged, but doesn't know enough to trigger a re-registration of itself.
    At this point, that idea is beginning to sound more and more plausible as the cause of my trouble.
    Anyway, this problem is seriously hurting my workflow. I'm out of ideas and I need some guidance from the collected wisdom of the forum to solve this problem.
    Thanks in advance.

    I didn't see anywhere that you had downloaded and
    installed the latest proApplication Support file. If
    you haven't, you should do this next:
    http://www.apple.com/support/downloads/proapplications
    upport31macosx1039.html
    Hal:
    I had reinstalled that ProApps Support version, but I hadn't done it since I deleted all the app files and such, then done a complete reinstall from the DVD.
    So I just downloaded it afresh, and then installed it. Then I restarted, and then repaired permissions with Disk Utility.
    Still no go.
    I'm bamboozled. I thought I knew something about this stuff, but I guess it's good to stay humble.
    However, my 5.1 studio upgrade just arrived in today's mail. I think I'm going to take a chance. I'm between projects right now. So I'm going to upgrade my OS to Tiger>then 10.4.6 upd. Then I'll take a shot at installing the new FCP Studio upgrade and see what happens.
    Any comments or advice? Otherwise, wish me luck. I'll let you know how this works out with a post here.
    Sure wish I could figure out what's going on with my DVDSP v3, though. I really HATE to leave unresolved problems hanging out there. Seems like they always come back to bite you again if you don't deal with them.
    Thanks for the help.

  • Why won't my printer print with Windows 8?

    Why won’t my printer print with Windows 8?
    Have you just upgraded, or purchased a new computer with Windows 8, and now you can’t get your printer to work?  If so, this may help you.  A lot of people have questions about installing their printer on a new OS.  This will help you answer those questions and make sure that you get everything installed. 
    Before You Start
    Before you try to install the printer on a Windows 8 computer, you should check to make sure the printer is compatible with the new OS.  The link below will give you a list of the printers that will work in Windows 8.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03168175&lc=en&cc=us&destPage=document&dlc=en
    If you have upgraded your computer to Windows 8 form another version of Windows, make sure to completely uninstall all of the software for your printer.  It should still print, but to use all the functions you will need to reinstall the software, if it’s available.
    Another thing to consider is how you want to connect the printer to the computer. 
    USB.  You should make sure that you have a USB cable that is no longer than 6 ft. (roughly 2m).  Make sure to connect the printer directly to the computer.  Do not use a USB hub. 
    Ethernet cable.  Make sure you have the network setup, that you have a free cable port on the router, and that you have an Ethernet cable available.
    Wireless.  You should make sure that you have the wireless network setup, and that you have the password for the wireless network. 
     1.     Installing Via USB
    Installing via USB in Windows 8 has become much simpler for HP printer users.  In other versions of the Windows OS you had to start the installation and wait for it to ask you for the USB connection.  If you didn’t, you would have to uninstall the printer from the Printers/Devices folder, and then start the install.  In Windows 8, that will not be a problem.  If you plug the printer’s USB cable in and then install the printer’s software, it will still work.  Now for in depth instructions on installing the printer via USB click the link below.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03460670&tmp_task=solveCategory&cc=us&dlc=en&la...
    2.     Installing Via an Ethernet Network Connection
    For an Ethernet network connected printer the install is amazingly simple.  All you have to do is connect the printer to the network.  Once you have that done, Windows 8 will automatically install the drivers for you.  Then, all you have to do is install the rest of the software, if it’s available.  It’s really that easy.
    http://www8.hp.com/us/en/support-drivers.html
    3.     Installing Via a Wireless Network Connection.
    For a wireless network connected printer the install is amazingly simple as well.  All you have to do is connect the printer to the network.  Once you have that done, Windows 8 will automatically install the drivers for you.  Then, all you have to do is install the rest of the software, if it’s available.  It’s pretty much the same as an Ethernet install, just wireless.
    http://www8.hp.com/us/en/support-drivers.html
    Alternate Install Methods
    With Windows 8, many printers’ drivers are installed with the OS.  These are known as InOS drivers, since they come built into the operating system.  If you have one of those printers, all you should have to do is connect it to the computer via USB, or connect it to the network via Ethernet or wireless.  Once you have that done Windows will handle the rest.  There are alternate methods of installing your printer if the normal methods are not working for some reason.  You can install the printer either using the Printer Install Wizard, or through Windows Updates. 
    Printer Install Wizard:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02681060&tmp_task=solveCategory&cc=us&dlc=en&la...
    Windows Update:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03460648&tmp_task=solveCategory&cc=us&dlc=en&la...
    Note: The Laserjet drivers for the Asia-Pacific and Japan won’t be released until a later date.  Check the support site linked below for driver availability.  I will update this post once they become available.
    http://www8.hp.com/us/en/support-drivers.html
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    This question was solved.
    View Solution.

    Hope this answers some questions.  
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • GL balances are not matching with Fixed assets ledger

    Hi,
    Please suggest me regarding this...
    The issues is:when the legacy balances are uploaded in to sap there was the mistake.3 assets were entered twice(once in asset class 1250 & once in asset class 1300).It causes the GL balances are not matching with Fixed Asset balances(GL is less than FA).so now the client is asking to make manual entry by removing the recconcilation account settings and post manual entry then keep the reconcilation account as usual.They wanted to reverse the accumulated depreciation for the above 3 duplicated asssets for year 2007 & 2008.
    How can i achieve the below:
    1.GL balance was not equal (i.e lower) to FA ledger even at the time of go live(FI is lesser than FA)
    2.For this i need to post one manual entry in FI-GL with the GO-LIVE date.is it possible? suggest me how to post?
    3.After that i need to reverse the accumulated depreciation for the above 3 duplicated assets.how can i do this?
    4.After that i need to remove the above 3 duplicated assets,how can i?
    Please help me by giving your thoughts regarding this
    Thanks
    Sap Guru

    Hi,
    It is possible to post the adjustment entry from go live date provided you open the posting periods for the pervious year. (However this approach is not recommended for the following reasons - you have closed the books and must have published the results to local authorities. Adjustment now in the past year can cause some trouble from auditors etc. Secondly you are adjusting the GL balance for the last year, so you will have to complete the period end and year end closing for GL balances. So avoid kindly it)
    For your problem - Go to transaction code OASV and post adjustment entry for the current period. Also check if your field status of assets contain field for shutdown of assets. If not change your field status accordingly. Once adjustment is done you shutdown the asset so that it does not post depreciation in future depreciation runs. (this will cater to your need of eliminating the assets. If you retire the asset then you will have to deal with gain or loss on retirement of an asset. If you can accommodate this entry, then you can use this figure in the final adjustment entry.)
    Or Go to transaction code OAMK and set the recon account to post the adjustment entry.
    Reversal of depreciation is not possible in SAP. So the only way to reverse the accumulated depreciation is by changing the recon account or using OASV, and passing adjustment entry.
    regards
    Thomas

  • Account Currency is not matching with document currency

    Hi,
    In Sales A/R Invoice Screen when Iam trying to add a document its giving an error by saying Account Currency is not matching with document currency.
    (Item is an Excisable Item and Currency is BP Currency)
    Pls let me know the reason.
    Thanks&Regards,
    Chakrapani Bandaru
    9849290882

    Hello chakrapani bandaru,
    Please set all the G/L accounts involved in the transactions to Multicurrency accounts (e.g. BP, revenue tax accounts etc.)
    It means BP account, revenue and tax account
    as well, even if there is 0% tax.
    Please check Administration/System Initialisation/Company Details/ Basic Initialisation/Default Account Currency and make sure it is set toMulti Currency.
    The exchange rate difference account should also be set to multi currency.
    hope it helps.
    Wilm Wang
    SAP Business One Forums Team

  • The number of details is not matching with the total count.

    Hi all, again stuck with the code.
    There is a form where i have to populate all the details of few tables in excel & there is a report where i have to make count of all these details.
    The problem here is the number of details that is populated in excel is not matching with the count in report, both have to match. There some problem in code, please help me in matching it.
    The below is the 5 tables with the columns below.
    Tables are ENQACEDTL, ENQACEHDR, ENQACMDTL, ENQACMHDR, ENQACSPEC:
    The Names mentioned below the table's name are Column Names:
    ENQACEDTL
    ENQACEHDR
    ENQACMDTL
    ENQACMHDR
    ENQACSPEC
    ENQNO
    ENQNO
    ENQNO
    ENQNO
    ENQNO
    ENQAMDNO
    ENQAMDNO
    ENQAMDNO
    ENQAMDNO
    ENQAMDNO
    ENGREF
    ENGREF
    QTY
    OFFREF
    MINSL
    ITEM
    EPREPBY
    ITEM
    BRANCH
    EINSL
    FRAME
    DEPT
    RATING
    DEPT
    MTEMP
    TECOLD
    ENGREFTDT
    ENCLIP
    MKTREF
    ETEMP
    THE BELOW IS THE SELECT STATEMENT CODE FOR POPULATING DATA IN EXCEL:
    SELECT ENQACEDTL.ENQNO, ENQACEDTL.ENQAMDNO, ......... (....ALL COLUMNS)
    FROM ENQACMHDR,ENQACMDTL,ENQACEHDR,ENQACEDTL,ENQACSPEC
      WHERE
      ENQACMHDR.ENQNO=ENQACMDTL.ENQNO  AND
      ENQACMHDR.ENQNO=ENQACSPEC.ENQNO  AND
      ENQACMHDR.ENQAMDNO=ENQACSPEC.ENQAMDNO AND
      ENQACEHDR.ENQNO=ENQACSPEC.ENQNO  AND
      ENQACEHDR.ENQAMDNO=ENQACSPEC.ENQAMDNO AND
      ENQACMHDR.ENQAMDNO=ENQACMDTL.ENQAMDNO AND
      ENQACMHDR.ENQNO=ENQACEHDR.ENQNO  AND
      ENQACMHDR.ENQAMDNO=ENQACEHDR.ENQAMDNO AND
      ENQACEHDR.ENGREF=ENQACEDTL.ENGREF AND
      ENQACMDTL.ITEM=ENQACEDTL.ITEM AND
      ENQACMHDR.DEPT=:PROC_DEPT AND
      ENQACEHDR.ENGREFDT BETWEEN :FROMDATE AND :TODATE
      ORDER BY ENQACMHDR.ENQNO,ENQACMHDR.ENQAMDNO;
    THE BELOW IS THE SELECT STATEMENT CODE FOR COUNT OF DETAILS IN REPORT:
    SELECT ALL  ACENQ.ENQACEHDR.DEPT, COUNT(ACENQ.ENQACEHDR.ENQNO) COUNT
    FROM ACENQ.ENQACEDTL, ACENQ.ENQACEHDR
    WHERE (ACENQ.ENQACEDTL.ENGREF=ACENQ.ENQACEHDR.ENGREF)
    AND ENQACEHDR.LOCKE=1 AND
    ENQACEHDR.ENGREFDT BETWEEN  :P_STDATE  AND :P_ENDDATE
    GROUP BY ENQACEHDR.DEPT;
    There is problem in join condition of 1st code that is in the "SELECT STATEMENT CODE FOR POPULATING DATA IN EXCEL":
    Please help me to sort out this problem..
    Thank You.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    Oracle Forms & Reports Builder 6i.

    As Karthick points out, we cannot help if we cannot see your correct table structures (create table statements) and some example data and expected output (insert statements would be helpful).  You're telling us there's a problem, but we cannot see what the problem is as you've not shown it.  Just saying your query is not working is like me telling you my car is not working, but not telling you what the symptoms are.  You wouldn't know where to start in fixing it.
    Why are you using Oracle 9.2.0.1 ?  Not only has that version been unsupported for about a decade, but 9.2.0.7 was the first version of 9i that was considered 'stable' as versions prior to that were considered buggy.  So you're using an old, unsupported and buggy version of oracle.  Seriously, you need to consider upgrading to a supported version, preferably at least the latest 11g version.
    And what has oracle Forms and Reports got to do with the issue?
    And please explain how you are getting your data out of Excel and presenting it to Oracle to be able to query against it.  Excel does not have "tables", so your question is completely unclear how you are querying the data from Excel.

  • Is it possible to make a button with multiple paths?

    Hello and good day Everyone
    I want to make a flash game with a map leading to various places for example school or beach like this http://www.yotreat.com/sites/default/files/190-160_1286.jpg
    if the player goes to the school she will find the teacher, and if the player goes to the beach se will find the coach.
    How can I make the player (for example) talks to the teacher at school, returns to the main map, and goes to the beach to talk with the coach, yet if she goes to the school again, the dialogue with the teacher won't be the same with first dialogue?
    =>>> Is it possible to make a button with different paths to go? As if you've watched frame A, then you push the same button again it will take you to frame B??? <<<=
    Sorry for my confusing description... I hope you get the idea >,<
    Im so desperate... I've been searching for articles about this since yesterday and I still can't find one to solve this problem of mine.
    Making games is my dream... I've made some very simple games, but I want to try a new level of difficulty
    Please help me? (>o<

    Thank you for the advice, sir Ned Murphy!
    Yes, I try to use variables now, but face another problem with it... would you please tell me what's wrong with my script?
    Here, in label: "School" I type:
    on (release) {
    if (point = 0){
    gotoAndStop("dialogue1");
    else if (point = 10){
    gotoAndStop("dialogue2");
    else {
    gotoAndStop("dialogue3");
    (it's only a testing, so I only use these 4 labels)
    and in label: "dialogue1", "dialogue2",and "dialogue3" I type:
    on (release) {point += 10;}
    on (release) {
    _root.gotoAndStop("school");
    The result when I test movie:
    1. At "School" (shows point=0), I click the button,
    2. then occurs "dialogue2" (shows point=10), I click the button,
    3. then back at "school" (shows point=20), I click the button,
    4. then occurs "dialogue2" again (shows point=10)
    even the first shot is wrong
    point=0 should be the entrance to "dialogue1", but all I can get is "dialogue2"...
    Please tell me what's wrong with my script, sir Ned Murphy,
    Thank you very  much
    Regards,
    Tami

  • Hy i Upgrade my iPhone and now my mp4 Data are in the file Video and i can't make any Playlist with them! Any idea?

    Hy i Upgrade my iPhone and now my mp4 Data are in the file Video and i can't make any Playlist with them! Any idea?

    I'm having the same issue, i restored my phone to Factory settings, even tried restoring it to my backup, half of my music bought from itunes won't play on my iphone and i'm super annoyed, this only happened once i updated to ios 7.2 so i assume its another glitch to go with my imessages not sending, getting sick of this.

  • Need to reset Airport Extreme password, but the instructions provided by Apple and the support community do not match with what I get in my computer.

    I have followed the directions given on the Apple support pages and the ones provided in this community, but they do not match with what I get from the Airport Utility. According to the dorections, after starting a soft restart on the Airport Extreme, I should select the network from the menu bar item (which I suppose is the symbol for wi fi). Then it says to open the Airport Utility and select the Airport Base Station, ok up to now. But the instructions say that after selecting the base station to "click Continue". In my Airport Utility, which is the latest version, there is no Contimue. When I select the Base Station I get a bubble with information on the base and an "Edit" button. By clicking on this button, I am able to get a new window with info on the Base, inlcuding password, but I never get the window which says that the device has been reset. I need help, as I have bought a second Apple computer and need the password to set the wifi preferences, and I forgot the password for the Airport Extreme.

    You're doing everything right. The problem is that the Apple Knowledge Base article is outdated and the screenshots do not correspond to the new version of AirPort Utility.
    If all you need to do is find the password for the Extreme, you can do that by following this procedure. Use the Mac that is already configured to connect to your Extreme's network.
    You can retrieve your existing wireless network password from a Mac you normally use on that network. Your wireless network password is stored in your Mac's Keychain.
    You must first have an Administrator account on a Mac that you use with that AirPort Base Station, one that is used to connect to your AirPort network.
    On that Mac, open the Utilities folder. Find Keychain Access and launch it.
    In the search field at the upper right, type Airport. All the Keychain entries for your base station will appear there, as well as other entries.
    Look at the column "Kind". The entry you want to select will be labeled "AirPort network password" (not "AirPort base station password" or anything else).
    If you are trying to recover the AirPort Base Station password then the entry you want to select will be labeled "AirPort base station password" not "AirPort network password".
    Double-click that, and in the window that appears check the box for "Show password".
    You will get the following window:
    In the Password field type your Mac's Administrator password - the same one you used to log in to that Mac.
    Then, click Allow, and your wireless network password will appear in the "Show password" field:
    Make note of it.
    Close the window, then quit Keychain Access.

Maybe you are looking for

  • How do I move control of my ATV from one Mac to another in the same house?

    I have two iMacs in the office. I have ATV2 on my flat screen TV. I want to move control of ATV from one iMac running Snow Leopard to to the other running Lion, because of more and better content. Not sure how to accomplish this. Thanks for any help

  • Printer Sharing Problem

    I just installed NM on 4 comps.  1 XP, 1 Vista, and 2 Windows 7.  Everything works as of now except for the printer attached to Vista will not work on XP comp.  As of now it says it needs to search for .INF file?.....Of course this is the one compute

  • Oracle SQL Developer 1.1.1.25.14, I rror ORA-01722 Invalid Number

    I have installed the new version of Oracle SQL Developer 1.1.1.25.14, I use Oracle 9.2. When I browse in the tree of the stored procedures and compile I obtain Error ORA-01722 Invalid Number. The previous version does not give this error. I have trie

  • Open SQL (difference between 2 dates) - DATEDIFF function

    Hello Experts, In my DB I created a TABLE with a column "<b>GIORNO</b>" that contains dates (in format 'yyyy-mm-dd'). I need to get the difference between the current day and the most recent date inserted into the table. I'm using a Java DAO class to

  • Can't match home dir path to the actual data

    probably something simple, but I cannot get my students directory to mate up again Brief history: unstable old world: exported user info, reinported into a clean build....this provides an old path name that was from the previous world and is now not