Query problem in non US locale and Buddhist Era

I try to query a table with a sql statement. Then I use the result from previous statement to query again. But there's no result from the second statement??
I think it's problem with Regional Options in the machine.
I'm using w2k sp4.
JDK1.5
MySQL 4.0.18
MySQL connector 3.1.6
Locale Thai, Default Lang Thai
Here is the code
PreparedStatement ps = cn.prepareStatement("select * from EBMS_FRAUD_ATTEMPTS order by action_date asc");
date1 = rs.getDate("action_date");
cardNo1 = rs.getString("user_card_number");
action1 = rs.getString("action");
System.out.println("date1 : " + date1);
System.out.println("cardNo1 : " + cardNo1);
System.out.println("action1 : " + action1);
ps = cn.prepareStatement("select * from EBMS_FRAUD_ATTEMPTS where action_date=? and user_card_number=? and action=? order by action_date asc");
ps.setDate(1, new java.sql.Date(date1.getTime()));
ps.setString(2, cardNo1);
ps.setString(3, action1);
System.out.println("date2 : " + date2);
System.out.println("cardNo2 : " + rs.getString("user_card_number"));
System.out.println("action2 : " + rs.getString("action"));from the testing, there's no result from the 2nd statement.
Here is output from 1st statement.
date1 : 2005-03-04
cardNo1 : 1234123412341234
action1 : test1The solution can be
1. change the locale in regional options to en/US. or.
2. manually convert date in Java code using the method below before setDate parameter in the 2nd statement.
     private Date convtDate(Date dInput) {
          SimpleDateFormat dfUS = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss", Locale.US);
          SimpleDateFormat dfTH = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss", new Locale("th", "TH"));
          try {
               return dfTH.parse(dfUS.format(dInput));
          } catch (ParseException e) {
               return null;
ps = cn.prepareStatement("select * from EBMS_FRAUD_ATTEMPTS where action_date=? and user_card_number=? and action=? order by action_date asc");
ps.setMaxRows(1);
ps.setDate(1, new java.sql.Date(convtDate(date1).getTime()));
ps.setString(2, cardNo1);
ps.setString(3, action1);
...Both solutions are not good at all. The 1st solution break the run anywhere concept. The 2nd solution is hardcoding. I think there should be a better solution.

So you think that is the problem? I would suggest you change "think" to "know" there before proceeding. If your solution #2 actually works (you didn't say that) then the locale most likely is the problem. In that case you should contact the maker of your JDBC driver and report the bug.

Similar Messages

  • [SOLVED!] On USB drives, problems with non-English chars and HAL

    Hello,
    I am having a problem with non-English caracters (áãàçéẽê...) on files stored on my USB drive.
    On Windows they're created with the correct name. But on Linux the files have the non-English characteres replaced by '?' and are not accessible.
    If I manuallly mount the drives using 'mount -o iocharset=utf8 /dev/sdb1 /media/usbdisk' the characters are OK, so I think I just need to get HAL to pass the correct parameters to mount. However I don't know how to do that, and haven't found any good solution.
    I tried to build a custom kernel setting the default charset as UTF-8 and it didn't work.
    Any ideas? I'm using x86-64, HAL 0.5.13-3 and my locale is pt-BR.UTF-8.
    Thanks!
    EDIT: Actually, this is not a HAL problem, but a problem with 'exo'. For the solution, I edited /etc/xdg/xfce4/mount.rc and added iocharset=utf8 to the [vfat] category.
    Last edited by Renan Birck (2009-11-28 20:54:23)

    I don't use Thunar presently, but I looked in the Thunar Volume Manager doc and I didn't find anything to change the mount options of removable drives. I am not quite sure if it's possible or not. Maybe someone using it can tell for sure.
    But if it is not possible to change the mount options, a possible solution is to disable the Thunar Volume Manager plugin and to use something else more configurable to manage the automount function.
    Personally I use the halevt package from AUR which uses configuration files in the xml format.
    It's not so easy to use but is highly configurable.
    But there exists other tools also.
    I can help you with halevt if you choose that way...

  • Hostname is .local and Kerberos problems

    Hi
    Having problems with our new xserve. The computername as set in server admin is 'serverx' which is giving a local hostname of serverx.local. I have DNS running with one zone of <domainname>.org.uk, servername of serverx giving a FQSN or serverx.<domainname>.org.uk
    However i had an email out from the mailman mailing list asking for permission to allow a post to a mailing list and it had the link to click on as http://Serverx.local/mailman/.....
    Obviously i'd like this to be http://serverx.<domainname>.org.uk
    This also extends to the server's searchbase, which on the old server we migrated from was dc=<hostname>,dc=org,dc=uk which now is showing as dc=serverx,dc=local under opendirectory - settings - protocals
    The Open directory pane shows everything running apart from Kerberos which is stopped. If i try and kerberize the server using the realm name of <DOMAINNAME>.ORG.UK it whirrs away before returning me to the 'kerberize the open directory master' dialogue. Looking at the slapconfig log i get the errors...
    The KDC is not running error = 3
    failed to configure error = 3
    Is there a way to change this so that the domain name and seachbase are correct and how do i get the KDC to run so i can kerberize the server.
    Hope some of that makes sense...
    Thanks
    Quad 2GHz Intel Xserve   Mac OS X (10.4.9)   2GB ram

    I had similar issues with .local and trying to migrate away. I decided to manually massage a backup into the non-.local domain. It worked for me, but I will stress that you should make a copy of your backup to do this on.
    First, decide what new domain you want to use. If you're building on a private network, you can use a non-valid domain, like '.int' . Setup your DNS.
    Use Server Admin to make a backup of your OD Domain. Make a copy. Burn it to CD. We don't want the original to change.
    Kerberize to the new domain. Make a new backup and burn it to CD as well.
    Open a modifiable copy of the backup. In it are many files, most of them are straight text files of one flavor or another. Time to get dirty...
    Backup.ldif is the big file to work with. You must go in and change all of the olddomain.locals to newdomain.tla (this is pseudocode, please use your own domains where you see these two.) You must also change all of the dc=olddomain,dc=local to dc=newdomain,dc=tla . The fun about this file is that Apple wraps it manually, which makes search and replace tedious, as there will be some of these things at the end of lines. The good news is that they are far from random, so you can search for parts of the name (local is a good search) and find the next iteration. Here are a couple examples...
    ...dc=ol
    ddomain,dc=local
    ...dc
    =olddomain,dc=local
    ...dc=olddoma
    in,dc=local
    The key is to search and replace the whole thing at once. I used textedit and pasted the entire offending text into the find box, then replaced with the proper new dc= values. You need not worry about wrapping, the importer doesn't care. The key is to make sure that you get it all.
    Now do the same with all of the other files. I didn't touch authservermain, which already had the new Kerberos domain in it. I did modify these files...
    Backup.ldif
    authserverreplicas
    authserveroverflow.x
    DSLDAPv3PluginConfig.plist
    slapd_macosxserver.conf
    local.dump
    local.krb5realm
    Make sure to check the other files, as different configurations will yield info in different files.
    Once you are done with this, it's time to turn your nice pretty domain into a standalone. It appears that the archive and restore tools are much better in 10.4.x that older versions, so it actually works to restore things. There was one caveat. My standalone seemed to ignore the /etc/krb5adm.keytab, which then caused the conversion to Master domain to hang. Move to krb5adm.keytab.old it in case you need to restore.
    Make your server a Master again, this time with the new FQDN and search string.
    Import your modified backup. Your users should now be in place, although I lost my domain admins in the process.
    Finally, backup your domain, revert to standalone, toss the .keytab, convert to Master, and restore. This last step converts the bdb back into text, then back to the bdb. I was having a little strangeness until I did this step, which I believe clears up some cruft.
    Here are the benefits that I've seen in this process...
    - Passwords translate
    - migration is complete to new domain
    - easily restorable and/or recoverable
    Of course, your mileage may vary.

  • I am very annoyed at the Creative Cloud set up and the non-stop issues and problems

    I am very annoyed at the Creative Cloud set up and the non-stop issues and problems!  I am paying monthly for this service and it is constantly failing in some way!  So far in three months I have had to uninstall and re-install Photoshop THREE times because it stopped working properly and Illustrator I have had to do that same to TWICE!  That isn't including the other apps that have had issues!  I don't have the time to constantly be un-installing and re-installing all or some of the Creative Cloud because your developers are not making a product that works consistently for the money you are charging!  It is costing me more than just this monthly fee!  And I am even less impressed with the fact that I cannot email someone for assistance in resolving these issues.  Really Adobe?

    Adobe contact information - http://helpx.adobe.com/contact.html may help

  • Hi. I am just about to move from the UK to Kuwait. Will I have any problems using my iPhone 4 and able to join a local carrier using this device please?

    Hi. I am just about to move from the UK to Kuwait. Will I have any problems using my iPhone 4 and able to join a local carrier using this device please?

    If your phone is locked to a particular carrier, you must contact them to request they unlock it. Once they've taken care of that and you've followed the instructions to complete the unlock process, you will be able to use the phone elsewhere.
    ~Lyssa

  • I installed Mountain Lion on my iMac. Now I cannot access the Internet. All the other computers and tablets have no problem. I did PRAM and MC reset, modem reset, etc., all the usual ju-ju. I also cannot connect on my local network to any other computer.

    I installed Mountain Lion on my iMac. Now I cannot access the Internet. All the other computers and tablets on the network have no problem. I did PRAM and MC reset, modem reset, etc., all the usual ju-ju. I also cannot connect on my local network to any other computer. Yet Network control panel says I am connect to the modem, and Network Diagnosis says I am connected to the Internet. It's like the blind man who has eyes that cannot see. BTW, I am not some newbee. I have been a Machead since the early nineties and set up a half dozen networks, including the one I am using at home to which the iMac mysteriously is there but not. This has me stumped! I am considering going back to 10.7!

    Select  ▹ System Preferences ▹ Network ▹ Advanced ▹ TCP/IP. What values are shown for the following:
    Configure IPv4
    IPv4 Address
    Subnet Mask
    Router

  • HT4906 I updated my computer from Snow Leopard to Lion.  The problem is none of my pictures go to my IPad or iPhone.  When I checked my settings,  I go into ICloud and photo Stream,  and it tells me that I need to buy a update.  Any help would be apprecia

    I updated my computer from Snow Leopard to Lion.  The problem is none of my pictures go to my IPad or iPhone.  When I checked my settings,  I go into ICloud and photo Stream,  and it tells me that I need to buy a update.  Any help would be appreciated.

    Then maybe you need to buy an update.

  • I have a non intel G5 and would like to download i-tune songs that I have recently purchased. I have tried everything and can't find the downloads. Did this G5 just become obsolete with itunes? If not what is the problem?

    I have a non intel G5 and would like to download i-tune songs that I have recently purchased. I have tried everything and can't find the downloads. Did this G5 just become obsolete with itunes? If not what is the problem?

    You can do it with Leopard but it depends upon the iTunes version which you did not reveal.  Also make sure you are looking in the right place for purchases.
    Consider buying a backup drive so you do not need to do this again.  If you are going to run old hardware and software you need to live differently because yes, at some time you will find your version of iTunes no longer works.  You're lucky it still works with Leopard.  As you can see, some versions still work with the iTunes Store but not for repeat downloading.
    Downloading (using iOS or computer) past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not all media formats are available in all countries (see: iTunes in the Cloud, iTunes Match, and iTunes Radio availability by country - http://support.apple.com/kb/HT5085); apps, books (not audiobooks), music, t.v. shows, and movies (some - not all studios have permitted this).  Downloading previously purchased movies and TV shows requires iTunes 10.6 or later.  Discontinued items not available. For items not included in the iCloud list (e.g., ringtones, audiobooks), or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid.  Apple recommends,  "... back up your iTunes library. " (http://support.apple.com/kb/ht2519).
    Additional tip at https://discussions.apple.com/message/24176756#24176756
      Select the iTunes Store on the left side of iTunes if you have the sidebar displayed, or with the button at the top right.
      Click on Purchased on the right side under Quick Links (see https://discussions.apple.com/message/26364186#26364186)
      You can re-download your available previous purchases.

  • Locale and Jsp

    Hi again,
    I am new to jsp and would like to hear some expert advice when handling i18n.
    A) How are locales working? I have printed out ${pageContext.response.locale}" and ${pageContext.request.locale}" . Should I work with them when handling localization in an application or is there session object or some other way to do it?
    B) Which is the most elegant way to handle database entries i18n? For example if there is a field DESCRIPTION in a table TASKS, and I would like to show a translation depending on the user's locale. What I have as an idea is to create fields DESCRIPTION_EN, DESCRIPTION_DE, DESCRIPTION_JP... and read the locale from point A) - from page context or better from session and then call the right query and show the passing version. Does this make sense?
    C) As posted earlier the jstl fmt:message works only partly for me. It gets the message from the right bundle but when browser locale is changed it doesn't change to the right bundle. Where could the problem lie?
    Thanks

    IMO any website that tries to automatically i18n based on the locale settings in the request is highly annoying.
    I usually prefer English content because translations suck to my local language, yet I'm almost forced to use a localised operating system because it's very hard to get non-localised versions here.
    Any automatically localised website would present me with a language I don't want, or worse with services I don't want (like Google, which defaults to searching websites in the language it autodetects rather than all sites).

  • Here are my Etrecheck results....can anyone help me get my computer faster?  Problem description: Computer very slow-.and unresponsive  EtreCheck version: 2.1.8 (121) Report generated April 16, 2015 at 10:19:42 AM EDT

    Problem description:
    Computer very slow….and unresponsive
    EtreCheck version: 2.1.8 (121)
    Report generated April 16, 2015 at 10:19:42 AM EDT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (15-inch, Mid 2012) (Technical Specifications)
        MacBook Pro - model: MacBookPro9,1
        1 2.3 GHz Intel Core i7 CPU: 4-core
        4 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR3 1600 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1600 MHz ok
        Bluetooth: Good - Handoff/Airdrop2 supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 412
    Video Information: ℹ️
        Intel HD Graphics 4000
        NVIDIA GeForce GT 650M - VRAM: 512 MB
            Color LCD 1440 x 900
    System Software: ℹ️
        OS X 10.10.2 (14C1514) - Time since boot: 7 days 18:4:45
    Disk Information: ℹ️
        APPLE HDD HTS547550A9E384 disk0 : (500.11 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            Macintosh HD (disk1) / : 498.88 GB (299.54 GB free)
                Core Storage: disk0s2 499.25 GB Online
        MATSHITADVD-R   UJ-8A8
    USB Information: ℹ️
        Western Digital My Passport 0748 500.07 GB
            EFI (disk3s1) <not mounted> : 210 MB
            My Passport (disk3s2) /Volumes/My Passport : 499.73 GB (126.16 GB free)
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Inc. BRCM20702 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /System/Library/Extensions
        [not loaded]    com.quark.driver.Tether (1.1.0d4 - SDK 10.4) [Click for support]
        [loaded]    com.quark.driver.Tether64 (1.1.0d3 - SDK 10.6) [Click for support]
        [not loaded]    com.wdc.driver.1394HP (1.0.11 - SDK 10.4) [Click for support]
        [not loaded]    com.wdc.driver.1394_64HP (1.0.1 - SDK 10.6) [Click for support]
        [not loaded]    com.wdc.driver.USBHP (1.0.11) [Click for support]
        [loaded]    com.wdc.driver.USB_64HP (1.0.0 - SDK 10.6) [Click for support]
    Problem System Launch Agents: ℹ️
        [killed]    com.apple.CallHistoryPluginHelper.plist
        [killed]    com.apple.CallHistorySyncHelper.plist
        [killed]    com.apple.gamed.plist
        [killed]    com.apple.Maps.pushdaemon.plist
        [killed]    com.apple.printtool.agent.plist
        [killed]    com.apple.telephonyutilities.callservicesd.plist
        6 processes killed due to memory pressure
    Problem System Launch Daemons: ℹ️
        [killed]    com.apple.awdd.plist
        [killed]    com.apple.ctkd.plist
        [killed]    com.apple.emond.aslmanager.plist
        [killed]    com.apple.nehelper.plist
        [killed]    com.apple.wdhelper.plist
        [killed]    com.apple.xpc.smd.plist
        6 processes killed due to memory pressure
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.coupons.coupond.plist [Click for support]
        [running]    com.mcafee.menulet.plist [Click for support]
        [running]    com.mcafee.reporter.plist [Click for support]
        [running]    com.oracle.java.Java-Updater.plist [Click for support]
        [loaded]    org.macosforge.xquartz.startx.plist [Click for support]
    Launch Daemons: ℹ️
        [failed]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.macpaw.CleanMyMac2.Agent.plist [Click for support]
        [unknown]    com.mcafee.ssm.ScanFactory.plist [Click for support]
        [unknown]    com.mcafee.ssm.ScanManager.plist [Click for support]
        [running]    com.mcafee.virusscan.fmpd.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Click for support]
        [loaded]    com.oracle.java.JavaUpdateHelper.plist [Click for support]
        [loaded]    org.macosforge.xquartz.privileged_startx.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.facebook.videochat.[redacted].plist [Click for support]
        [failed]    com.facebook.videochat.[redacted].plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [loaded]    com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist [Click for support]
        [loaded]    com.macpaw.CleanMyMac2Helper.scheduledScan.plist [Click for support]
        [loaded]    com.macpaw.CleanMyMac2Helper.trashWatcher.plist [Click for support]
    User Login Items: ℹ️
        iTunesHelper    Application  (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
        WDSecurityHelper    UNKNOWN  (missing value)
        WDSecurityHelper    Application  (/Applications/WD Security.app/Contents/WDSecurityHelper.app)
        WDDriveUtilityHelper    UNKNOWN  (missing value)
        WDDriveUtilityHelper    Application  (/Applications/WD Drive Utilities.app/Contents/WDDriveUtilityHelper.app)
    Internet Plug-ins: ℹ️
        SiteAdvisor: Version: 2.0 - SDK 10.1 [Click for support]
        FlashPlayer-10.6: Version: 17.0.0.169 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        Flash Player: Version: 17.0.0.169 - SDK 10.6 [Click for support]
        CouponPrinter-FireFox_v2: Version: 5.0.3 - SDK 10.6 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        SharePointBrowserPlugin: Version: 14.4.8 - SDK 10.6 [Click for support]
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        JavaAppletPlugin: Version: Java 8 Update 31 Check version
    User internet Plug-ins: ℹ️
        Google Earth Web Plug-in: Version: 7.1 [Click for support]
        Stamps.com: Version: 1.1.13 [Click for support]
        DISH Anywhere Player: Version: 2.7.2.0 [Click for support]
    Safari Extensions: ℹ️
        SiteAdvisor
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Java  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: ON
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 498.88 GB Disk used: 199.33 GB
        Destinations:
            My Passport [Local]
            Total size: 499.73 GB
            Total number of backups: 29
            Oldest backup: 2013-05-17 22:06:43 +0000
            Last backup: 2015-03-27 16:16:56 +0000
            Size of backup disk: Too small
                Backup size 499.73 GB < (Disk used 199.33 GB X 3)
    Top Processes by CPU: ℹ️
             6%    backupd
             5%    WindowServer
             1%    Google Chrome
             1%    loginwindow
             1%    mtmd
    Top Processes by Memory: ℹ️
        289 MB    Google Chrome Helper
        189 MB    Google Chrome
        84 MB    backupd
        78 MB    Mail
        77 MB    Finder
    Virtual Memory Information: ℹ️
        17 MB    Free RAM
        1.22 GB    Active RAM
        1.22 GB    Inactive RAM
        996 MB    Wired RAM
        54.55 GB    Page-ins
        1.93 GB    Page-outs
    Diagnostics Information: ℹ️
        Apr 14, 2015, 03:11:54 PM    /Library/Logs/DiagnosticReports/softwareupdated_2015-04-14-151154_[redacted].cp u_resource.diag [Click for details]

    When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.
    When you post the log extract, you might see an error message on the web page: "You have included content in your post that is not permitted," or "The message contains invalid characters." That's a bug in the forum software. Please post the text on Pastebin, then post a link here to the page you created.

  • Query problem with accumulated key figures

    Hi BI Gurus!
    I have a report problem that I hope you can help me with!
    In my report I have 2 key figures. One for accumulated revenue previous year (KF1) and one for accumulated revenue current year (KF2). Both key figures should be presented in a graph in monthly buckets.
    January figures from both the key figures shoule be presented in the same bucket. Therfore I can't use 0CALYEAR since we have the "year" information in there. Instead I'm using 0CALMONTH2 which is only two digits, 01 for January. That way I can map figures from both previous year and current year in the same bucket.
    I need the figures to be accumulated and this is what I have problem with. When I run the report today in February 2010 it looks like this:
    Month   KF1   KF2
    01        10     15
    02        10     20
    03        15    
    04        10    
    05        20    
    06        10    
    07        10    
    08        15    
    09        15    
    10        20    
    11        20    
    12        10    
    This is how I would like the report to look like:
    Month   KF1   KF2
    01        10     15
    02        20     35
    03        35    
    04        45    
    05        65    
    06        75    
    07        85    
    08        100    
    09        115    
    10        135    
    11        155    
    12        165
    I have tried to use the setting "accumulated" for the key figures but then I get this result:
    Month   KF1   KF2
    01        10     15
    02        20     35
    03        35     35
    04        45     35
    05        65     35
    06        75     35
    07        85     35
    08        100   35
    09        115   35
    10        135   35
    11        155   35
    12        165   35
    Since the KF2 is revenue for current year and I run the report in February I don't want any figures to be displayed in Mars...
    I have tried to restrict the key figures by 0CALMONTH2 and 0CALYEAR. The KF1 is havein a restriction to only show values for 0CALYEAR - 1 and an interval for 0CALMONTH2 from JAN - DEC.
    The KF2 is having a restriction to only show values in the interval "first month in year - current month" (in this example JAN - FEB) for 0CALMONTH2. And current year for 0CALYEAR.
    Despite my restrictions for KF2 the numpers repeats itself for every month...
    Any suggestion how I can resolve this?
    Best regards
    Anders Florin

    Hi Khaled and thank you for trying to help me!
    I agree with you and think the users should accept the report as it is. But they are claiming that top management will not accept this and they would really want this to be fixed the whay that they want. I have tried to push back on this and said that I'm not sure that it can be resoleved and that it could cost them a lot of money if I try.
    But I will try to resolve it for them if I have spare time in the end of the project. I have not promised them anything but it would really be nice if I could fix it.
    So when you say I need to use a structure and a calculated key figure. How should the calculated key figure and the structure be configured?
    If I use a structure in the rows I guess I can't use same object in calc.key.figure right? Like if I use 0CALMONTH2 in the structure I'm not able to restrict the key figure with the same object? If that is correct I also have a ZMONTH object, different story why I have that... , that I can use in the same way as 0CALMONTH2. Or is this only a problem when I use "local" formulas within the query and not using a "global" calculated key figure? Cause I have only used the "loacal" formula calculated key figure in this report....
    Br
    Anders

  • Local and ISP DNS

    Hi all,
    i have a local DNS server for some local stuff like website,ldap and so on and the normal ISP DNS.
    On Client i have entered the local DNS IP (xxx.xxx.xxx.xxx) and the ISP DNS IP (yyy.yyy.yyy.yyy).
    So here is my problem when the Local DNS IP is on top of the table i can surf only the local websites but not the public. vice versa is it for when i have the ISP DNS IP on top. what can i do to surf all website, the local and the public.

    Your DNS is asking a "lame" server for DNS; you're not getting an authoritative response to the query.
    The target DNS server for the query isn't configured correctly; the local DNS server has found a target DNS server for the domain as being authoritative for the zone, but the target DNS server is not configured as being authoritative for the zone.
    i configured my router for forwarding the port 53 to my local dns, but it didn't solved the problem!
    That's not what I'd choose here.
    Your clients are aimed at your DNS server. Your DNS server is aimed at your ISP servers. Your firewall is set to pass DNS out, but (generally) to block inbound DNS requests. Your DHCP is set to serve your DNS server address. If you've been tossing configuration changes and such here within your clients and your DNS servers, then you may well have some stale stuff in the DNS caches, too.

  • Locale and language

    I am having trouble getting locales and languages to work as I would expect them to. I have created a tiny application (I'm a faces newbie still) and a bunch of localization files:
    message.properties
    messages_en.properties
    message_fr.properties
    messages_en_GB.properties
    I add all of these languages to the faces-config.xml file setting the en_GB to be the default. When I set my browser to en_GB it picks up the file as I would expect. When I set it to fr I get the french version but I have to restart the server (Tomcat 5.0.18 running under Netbeans) to make it switch over. I would have thought that since the browser is now sending up a different locale faces would just switch automatically to using a different bundle without a restart but it seems to remember some how. This may be due to the incremental redeploy into tomcat but I'm not convinced as the behaviour is unpredictable.
    What I am also confused about is the way defaults are dealt with. In the Core JavaServer Faces book it says that the base properties file will be used if a matching language resource can't be found. My observation is that it uses the default specified in the faces-config file. Is this right?
    I'm also curious to know what happens when a non-exact match is sent up. For instance which resouce bundle, of the four listed, would be chosen if a browser specified en_US?
    Thanks

    I had this problem this week. I guess this is a problem with Netbeans and Tomcat. When Netbeans detects your system language (LANG environment variable in Linux, for instance), its bundled Tomcat "sticks" with this locale and can't change it. If you try to run it with an external Tomcat, it may work.

  • Best way to query on a non-table item?

    Hi,
    I have a form that has customer_name (non-table item) and customer_id (table item). Customer_id is not visible to the user. We need to be able to query on the customer_name. I have tried using the pre-query trigger but I get an error ORA-01422. Any suggestions would be appreciated. I am a non-technical person, so the simpler, the better.
    Thanks in advance.
    Trish

    Hi ,
    I know two alternatives:
    1) Use the POST-QUERY trigger not the PRE-QUERY... But, you would have the same problem because i think that the customer_id column is not unique. So you should select a combination of columns which guarantee the uniqueness of the selected column...
    2)Other design. Read the doc at :
    http://www.oracle.com/technology/products/forms/pdf/BlockOnAJoin.pdf
    Using this way you should not use the trigger POST-QUERY....
    Regards,
    Simon

  • Query from a non database item

    Hi everybody,
    Can anybody please tell me how can i make any query from a non data base item .
    Will you please let me know where to set the trigger or something else which will solve the problem.
    Thanks and Regards
    Anutosh Bhattacharya

    Hi,
    For the block you want to query on use PRE-QUERY trigger.
    In the PRE-QUERY trigger use the
    SET_BLOCK_PROPERTY ('BLOCK', DEFAULT_WHERE, 'your query condition');
    Hope this helps.
    Regards
    Arif

Maybe you are looking for

  • PSA request deletion Error

    Hi All, I have a problem for which i am not able to get the proper solution from the threads. Can anyone help me to solve this. I am getting this error "" RSDU_TABLE_DROP_PARTITION_MSS Error while creating the clone table /BIC/B0000183000" while dele

  • XDCAM HD workflow with Adobe Premiere Pro CC and Macbook Pro

    Hi folks, I have an assignment for a TV production to secure and convert the data (mxf files XDCAM HD 422 1080i 50 / 50 Mbit/sec with 8 audio channels) from Sony XDCAM camcorders (PDW-700) for postproduction. The producer wants me to convert the mxf

  • AXI VDMA strange behaviour tvalid and tready

    Hello everybody I'm working very hard to use AXI VDMA but there's something I can't understand. the m_axis_mm2s_tvalid and the s_axis_s2mm_tready works totally random. I'm using Vivado 2014.4 and VDMA v6.2. I'm implementing this on a zedboard. This i

  • Does the LG Dare require a data plan?

    I have an LG Dare that I would like to use on an existing plan. BUT I dont want to pay for data, so I was wondering since Verizon has changed so much with their plans, does the LG Dare require a data plan in order to use it on my plan? All I use the

  • Population in MS Word

    I have two forms. From form1 i am passing the parameters on form2 i want to display those parameters in word file based on some conditions. How can i do that?