Compare time slot in dates while making drag and drop..

Hi,
The drag and drop is working fine without conditions, but I have to check the time slots between two dates. If the time of both date are same it should not dropped else it can drag and drop. I use the code below, but not getting executed according to condition.. Please provide suggestion and ideas to get it executed..
declare
l_date_value varchar2(150) := apex_application.g_x01;
l_primary_key_value varchar2(150) := apex_application.g_x02;
l_full_time varchar2(150);
l_time_a varchar2(150);
l_time_b varchar2(150);
begin
select
ltrim(replace(to_char(resv_start_date,'hhmiAM'),'00',' '),'0')||','|| ltrim(replace(to_char(l_date_value ,'hhmiAM'),'00',' '),'0')
into l_full_time
from reservation
where resv_no=l_primary_key_value;
select SUBSTR(l_full_time, 1 ,INSTR(l_full_time, ',', 1, 1)-1) into l_time_a from dual;
select SUBSTR(l_full_time, INSTR(l_full_time,',', 1, 1)+1)into l_time_b from dual;
begin
if l_time_a<> l_time_b then
update reservation set RESV_START_DATE = to_date(l_date_value,'RRRRMMDDHH24MISS') where Resv_no= l_primary_key_value;
end if;
exception when others then
Raise_application_error(-20001,'Error'||SQLERRM);
end;
end;
Thanks..

First 3 .as are the component
source. in the last test.mxml file i have written the drag and drop functionality.
can any help me?? please

