NativeDragManager and canceling a dnd operation

Hi all,
I'm developing an HTML/JavaScript based AIR 2.0.3 desktop application where I want to make use of the File Promises APIs. Here's what my code looks like:
var cb = new air.Clipboard(), promises = [];
for(var i = 0, l = this._urls.length; i < l; i++) {
var fp = new air.URLFilePromise();
fp.request = new air.URLRequest(this._urls[i].url);
fp.relativePath = this._urls[i].fileName;
promises.push(fp);
cb.setData(air.ClipboardFormats.FILE_PROMISE_LIST_FORMAT, promises);
air.NativeDragManager.doDrag(window.htmlLoader, cb);
So, I can pop a few urls into the clipboard and have them download to the local file system when the user drags an few files out of my AIR application.
Here's what I'd like to be able to do though:
While the user is dragging the files out of my AIR application, I'd like to be able to cancel the dnd operation to prevent them from dropping them based on certain criteria. Is there any way to do this? I tried invoking the air.NativeDragManager.dragInitiator.stopDrag method, but no luck there. I tried dispatching a NATIVE_DRAG_COMPLETE event to try to trick the NativeDragManager into thinking that the drag operation had stopped, but no luck there either.
Anyone any ideas on this
Cheers
Sean
Also - is anyone aware of a way to customize the little sprite that appears beside the user's cursor when they start a native drag and drop operation? I'd like to be able to display a thumbnail of the file the user is dragging out of my AIR application beside their cursor instead of the default 'jpeg' avatar/sprite during a drag and drop.

Tried the following code in an attempt to fake out an artificial drop:
window.htmlLoader.addEventListener(window.runtime.flash.events.NativeDragEvent.NATIVE_DRAG _START, dojo.hitch(this, function(evt) {
// evt.dataTransfer here is undefined ... cannot use setDragImage() function to style the avatar which appears beside the user's mouse
window.htmlLoader.addEventListener(window.runtime.flash.events.NativeDragEvent.NATIVE_DRAG _ENTER, dojo.hitch(this, function(evt) {
// thought that this would force the drop, but no dice
// air.NativeDragManager.acceptDragDrop(window.htmlLoader);
window.htmlLoader.addEventListener(window.runtime.flash.events.NativeDragEvent.NATIVE_DRAG _UPDATE, function(evt) {
if(aCertainConditionIsMet()) {
// dispatch a drop event which will be caught in the NATIVE_DRAG_ENTER callback above
window.htmlLoader.dispatchEvent(new window.runtime.flash.events.NativeDragEvent(window.runtime.flash.events.NativeDragEvent.N ATIVE_DRAG_DROP));
I get the feeling from the code above that I'm trying to force this functionality - is what I'm trying to achieve advisable/possible with AIR?

Similar Messages

  • ORA-01013: user requested cancel of current operation Disconnected from Ora

    Hi Hussein;
    When i run my script for cold backup in r11.5.10.2 solaris 9.2.0.8 database it gives me:
    ORA-01013: user requested cancel of current operation Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.8.0 - Production
    What is matter?

    Hi,
    Run this query to determine the session details of the OS PID:
    SQL> select s.sid, s.serial#, s.username, s.osuser, p.spid, p.terminal, s.program
    from v$session s, v$process p
    where paddr=addr
    and spid='<OS PID>';Regards,
    Hussein

  • Pick list date must be between order date and cancellation date

    Hi all
    A client gets this error:
    Pick list date must be between order date and cancellation date Message[173-89]
    The date is between that range.
    What else could be the reason for it.
    Thanks

    Hi
    Since the message you received is very user friendly - date must be between....
    I guess you have two situation
    1.Either operation is incorrect
    - Create a similar scenario in  your test environment
    -Are you receiving same error
    -Test with only one item so far
    -Check what is the result
    2 . You probably need to upgrade your patch level
       It might be coming from Application error
    Hope this helpls
    Bishal

  • ORA-01013: User requested cancel of current operation (#1013)

    Hi Guys,
    I have an application and in particular an append query that inserts rows into a linked table. I keep on getting this error, (although the code works fine in enterprise manager, and code-imports ok).
    I did not cancel the query but it seems to think it has. The insert/append query starts and prompts me for the username and password, this works fine, it just stops half way or beggining etc...
    This is the error:
    ORA-01013: User requested cancel of current operation (#1013)
    And this is the error on Help file:
    ODBC – call failed. (Error 3146)
    Using an ODBC connection, you tried to perform an operation on data in an ODBC data source. This error may occur when the ODBC data source is on a network drive and you are not connected to the network. Make sure the network is available, and then try the operation again.
    Cheers
    Champinco

    Does "linked table" imply that you're using Access as a front-end for Oracle? I know that Access sets a query timeout value when it works with ODBC connections and this error generally occurs when you have a query that exceeds that timeout. I don't know whether Access lets you adjust that timeout, but assuming you're using the Oracle ODBC driver, you should be able to disable query timeout in the DSN configuration.
    Justin

  • Hi, i am getting oracle error ora-01013 user requested cancel of current operation.

    I know this is timeout error however my select query simply returns count from 2-3 tables.. any help would be appritiated, please help me.

    Hi Ramin,
    Thanks for reply. Below is the query i am running,
    SELECT COUNT(TRN.TRANSACTIONID)
    FROM TRANSACTIONDATA TRN,
    CONTENTDATA CND,
    ACTIVITY AC,
    ACTIVINVOL AVL,
    PARTY PR
      WHERE TRN.T_ID=CND.T_ID
    AND CND.CD=AC.CD
    AND AC.AD=AVL.AD,
    AND AVL.PRD=PR.PRD
    AND PR.SPRI=42345
    AND TRN.LUT > '16-JUN-2013'
    AND UPPER(TRN.T_ID) LIKE 'ONE AND DONE COM%' ;
    WHICH OCCURS ERROR ora-01013 user requested cancel of current operation.
    THANKS
    DESHMUKH

  • Message: ORA-01013: user requested cancel of current operation

    Hi,
    I have been working an issue involving an application that is receiving "Message: ORA-01013: user requested cancel of current operation" errors. These errors are seen in the Application servers which are 6, w2k3 Standard sp2.
    My problem is the users are not the ones requesting the cancel. I have worked with my application support dept and they have informed me the timeout settign is 2 seconds. As you can see in my list below these transactions are taking longer then 2 seconds. A good transaction should take less then 3ms.
    Here is a short log of bad times this has occurred:
    Duration
    (in ms) Error Time
    2226       2013-01-22 12:30:11.023
    2006       2013-01-22 12:30:10.827
    2833       2013-01-22 11:38:56.813
    2026       2013-01-22 11:15:28.490
    2026       2013-01-18 15:00:24.930
    2990       2013-01-21 04:47:10.317
    2026       2013-01-18 11:14:45.370
    10910    2013-01-18 11:14:33.673 
    2026       2013-01-18 11:08:39.970
    2140       2013-01-18 11:08:33.310
    2140       2013-01-18 11:08:31.620
    2230       2013-01-18 11:08:30.330
    2130       2013-01-18 11:08:25.737
    3506       2013-01-18 09:00:15.453
    4390     2013-01-17 11:44:55.243
    9793     2013-01-17 11:44:55.233
    6216     2013-01-17 11:44:54.317
    4800     2013-01-17 11:44:54.313
    8443     2013-01-17 11:44:54.313
    2006     2013-01-17 11:44:52.980
    3143     2013-01-17 11:44:50.850
    3760      2013-01-17 11:44:47.697
    3406      2013-01-17 11:44:47.693
    Example's of good
    Duration
    (in ms) Event_Time
    3 2013-01-17 11:44:50.560
    0 2013-01-17 11:44:50.410
    3 2013-01-17 11:44:50.233
    0 2013-01-17 11:44:50.213
    0 2013-01-17 11:44:50.013
    3 2013-01-17 11:44:49.813
    0 2013-01-17 11:44:49.793
    3 2013-01-17 11:44:49.627
    0 2013-01-17 11:44:49.537
    0 2013-01-17 11:44:49.363
    0 2013-01-17 11:44:49.140
    3 2013-01-17 11:44:48.097
    3 2013-01-17 11:44:46.723
    3 2013-01-17 11:44:46.117
    3 2013-01-17 11:44:46.000
    We can't up the timeout setting in the application, We've already looked into it and theres to much red tape for us to cut in order to implement that setting.
    Recently our DB's were upgraded from Oracle 11.2.0.2 to Oracle 11.2.0.3. The very next day is when we started receiving these alerts.
    Any thoughts?

    What's it doing during these bad transactions? Is there a difference between what those are doing and what the fast ones are doing?
    Off the top of my head with so little information, the only thing I can come up with is that a lock is being held which is delaying some of the transactions from completing until after the timeout hits.

  • Open and cancelled Quote Report

    Hi,
    Can anyone give me the information  for getting open and cancelled Quote Report?

    I hope you are using reason for rejection for cancelling quotations. If that is the case, you can use transaction VA25 to view the list of quotations. Here you can filter on two columns status and reason for rejection to view the report as per your requirement.
    Regards,
    GSL.

  • Mark waiting and cancelled tasks completed

    Hi All,
    is there sql somewhere that can mark certain tasks that are in waiting and canceled status to Completed?
    Thanx.
    Fred

    I would suggest using the APIs to update the status or use the manuallyComplete API instead.
    -Kevin

  • Repeated charges and cancelled charges

    What xxxxxxxxx is going on with automatic charges being put on my checking account, cancelled, and put on, and cancelled? This has been happening all day. This is happening at $25 per transaction.

    Davaronio wrote:
    This is happening at $25 per transaction.
    Hello and welcome to the Skype Community!
    According to your account it has also happened with $10 transactions.
    I'll check and advise. Sorry for the inconvenience.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Void and Cancelled Checks

    Hello All,
    What is the difference between void and cancelled checks?
    Thanks,
    Deki

    A voided cheque is one where the cheque number is marked as void but the payment document still exists. For example if a cheque was torn and you want to assign the payment to a different cheque.
    A cancelled cheque is when you did not intend to make that payment so you void the cheque and reversed the payment.

  • Customer invoice doument and cancelled document are showing under openitems

    Dear All,
    I have created customer invoice in VF01 and cancelled the invoice in VF11.
    1.System is showing Invoice document and cancelled document under open items list in FBL5N customer line items.
    A. Is this correct?
            or
    B. When we cancelled the invoice document it should automatically go to cleared items list?
    Kindly provide me what is the correct?
    Thanks & Regards,
    Saisri.

    Hello,
    Once you cancelled the invoice document then you have to clear manually those items in tC: F-32. If you are not cleared then system will show you as open item. After cleared in F-32 then status will change from Open to Close.
    Thanks
    Para

  • Infotype needed  for firm booking and canceling at PV12 transaction.

    Dear All,
              I am workflow consultant.I am not well aware of infotype details for the following scenario.
              I am now involved in workflow development for SAP HCM training and event management.
              When firm booking or cancel booking is done at PV12 transaction, workflow should trigger.
              Should workflow trigger on booking or canceling it, I have to maintain infotype details in HR master tables.
              So, please state about what is the infotype for firm booking and cancel booking for which I'll be grateful.
    Thanks and regards,
    S.Suresh

    Dear all,
                  Any one one know where to check for the infotype which is getting affected when firm booking or cancel is made in PV12 transaction?
                  Please suggest for which I'll be grateful.
    Thanks and regards,
    S.Suresh

  • I started my update for ios 5.1for iPhone 4s and cancelled it have way through now it says it's downloaded but really it's not the update is still there and when I try to update it it says unable to install update : an error occurred installing iOS 5.1  ?

    I started my update for ios 5.1for iPhone 4s and cancelled it have way through now it says it's downloaded but really it's not the update is still there and when I try to update it it says unable to install update : an error occurred installing iOS 5.1  ?

    See Here... Unable to Update or Restore...
    http://support.apple.com/kb/HT1808

  • HT1918 i have recently moved from the uk to australia and cancelled my uk debit before the payment was processed for songs i bought in itunes. i have tried to edit my billing info with australian debit details but the site says 'invalid card' how can i fi

    i have recently moved from the uk to australia and cancelled my uk debit before the payment was processed for songs i bought in itunes. i have tried to edit my billing info with australian debit details but the site says 'invalid card' how can i fix this?

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • My daughter who used to have an apple account and cancelled it is still having money taken out of her account.?

    MY daughter who used to have an apple iTunes account and cancelled it is still getting money taken out of her account what do I do guys to sort this out and get her a refund.

    If she logs into her account (an account can't be cancelled or deleted, you can only stop using it) on her computer's iTunes via the Store > View Account menu option, there should be a Purchase History section with a 'see all' link to the right of it - clicking on that should then display a list of her purchases. If she no longer has iTunes installed then she might be able to see recent purchases via this page : http://reportaproblem.apple.com
    Did she have any auto-renewing subscriptions that she didn't stop ? There are instructions on this page for managing and stopping them : http://support.apple.com/kb/HT4098
    Depending upon what the charged are, she can try contacting iTunes Support and see if they will refund or credit her : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

Maybe you are looking for