ORDER BY Statement in CALENDAR doesn't work! SOLVED

Hello!
I think I've searched nearly all threads containing the words 'calendar' and 'order'... I've found some threads dealing with the same problem as I do but I couldn't solve my problem yet...
I've got a calender and the data in the day columns are displayed like this:
time: what, e.g. 13:30: Test (13:30 would be 1:30 pm...)
In one day column can be more then one deadline and I want them to be ordered by the time they take place - like in any other, 'normal' calender.
But my ORDER BY Statement has no effect!
My day column does look like this: http://img88.imageshack.us/img88/8413/calendar01vy8.jpg - very unordered!
And this is my Code:
(please ignore the _ in <_span>, <_b> and <_br /> - I don't want the HTML code to have an effect of the display of this post!)
SELECT
CASE WHEN C.EnvName = 'Production' THEN
'<_span style = "font size: 11; color: black; background-color: coral">' || '<_b>' || TO_CHAR(B.AffectedFrom, 'HH24:MI') || ': ' ||'<_/b>'|| A.ChName || '<_br />' ||'<_/span>'
WHEN C.EnvName = 'Development' THEN
'<_span style = "font size: 11; color: black; background-color: cyan">' || '<_b>' || TO_CHAR(B.AffectedFrom, 'HH24:MI') || ': ' ||'<_/b>'|| A.ChName || '<_br />' || '<_/span>'
ELSE
'<_span style = "font size: 11; color: black; background-color: gold">' || '<_b>' || TO_CHAR(B.AffectedFrom, 'HH24:MI') || ': ' ||'<_/b>'|| A.ChName || '<_br />' || '<_/span>'
END AS ChName, B.ActID, B.ActDate, TO_CHAR(B.AffectedFrom, 'HH24:MI') AS AffectedFrom, C.EnvName
FROM RB_Change A, RB_Action B, RB_Environment C
WHERE A.CHID = B.CHID AND B.EnvID = C.EnvID
ORDER BY AffectedFrom
My Display Type is Custom and my Display Format is #CHNAME#
In this thread (Re: CALENDAR - SQL ORDER BY CLAUSE NOT WORKING I read I would have to insert '<INPUT TYPE="HIDDEN" VALUE="' || p_value || '" />' (in my code it would be into my code '<INPUT TYPE="HIDDEN" VALUE="' || ChName || '" />', wouldn't it?) - but where should I insert it?
Sorry, but I'm very new to APEX, HTML and PLSQL...
Can anyone help me please? I would be very grateful!

Hi Dik!
Thanks a lot for your quick answer.
I just tried out what you said and created a view. I needed to do it with all the joined tables because the date, the time shown and the text shown are in two different tables and later I need them for daylink...
The view is created and looks fine (with all the color I want) and the calendar works - but it hat no effect... The calendar looks just the same like before - unordered... So I undid the change with the view and now I've got the same state as before.
I just used the 'debug'-function of APEX and realised that APEX fetches my SELECT statement and embeds it in an own SELECT statement...
That looks like this:
SELECT * FROM ( - here comes my SELECT statement I described in my first post - ) where ACTDATE >= to_date('20080201:00:00:00','RRRRMMDD:HH24:MI:SS') and ACTDATE <= to_date('20080229:23:59:59','RRRRMMDD:HH24:MI:SS') order by ACTDATE asc
Has got anyone an idea how I can order my data in the way I want???

Similar Messages

  • Anyone notice the Calendar doesn't work properly in the IOS 5?  Can't put a new event in there and can't change calendars

    I just updated to IOS 5 and now the calendar doesn't work properly.  Can't enter a new event or change Calendars.  Nothing updates from the Remiders either.  Anyone have an answer as to what may be wrong?

    I just updated to IOS 5 and now the calendar doesn't work properly.  Can't enter a new event or change Calendars.  Nothing updates from the Remiders either.  Anyone have an answer as to what may be wrong?

  • Iphone 3g: Clicking phone number in calendar doesn't work

    Clicking on phone number in email will prompt for calling the number but the same doesn't work in calendar. Is it a known issue ?

    Adding my agreement to this issue. Since iPhone recognizes phone numbers everywhere else, it's very disappointing that it doesn't work in calendar. This is probably the most important place for phone number recognition. considering there is no cut/paste feature, this means I have to write down the number on paper and the manually enter into the keypad, very inconvenient!
    When this is addressed, it will be very important to include recognition of additional numbers and characters used for conference calls, like the blackberry has done for years.

  • Buzz/alert in calendar doesn't work

    Hi,
    in my MBP 15" retina late 2013 with 10.10 doesn't work the buzz when appears the notice in my notification center. In notification center of system preferences the sound is on but it doesn't work.
    OSX 10.10 Yosemite.
    Regards

    Can you press and hold the Home button a bit longer and use Siri?
    You can make an appointment without opening the Calendar app.
    Check your
    Settings > General > Siri >
      Siri: ON?
       Language: English
       Voice Feedback: Always
       My Info: Yourself as in your Contacts
    Settings > General > Restrictions
       Is Restrictions: OFF?
       Is Siri: ON?

  • Calendar doesn't work in 3.1

    Hi, I am a MobileMe subscriber and have an ntlworld mail account (virginmedia) but I can't accept meeting invites sent from my Lotus Notes work account nor from my wife's Outlook accounts.
    I can accept the invites in Mail in OSX 10.5.8, but not Iphone 3.1
    Hope this major bug will be fixed soon.
    I also can't invite other people to meeting invites I create on my iphone, yet the manuals say I can. Hopefully this bug will be fixed also.

    What's the point in MobileMe then? I signed up and paid for it so I could have a central calendar at home like I do at work!
    I think that's disgraceful to sell a service that doesn't work properly like normal calendars.
    Thanks for your repsonse though Z!

  • 'Minimum purchase order quantity' in info record doesn't work

    Hi,
    I've maintain the value of 'Minimum purchase order quantity' and 'Maxmum purchase order quantity' in info record via t-code: ME12, but it doesn't work.  No any affection happened to the newly created PR.
    Please kindly advise.
    Best Regards.

    Hello Rolf
    The setting you are looking for is done in
    SPRO --> Materials Management --> Purchasing --> Environment Data --> Define Attributes of System Messages --> System messages
    Go to
    Version                    00
    Application Area       06
    Message No            216
    Make the Category to E - Error instead of W - Warning
    Hope this is what you are looking for
    Regards
    Amit

  • Microphone button in calendar doesn't work

    Microphone button in calendar doesn't work

    Can you press and hold the Home button a bit longer and use Siri?
    You can make an appointment without opening the Calendar app.
    Check your
    Settings > General > Siri >
      Siri: ON?
       Language: English
       Voice Feedback: Always
       My Info: Yourself as in your Contacts
    Settings > General > Restrictions
       Is Restrictions: OFF?
       Is Siri: ON?

  • Plymouth doesn't work [SOLVED]

    Hello!
    Plymouth doesn't work.
    I installed plymouth, added plymouth to HOOKS array in /etc/mkinitcpio.conf file, added "quiet splash" to /etc/default/grub file and ran "sudo grub-mkconfig -o /boot/grub/grub.cfg" followed by "sudo plymouth-set-default-theme -R solar".
    File /etc/mkinitcpio.conf
    # vim:set ft=sh
    # MODULES
    # The following modules are loaded before any boot hooks are
    # run. Advanced users may wish to specify all system modules
    # in this array. For instance:
    # MODULES="piix ide_disk reiserfs"
    MODULES=""
    # BINARIES
    # This setting includes any additional binaries a given user may
    # wish into the CPIO image. This is run last, so it may be used to
    # override the actual binaries included by a given hook
    # BINARIES are dependency parsed, so you may safely ignore libraries
    BINARIES=""
    # FILES
    # This setting is similar to BINARIES above, however, files are added
    # as-is and are not parsed in any way. This is useful for config files.
    FILES=""
    # HOOKS
    # This is the most important setting in this file. The HOOKS control the
    # modules and scripts added to the image, and what happens at boot time.
    # Order is important, and it is recommended that you do not change the
    # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
    # help on a given hook.
    # 'base' is _required_ unless you know precisely what you are doing.
    # 'udev' is _required_ in order to automatically load modules
    # 'filesystems' is _required_ unless you specify your fs modules in MODULES
    # Examples:
    ## This setup specifies all modules in the MODULES setting above.
    ## No raid, lvm2, or encrypted root is needed.
    # HOOKS="base"
    ## This setup will autodetect all modules for your system and should
    ## work as a sane default
    # HOOKS="base udev autodetect block filesystems"
    ## This setup will generate a 'full' image which supports most systems.
    ## No autodetection is done.
    # HOOKS="base udev block filesystems"
    ## This setup assembles a pata mdadm array with an encrypted root FS.
    ## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
    # HOOKS="base udev block mdadm encrypt filesystems"
    ## This setup loads an lvm2 volume group on a usb device.
    # HOOKS="base udev block lvm2 filesystems"
    ## NOTE: If you have /usr on a separate partition, you MUST include the
    # usr, fsck and shutdown hooks.
    HOOKS="base udev plymouth autodetect modconf block filesystems keyboard fsck nvidia"
    # COMPRESSION
    # Use this to compress the initramfs image. By default, gzip compression
    # is used. Use 'cat' to create an uncompressed image.
    #COMPRESSION="gzip"
    #COMPRESSION="bzip2"
    #COMPRESSION="lzma"
    #COMPRESSION="xz"
    #COMPRESSION="lzop"
    #COMPRESSION="lz4"
    # COMPRESSION_OPTIONS
    # Additional options for the compressor
    #COMPRESSION_OPTIONS=""
    File /etc/default/grub
    GRUB_DEFAULT=0
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="Arch"
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX=""
    # Preload both GPT and MBR modules so that they are not missed
    GRUB_PRELOAD_MODULES="part_gpt part_msdos"
    # Uncomment to enable Hidden Menu, and optionally hide the timeout count
    #GRUB_HIDDEN_TIMEOUT=5
    #GRUB_HIDDEN_TIMEOUT_QUIET=true
    # Uncomment to use basic console
    GRUB_TERMINAL_INPUT=console
    # Uncomment to disable graphical terminal
    #GRUB_TERMINAL_OUTPUT=console
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    GRUB_GFXMODE=auto
    # Uncomment to allow the kernel use the same resolution used by grub
    GRUB_GFXPAYLOAD_LINUX=keep
    # Uncomment if you want GRUB to pass to the Linux kernel the old parameter
    # format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
    #GRUB_DISABLE_LINUX_UUID=true
    # Uncomment to disable generation of recovery mode menu entries
    GRUB_DISABLE_RECOVERY=true
    # Uncomment and set to the desired menu colors. Used by normal and wallpaper
    # modes only. Entries specified as foreground/background.
    #GRUB_COLOR_NORMAL="light-blue/black"
    #GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
    # Uncomment one of them for the gfx desired, a image background or a gfxtheme
    #GRUB_BACKGROUND="/path/to/wallpaper"
    #GRUB_THEME="/path/to/gfxtheme"
    # Uncomment to get a beep at GRUB start
    #GRUB_INIT_TUNE="480 440 1"
    #GRUB_SAVEDEFAULT="true"
    No sucess. Any help?
    Last edited by joseribeiro (2014-06-11 12:15:30)

    I disagree.
    I don't need to run mkinitcpio -p linux if I ran plymouth-set-default-theme -R solar.
    See the following terminal output:
    # mkinitcpio -p linux
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> Starting build: 3.14.6-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [plymouth]
    -> Running build hook: [autodetect]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [nvidia]
    Building nvidia modules for 3.14.6-1-ARCH kernel...
    Module nvidia/337.25 already installed on kernel 3.14.6-1-ARCH/x86_64
    Ok.
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux.img
    ==> Image generation successful
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> Starting build: 3.14.6-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [plymouth]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    ==> WARNING: Possibly missing firmware for module: aic94xx
    ==> WARNING: Possibly missing firmware for module: smsmdtv
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [nvidia]
    Building nvidia modules for 3.14.6-1-ARCH kernel...
    Module nvidia/337.25 already installed on kernel 3.14.6-1-ARCH/x86_64
    Ok.
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
    ==> Image generation successful
    # plymouth-set-default-theme -R solar
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> Starting build: 3.14.6-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [plymouth]
    -> Running build hook: [autodetect]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [nvidia]
    Building nvidia modules for 3.14.6-1-ARCH kernel...
    Module nvidia/337.25 already installed on kernel 3.14.6-1-ARCH/x86_64
    Ok.
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux.img
    ==> Image generation successful
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> Starting build: 3.14.6-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [plymouth]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    ==> WARNING: Possibly missing firmware for module: aic94xx
    ==> WARNING: Possibly missing firmware for module: smsmdtv
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [nvidia]
    Building nvidia modules for 3.14.6-1-ARCH kernel...
    Module nvidia/337.25 already installed on kernel 3.14.6-1-ARCH/x86_64
    Ok.
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
    ==> Image generation successful
    They are equivalents.
    Last edited by joseribeiro (2014-06-10 18:37:29)

  • Urxvt Conf Doesn't Work [SOLVED]

    Urxvt conf doesn't work — no changes are made.
    This is my ~./Xresources:
    URxvt.depth: 32
    URxvt.background: [95]#000000
    URxvt.scrollBar: false
    As stated in docs, I needed to add xrdb -merge ~/.Xresources to ~./xinitrc.
    Here is that file:
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
    done
    unset f
    fi
    # exec gnome-session
    # exec startkde
    # exec startxfce4
    # ...or the Window Manager of your choice
    setxkbmap -layout lv
    xsetroot -cursor_name left_ptr
    xmonad
    ~/bin/dzconky
    xrdb -merge ~/.Xresources
    Even after full reboot, no changes! There's still the scroll-bar and transparency doesn't work as well.
    Last edited by daGrevis (2012-06-29 19:18:14)

    The problem is your xinitrc.  I gather your dzconky also does not run.  Your window manager needs to be the last line of your xinitrc.
    Also, while you experiment with new settings, you can just run the xrdb command from the command line without having to restart X.

  • Calendar doesn't work any more

    I get a message saying 'there is a problem' so the new entry doesn't show on the web: http://bushcottages.com.au/DC_AvailabilityCal/admin/index.php?id=1# it has to be fixed really quickly as I am going to get double bookings if it isn't; regards, Claudine

    Well... where is a PHP calendar on this page: http://www.dreamweavercalendars.com/standalone-calendars/asp-multi-availability-calendar ?
    My products
    The following products are associated with your Adobe ID, through either registration or product download and installation. We use this information to tailor the page content you view on this site and in our support section.
    Products in use Version Platform Registration date 
      Dreamweaver
      CS3
      Win
      Aug 2, 2008
      I did pay for the calendar but I can’t find where it is filed.
      I am now learning how to make a web page with code only without Dreamweaver because what I see on the design in Dreamweaver is all wrong, (dreamweaver Lodge. gif) if I do a preview (preview Lodge. gif) it is correct and when it is uploaded it also is correct.
      Dreamweaver was working ok when I used tables but it doesn’t like divs, which I am told is better.
      Cheers, Claudine

  • Iphone sync with Google holiday calendar doesn't work

    I have an iphone with IOS 5.1.1 and I'm using Gmail for email, contacts, etc.
    I have already synced my Google calendar with the iPhone Cal and it's working fine. I'm trying now to sync the Google holidays calendars with he iPhone, and it's not working. I've already followed the instructions at http://support.google.com/mobile/bin/answer.py?hl=en&lev=topic&cbid=1nxqge2ur9j7 1&answer=139206&src=cb
    The holiday calendar appears in the list checked , but the holiday itself doesn't appear in the calendar (June 7th is holiday, and it appears in the web and in the iCal in the MAC). I've done the same procedures for my iPad and it worked... The same happens with the birthdays calendar... Any help?

    PA31,
    I believe that you will find Jewish Holiday downloads for desktop, mobile and web calendars | Hebcal Jewish Calendar to be a more reliable Jewish calendar source than Apple Inc.

  • The list view in Calendar doesn't work

    iPhone 3Gs with iOS 4 now can't to show the list mode view correctly in the Calendar. It mixes all meetings and lost any also. When I look with month or day mode it works correct, so I think it is not problem of my calendar data it is problem of this mode, it is a little bug of new firmware.

    http://discussions.apple.com/message.jspa?messageID=11749750#11749750

  • Calendar doesn't work

    Suddenly the calendar won't open on my mac mini, Mountain Lion 10.8.5 (maybe a recent upgrade, not sure).    Works fine on my iphone and ipad, sync-ing fine between those.  Is there a source from which I can download a new version of this app to the desktop?

    The alert 5 minutes before (or whenever you set it) is the alert. There isn't one alert 5 minutes before and another at the start time of the event. Note that for normal (non-Exchange) calendars, you can set two alerts (e.g. 30 minutes before then 5 minutes before the event).
    You do need to have Settings > Sounds > Calendar Alerts set to ON.

  • Auto allocation for a move order with an expired lot doesn't work

    Hello everyone,
    We are facing a major problem regarding the use of move orders for issuing expired lots.
    Scenario:
    1. Create a move order. Fill in: Item, Qty, Source Subinv and Lot. Lot is expired.
    2. Approve move order.
    3. Run "Move Order Pick Slip" with "Autoallocate Unallocated lines".
    4. Open Transact Move Order Form. Try to transact.
    Result:
    No allocations were created.
    If we check row and push "allocate" button result is still "None".
    Only way to finish the process is to open "View/Update Allocations" and pick a locator manually.
    We work with a lot of expired lots, and doing that manually is a lousy workaround.
    Does anyone know if that is standard functionality? Because documentation does not refer this issue.
    Thanks,
    Aaron

    See also:  http://forums.adobe.com/message/4662367#4662367
    -Noel

  • Updated to Mavericks; Now Calendar doesn't work.

    I recently updated my MacBook to Mavericks. When I try to open up my calendar, it becomes inactive and says that it is "Moving calendars to server account". This never goes away even after a few days and then I have to end up force qutting it. How should I fix this?

    neotribeusher wrote:
    I still know the original nickname but when I request a new password, it says it sent one to me but doesn't.
    Check inside your spam folder.
    It was the same email address though. So I don't know. Isn't the Apple ID our email address?
    If that is what you use.  Mine is a junk mail addy.

Maybe you are looking for

  • Pricing Date in Sales Order Documents

    Where can I get the Pricing Date field for sales order? I checked the input screen, there is Pricing Date at both header and item level, but I couldn't find corresponding field in VBAK and VBAP. Thanks in advance!

  • Time_out Dump on this query take too long time

    hi experts, in my report a query taking too long time pl. provide performance tips or suggestions select mkpf~mblnr  mkpf~mjahr  mkpf~usnam  mkpf~vgart            mkpf~xabln  mkpf~xblnr  mkpf~zshift mkpf~frbnr            mkpf~bktxt  mkpf~bldat  mkpf~

  • Schedule Backup on Oracle Enterprise Manager 10g

    Hello All, I am using Oracle enterprise manager 10g for schedule backup, i enter the user and password of operating system (windows XP) in Host Credentials part, but it return this error: Connection to host as user khazaei failed: IOException in send

  • Add gps information

    I know the all new Photos is not a Pro app like Aperture. But in Aperture it was possible to add gps information to photos quite easily. I was able to track my GPS with an App on the iPhone, export the data to an gpsx file, import that to Aperture an

  • ORA-06553: PLS-123: Program too large

    Hi, I have 2 databases, the development database (9i) and pruction database (10g). I have the same programs on the databases, but when I try to execute the package1.program1 for 3000 records in 10g, result in a error: ORA-06540: PL/SQL Compilation er