Similar Messages

  • IPhoto file creation date inconsistencies during drag and drop

    I have noticed that if I drag and drop a photo from iPhoto to Finder, the file creation dates in Finder are inconsistent.
    (This question is related to drag and drop only and not File->Export, which always uses the export date and timestamp for the file creation date and thus does not suit my needs).
    TEST A -- If the EXIF DateTimeOriginated is 01/01/2013, and today's date is 03/03/2013, then:
    In some cases when I drag a file to Finder, the EXIF date is used as the file modification/creation date in Finder
    In some cases, today's date is used as the file modification/creation date in Finder
    In some cases, a date in between the EXIF date and today's date is used
    It appears that for case A1, these are files that do not have a modified copy.  That is, if you select the photo in iPhoto and then click "File" -> "Reveal In Finder", the "Modified File" choice will be greyed out.
    For cases A2 & A3, iPhoto has inexplicably decided to create modified versions of these files either today or sometime in the past.
    TEST B -- I have read that unexplained modifications are tied to the auto-rotate function in cameras, and it does seem to be the case when I performed the test below:
    Select a large group of landscape format photos (these would not have been auto-rotated), then drag and drop to Finder.  The file creation dates are set to the EXIF date
    Add some portrait photos to the group in (1).  Now the file creation date of ALL photos including the non auto-rotated photos are set to the current date
    The behaviour in B2 is clearly wrong, since the landscape photos should be the same as in B1.  This is bug #1.
    Furthermore, iPhoto appears to be inconsistent with when these modifications are made.  For example, I dragged & dropped an auto-rotated photo on 02/02/2013, then dragged & dropped it again today, then the file creation date in Finder (and also the date of the modified file in iPhoto, as shown in iPhoto File->Reveal In Finder->Modified File) can either the EXIF date (01/01/2013), the late of the last drag & drop (02/02/2013), or today's date (03/03/2013); there does not appear to be any rhyme or reason to this.  This is bug #2.
    In any case, saying "you should never use drag & drop in iPhoto" (as I have read in some other forum posts) isn't a solution, because Apple should either (a) support this function correctly or (b) remove it altogether.  Furthermore, I regularly burn photos to disk for others so having the file date and timestamps correctly set to the EXIF date helps keeping the photos sorted in the directory listings for multiple OS, so File->Export isn't a solution.

    File data is file data. Exif is photo data. A file is not a photo.  It's a container for a photo.
    When you export you're not exporting a file. You're exporting a Photo. The medium of export is a new file. That file is created at the time of export, so that's its creation date. The Photo within that file is dated by the Exif.
    There are apps that will modify the file date to match the Exif.
    The variation you're seeing is likely due to the changes in how the iPhoto library works over the past few versions. Drag and drop is handy, but is not a substitute for exporting, nor intended to be.

  • Do I need to have data before performing Drag and Drop????

    I have gotten drag and drop working with Swing in JDK 1.4b2 using "URL-based" files instead of operating system native files. The way this was accomplished by creating a wrapper class that sub-classed File and would download the contents of the URL to a temporary file and then initiate a normal drag and drop operation using the normal java file mechanisms. However, when you have a large file, the operation can take too long since I am fronting all of the effort at the start of the drag. I would like to be able to delay the need to produce the bytes/files to give to the operating system until after there has been a successful drop, at which point I can do the heavy lifting and raise a dialog telling them that the action is commencing. As best as I can tell, you must have all of the data BEFORE any operation (which could be a potential design flaw!!)
    So, is there a way to get a hook that there has been a successful drop to a vm-external drop target before the VM gives the data over? Even if I create my own data flavor (which isn't well documented outside of Text types) won't I still run into the same problems? Am I just overlooking something simple?
    Thanks for your help.

    Hello
    I've had the same problem, but take a look at: http://foxtrot.sourceforge.net/
    You can use their API to start the long consuming time job (reading files from the network) and also to paint a progress bar, showing the progress in the Event Dispatch Thread.
    This is how I've solved my problem:
    I've passed a MyTransferable object to the startDrag method of the DragGestureEvent event.
    In the getTransferData method of MyTransferable object (that implements Transferable interface) I've used the Worker.post method of their API which reads the file from the network and updates a progress bar.
    The API lets the Event Dispatch Thread enter but not return from the listener method (getTransferData in my case), instead rerouting the Event Dispatch Thread to continue dequeuing events from the Event Queue and processing them (repaint the progress bar). Once the worker thread has finished, the Event Dispatch Thread is rerouted again, returning from the listener method.

  • Did my first back up today using external hard drive and time machine now i can't drag and drop

    Hi, i did my first back up today using time machine it all went onto my external hard drive fine. Now i cant drag and drop anyhting. I assume ive cahnged some settings in time machine but cant figure it out what to do can some one help ?
    thanks

    Brandbasher wrote:
    Thanks Pondini but i have closed time machine, removed external hard drive.
    Did you eject it first?
    Now i cant drag and drop anything on my desk top, or mail or any other application. Ive tried moving folders, documents none of it works. Even moving around documents within a folder, it wont let me chnage the position of files.
    That shouldn't be related to Time Machine (especially if the backups aren't mounted).
    What happens when you try those things?  Do you get any messages?  Anything you can post a screenshot of?
    Have you tried a Restart?
    Does it happen in another user account?  (If you don't have one, create one via System Prefs > Users & Groups.)

  • Itunes not moving past "preparing to update" while manually dragging and dropping music files

    Hello there. I recently updated my iPhone to iOS 7.1. After the update, I noticed that I cannot transfer music to my phone by dragging and dropping. I though it may help if I upgrade my iTunes to the latest available version from the Apple website. That didn't help either. When I go to the "Apps" tab and drag and drop anything from the Windows Explorer to the apps, it gets added. It's only getting stuck at "Preparing to Update" when I add music from within iTunes library. If I disconnect during this sync and reconnect later, the songs do no appear in the phone but appear in the "on this iphone" tab as grey colored and cannot be played.
    Any help wuld be appreciated.
    Thanks. LD.

    I have the same problem than you guys and I can fixed it just deleting the ebooks that I had on my device. I deleted them from iTunes on the device books list in my iphone. Presumibly some epub file was either corrupted or broken. I've got the idea and the possible reason from "twerppoet" at http://www.ipadforums.net/threads/help-my-itunes-are-taking-forever-to-update-fi les-on-ipad-when-i-transfer-ebooks.60436…
    Hope that helps.

  • Drag and Drop won't work and Application icons turned to folders

    Today I lost the ability to drag icons. After a bit of searching on the internet I read that deleting the Library/Cache folder might clear it up. I did so, then rebooted the computer.
    Now all my Application icons have become folder icons. What's worse is all my files show a blank icon and say there is no application present to open them when I attempt to open them.
    And I still can't drag my icons.
    What should I do?
    If I could just get drag and drop back in action I could back up my data to my external HD and do a fresh install.
    Or is there some way to move files without dragging them?
    Is there some way to get the Cache folder back to normal?
    I've already repared premissions.
    I'm running OS X 10.2.8
    700 Mz eMac Mac OS X (10.2.x)

    Here's more on Drag+Drop;
    Here's Apple doc.#107247. Apple says to restart your Mac as many times as it takes to allow drag and drop again. This problem is limited to some Jaguar users. It may take numerous restarts.
    It is also suggested you install the 10.2.8 Combo update. You can install right over your present 10.2.8 with no issues. Make sure you unplug all USB and FireWire before installing. Just to be safe, Repair Permissions before and after the install.
    If none of the above works (make sure you restart 100 million times!) download and install the free Dragster 1.61 program which addresses this issue.
    Cheers!
    DALE

  • Iphone syncing and drag-and-drop hang

    Two problems:
    1. When syncing my iPhone 4s (IOS 7.0.3, Macbook Pro Mavericks OS X 10.9), it hangs on the last step "waiting for changes to be applied".
    2. Immediately after reinstallation of IOS 7.0.3, I can drag and drop music onto my iPhone from the iTunes library, but after a while the drag and drop fails. When this happens, the only way to get music onto the iPhone is by downloading it from the cloud - which is very expensive for me.
    I had no problems with Mountain Lion and with the previous iPhone software. I have had this problem only since installing Mavericks and IOS 7 - which I did at the same time.
    Come on Apple! If I want to deal with Microsoft problems, I would install Microsoft! I don't expect this kind of hassle with Apple!

    Music purchased on your iPhone should be transferred to your iTunes library during the sync process with iTunes. Have you checked your iTunes music library for this music? In addition under Store in the iTunes source list, a store playlist should have been created named - Purchased On - the name of your iPhone. Was this not created?
    BTW - movies/video cannot be purchased with an iPhone.
    What are your settings for syncing music under the Music tab for your iPhone sync preferences? If you select to transfer more content than your iPhone can store, you should be provided an error message indicating the selected content cannot be stored and I believe a prompt such as do you want iTunes to make a random selection of what will be transferred.

  • Dragging And Dropping Files Onto A CD / DVD In Tiger ?

    When I wanted to make a data CD in Panther (and earlier OSs) I simply dragged and dropped the files onto the CD icon.
    If you do that in Tiger it appears that all you are copying is an alias (with its little curved arrow).
    I have discovered (by experiment) that to copy onto a CD you must hold down the Option key while you drag and drop.
    Is this correct and if so can anyone tell me why the method has been changed?
    Ian.

    Hi Ian
    Aliases appear because you are not moving the files but burning them to a disc. The file will burn. You do not need to press the option key. All is explained in your Mac OS Help under "Burning a CD or DVD". You might also want to read about burn folders in the Help
    Matthew Whiting

  • Drag and drop ALV to table control

    Hi all,
    Does anyone know if it is possible to program the drag-and-drop functionality from an ALV list to a table control? I would like to have this feature to let the user enter data on 1 screen. On the left part the user sees an ALV list and on the right the user sees the online transaction. I would like the user to enter data simply by drag and drop instead of having to enter the data.
    Does someone has a sample program for this?
    Regards,
    Kris

    Hi Kris
    I can download the programs and send them to you, but you should give me your e-mail.
    Anyway you can use Drag and Drop if you build your table control by ALV, i.e. ALV GRID.
    But I'm using 4.7 and I don't know how class CL_GUI_ALV_GRID is in your release, I believe the release 4.6B is one of first release whit this class.
    Max

  • Drag and drop onto a cd loses quality

    I shoot in RAW and the file sizes are large and I can manipulate the e-mails BUT
    I noitced that when I drag and dropped RAW photos on to a CD to burn the jPeg qulaity dropped.
    For instance a 14.5mb drops to 537kb..
    I would guess I need to change something and would like help with the issue.
    Thnak you,
    Greg

    Hi Greg -- I really wish I could retract my post.  It doesn't read at all the way I thought it did.  Please accept my apology.  What I was trying to say is that as a means of exporting, drag-and-drop is effectively crippled in Aperture.
    Aperture's complexity makes dragging-and-dropping Images to create and export files unworkable without additional input.  The designers made, imho, a good decision in making drag-and-drop of Images from Aperture to another program equal to exporting the Previews of the dragged Images.
    Again, my apologies -- and my thanks for your soft handling of my rudeness.
    Cheers,
    --Kirby.

  • Drag and Drop Problem, Drag Enter not getting called - Need Help

    While doing drag and drop on the nodes of JTRee dragGestureRecognized method is getting called,
    but after that no method is getting called, not even dragEnter.
    I am using TreePath as the Transferrable Object.
    public void dragGestureRecognized(DragGestureEvent gestureEvent)
               Point point=gestureEvent.getDragOrigin();
              TreePath path=sourceTree.getPathForLocation((int)point.getX(),(int)point.getY());
               transferable = new TransferableTreePath( path );
              source.startDrag(gestureEvent,DragSource.DefaultMoveNoDrop, transferable, this);
              System.out.println("Drag Gesture Recognized method over");
         }

    you're most welcome, Jon, and it's this board, which 'animates' me to do it that way and this way, and find out the differences..
    but, indeed: the 'settings' of a photo should be 'accessible' in both ways..
    ' cause, in MY workflow in iMHD6 or FCE, I FIRST import the video, and more important: the audio-track, which I 'spice up' with additional footage, as stills...
    .. but I've never done that in iM08, which is for my projects still in 'experimental use'...- (I LOVE those picture settings, de-saturating clips etc....), I get used to the many audio-layers in FCE ...
    ... and: lately, tought some iMovie-beginners (a photographer and a print-designer), with zil background knowledge of any iMovie version, the first steps with iM08... they want to use it to 'glue' some impressions together, they shoot while doing their photo-jobs.. and they were very impressed and excited!... +sooooo easy+ ... yepp, the User Experience IS breathtaking, awesome, groundbraking

  • Flash Proffession CC 2014 HTML5 Canvas drag and drop not working

    Hi,
    I am making drag and drop in Flash professional CC 2014 using canvas and it is working fine on desktop but same when I am testing in Android tablet it is not working.  Can any one please advise how to make drag and drop application from Flash CC 2014 which will work on both web/pc desktop HTML5 canvas and all android devices.
    Thanks

    I just discovered something.  What I meant above is that I cannot drag and drop files from the "Media Browser" panel.  Surely that should be possible.  After all, that is how you browse your music files.  If I first double click a file in the browser so that it opens in the "Files" panel, I can then drag and drop files from there.  That is ridiculously tedious however because that opens the wave file and closes the "CD Layout" panel.  I then have to reopen the "CD Layout" panel before I can drag and drop a file.  I'm pretty sure you should be able to simply drag and drop from the Media Browser.  Any comments from Adobe?

  • Recommend me a good drag and drop tutorial

    I need to make a movie whereby the user drags four items onto 4 targets and achieves a result as each object lands on the target, such as a sound. and then a well done statement at the end.
    Can anyone recommend me a place where I can download such a file so I can manipulate it? I figured an hour ago when i sat at my computer that I would find one easily, but I'm really stuck now. can anyone suggest a tutorial/ site where I could get a free download of an advanced drag and drop like this?
    I'd really appreciate your help!
    Thanks.
    Niamh.

    These are the 2 good tutorials that helped me in making Drag and Drop in flash : http://www.flashvalley.com/fv_tutorials/advanced_drag_and_drop_in_Flash/
    http://www.actionscript.org/resources/articles/26/1/Drag-n-Drop-and-Drop-Targets/Page1.htm l
    Thanks,
    Sudheendra

  • How to reflect a new field in Bank data while making payment through F-53?

    Hello Experts,
    How can i reflect a new field (payment reference) in bank data while making payment through F-53?
    I have tried to do it by Field status group(OBC4) but the same is replicating in vendor invoice but not in vendor payment.
    I tried it at both level,fsg anf posting key,But no use.
    Is there any other process to make available and required field in BANK DATA of vendor payment?
    Please suggest .
    Regards,
    Sumeya offrin

    Hello Sumeya,
    Please consider note 145864 which explains what you have to do to
    make this field visible in your selection criteria:
    "In Transaction FB00 (Financial Accounting Editing Options -> Open items
    activate the flag 'Payment reference as selection criterion'.
    This is valid for incoming payment; please test if the same procedure
    is valid for outgoing payment as well.
    I  check the  issue, and unfortunately these function seems to not be supported for vendor open items.
    When you try to select the 'Payment Reference' in Additional selections
    the following messages is arised:
    'No account specified, items selected via document no. or reference'
    That means,when you do not specify an account in F-53 you can only
    via Reference and/or document. This is not a bug but system design.
    For additional reference you can check the note 451105.
    The note made clear that the specification of an account is required for vendors during the selection via payment
    reference.
    Kind Regards,
    Fernando Evangelista

  • Can't drag and drop files into Attachments while in Administrator mode

    I can drag and drop files into attachment easily when I'm not in Administrator mode. But I need to be in Administrator mode at work and therefore for some reason I cannot drag and drop files into attachments; I'm forced to manually search and select particular files for attaching, which significantly slows my day-to-day work.
    Is it a bug?
    I have the up-to-date version of Thunderbird and I use MS Windows 7 Ultimate.
    Any help would be highly appreciated.
    Thx

    To diagnose problems with Thunderbird, try one of the following:
    *Restart Thunderbird with add-ons disabled (Thunderbird Safe Mode). On the Help menu, click on "Restart with Add-ons Disabled". If Thunderbird works like normal, there is an Add-on or Theme interfering with normal operations. You will need to re-enable add-ons one at a time until you locate the offender.
    *Restart the operating system in '''[http://en.wikipedia.org/wiki/Safe_mode safe mode with Networking]'''. This loads only the very basics needed to start your computer while enabling an Internet connection. Click on your operating system for instructions on how to start in safe mode: [http://windows.microsoft.com/en-us/windows-8/windows-startup-settings-including-safe-mode Windows 8], [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-7 Windows 7], [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-vista Windows Vista], [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx?mfr=true" Windows XP], [http://support.apple.com/kb/ht1564 OSX]
    ; If safe mode for the operating system fixes the issue, there's other software in your computer that's causing problems. Possibilities include but not limited to: AV scanning, virus/malware, background downloads such as program updates.

Maybe you are looking for

  • File Adapter to DB

    Hi, I have order information in two files (OH231456.txt and OD231456.txt). Both the files contains information on the same order. One is Order Header and another is Order Body. I'm reading the each file with a file adapter and passing each generated

  • This should be an easy one... Where is IDVD located?

    I bought my MacBook 2 months ago and have all original disks but none clearly comes up with IDVD plainly labeled.... My IDVD bounces on the bottom, has the header but will not load up... I want to try and reinstall but didnt want to back up everythin

  • Shoppin cart getting approve after rejection in BADI WF

    Hi all, I am using Item level SC Approval WF WS1450000015. When The SC is being rejected its getting approved. And the Status at the header level is coming as approved and item level atatus is Rejected. Has anybody else has faced this prob? Any sugge

  • HOW TO DOWN LOAD IOS 10.7

    how to download IOS 10.7

  • Regarding Data base Adjustment

    Hi All,              while adjusting data base in SE14 i got an error in converting QCM8TAB to TAB so i unlock the table and continue. Actually in this process QCM8TAB is a temporary table its need to be deleted after adjusting. but because of the pr