D&D with two items concurently

Hi all,
is there any posibility to do D&D for two items concurently? I mean that I have two Canvas objects and I want to move with them concurently when I am moving with mouse.
I have such a code where c1 and c2 are Canvas objects. I thought it would work but the result is that moving canvas is only c1.
private function mouseMoveHandler(event:MouseEvent):void
            var dragInitiator1:Canvas=c1;
            var ds1:DragSource = new DragSource();
            DragManager.doDrag(dragInitiator1, ds1, event);
            var dragInitiator2:Canvas=c2;
            var ds2:DragSource = new DragSource();
            DragManager.doDrag(dragInitiator2, ds2, event);               
So what's wrong with this? How should I do it?
//pyso

i think the problem here is that the event is dispatched only for the first doDrag because her it is a serial execution of instructions
try to split  the two drags into two separate functions, mouseMoveHandler1 and mouseMoveHandler2 and then dispatch them from the event!
please let me know if that works
Regards,
Ben Afia Salem
[email protected]

Similar Messages

  • Problem with an item line

    Hi
    One of my customers has created an order with two item lines (10 and 20)
    The first has been delivered and the second item line was used to create a Purchase Order (NB).
    Subsequenlty they found out that they actually needed to delete line 20 which was blocked due to the PO.  They have deleted the PO item line but the PO still exists and blocks for deletion of order item line 20.
    For now the client has agreed to use the 'reason for rejection' function but they would like the PO deleted so that they can delete order line 20.
    How do I delete the PO?
    Thx

    Hello,
    I suppose you used the third party item category for the second line item - 20. So the system first creates a purchase requisition for this item & then this purchase requisition is referred for creating a purchase order.
    Now for line item 20, after sales order the subsequent documents will be
    1. Purchase requisition.
    2. Purchase order.
    SAP doesn't allow to delete an item if a subsequent document exist in relation to it. Now in this case, you have cancelled/deleted the item from the PO but still the line item 20 lies in the Purchase requisition. It will have to deleted from the PR also before deleting it from the sales order.
    Go to VA02 - enter your sales order number - double click on the line item 20 - go to schedule lines - scroll towards the right side to see the purchase requisition (PR) number.
    Now go to ME52N - select the purchase requisition number - delete the line item 20 from here - save the PR.
    Now try to delete the line item 20 from the sales order, the system should allow.
    Reward points if solution helps.
    With best regards,
    Allabaqsh G. Patil.

  • SC (SRM) = PO (BE) with limit item (Itm.Cat = B)

    Dear all,
    in SRM I create a SC with two items, the first item is quit normal (material, cost center assignment, etc). The second item is a copy of the first one, unit of measure is LE. Now when this SC is transfered into the BE I want the PO to contain a limit item ( item category = B). The customer is using the classic scenario and upgraded from SRM4.0 to SRM7.0.
    What are the important flags/tables etc. in BADI BBP_CREATE_PO_BACK, method FILL_PO_INTERFACE.
    Currently I'm filling the following parameters:
    PO_SRV_ACCOUNT,
    PO_LIMITS
    zusätzliche Kontierungsinformationen für Serviceposition
          clear ls_po_srv_account.
          ls_po_srv_account-pckg_no    = ls_po_items-pckg_no.
          ls_po_srv_account-percentage = '100'.
          ls_po_srv_account-serial_no  = '01'.
          append ls_po_srv_account to po_srv_account.
    PO Limits
          ls_po_limits-limit     = ls_po_items-net_price.
          ls_po_limits-exp_value = ls_po_items-net_price.
          APPEND ls_po_limits TO po_limits.
    The PO will be created in the backend with the two items, but the item category of them is blank (= normal item).
    Does anyone of you have an idea what is missing?
    Kind regards,
    Thomas

    Hello Laurent,
    I don't know. I think this is something from former times when they had been running on SRM4.0 and they simply took over.
    The UoM is LE and in the BE there should be an appropriate line item in the PO with category B (= Limit).
    How do I define limit items in SRM?
    Kind regards,
    Thomas
    Edited by: Thomas Mueller on Dec 16, 2011 12:36 PM

  • Vendor open item amount to settle with two different banks  in F110.

    Hi
    Actually client requirement is one vendor line item to settle two different banks. Is there possible in APP program TC F110?
    How we can configure and how to settle one line item with two different banks in APP program.
    Please give me suggestions as soon as possible.
    Venkatesh
    Edited by: vdd08381 on Nov 5, 2011 1:19 PM
    Edited by: vdd08381 on Nov 5, 2011 1:20 PM

    Hi,
    Actually client requirement to work on one line item to settle two different banks.
    Once we have done partial payment to vendor can not give to cheque to vendors. My point view this is not possible.
    Is there any option please post the customization?
    Venkatesh
    Edited by: vdd08381 on Nov 7, 2011 5:36 AM

  • Balance the item 1 - Vendor invoice with two expense items for two co codes

    Hi
    In our case document splitting is active with profit centre balancing.
    When I am posting a FI vendor invoice with two expenditure items to two difference company codes & cost centres, the system is generating the clearing line items but it is not posting and giving an error message that "balance profit centre data is not there in line item".  Since this is a vendor item and no profit centre information cannot be given manually, system has to split the item with relevant profit centre information, right ?  But that is not happening, please help me out.

    Hi,
       Document splitting configuration is done at client level and assigned at company code level.
    Document split is done based on the item categories and base item categories configured.
    This can be done only for the entities inside a company code and not for the company code and it is done to have a Zero balance check in the entities.
    Document splitting is done mainly for reporting purposes.(eg: Segment reporting, Profit center reporting etc.,)
    you are posting for two different company codes in a single transaction means it will be cross company code transaction.
    System will generate two different document numbers for eac line item and a single cross company code transaction number for the entire transaction.

  • Billing orders with two category types of items

    Hello everybody
    I have a doubt, I hope that people help me is this ....
    I have a sales order service and have two items in it, is a service material (Dien) with the item category YBS1 and another is a material stockavel (HAWA) with the item category TAN (Standard) ... So when I make the sale of these materials in a single order and try to sell the bill, is charged only the material with item category YBS1 and not the two categories of materials ....
    Can anyone help me?
    hugs

    dear if you want to make one order for both materials. Delivery related item category and non delivery related item category then there are 3 solutions for this scenario.
    If you want to create delivery related billing for this sale you have to make service material delivery related and make it non valuated stock. when you di PGI this material will also be in delivery and you can create delivery related billing. But i wont recommend this to you.
    Another solution is create separate sales order for service materials and delivery related materials. You need create new sales document type for service materials. I also wont recommend this.
    What i recommend is to use order related billing for this kind of sale in which service and delivery related materials are involved. We are also doing the same in our business scenario.

  • One MIRO document with two different vendors for two different line items

    Can it possible to make MIRO for a PO which is having two conditions(Basic price+Freight) with two different vendors.
    MIRO document needs:
    GR/IR Clearing    Dr.
    Freight Clearing  Dr.
    Vendor RM(X)         Cr.
    Vendor Freight(Y)   Cr.
    Is it possible to post the above document at a time not individually for each condition.

    Hi,
    Yes, It is possible to post Material and delivery cost in one document.where in material supplier is different than the Frieght vendor.
    Itm PK  BusA Acct no.   Description                    Tx     Amount in   USD   
    001 89       130001     Stock-Ingredients               244 0            880.00 
    002 96       320001     GR/IR Account - Ing.            244 0          1,200.00-
    003 86       520002     Ingredients - PPV               244 0          3,297.87 
    004 50       320008     GR/IR Account - Duty            244 0            797.87-
    005 50       320009     GR/IR Account - Fre.            244 0          2,180.00-
    Thanks
    Dinabandhu

  • Help with deletion of two items in my Finder found under 'Shared'

    I would like suggestion on how to delete two items in the Finder. They are listed under 'Shared'
    I have to iMac OSX Yosemite. Can you help?

    They do not have access to your computer. They are broadcasting sharing services to your network, and your computer is detecting them and showing them to you in the sidebar. This is your computer accessing them, and not the other way around. The first is your Epson printer on your network, which has network printing capabilities that it is broadcasting. The other name is too generic to figure out, but is likely a similar networked device, and can be your router, a scanner, printer, or any other such device.
    Configuring the systems to prevent this would be a matter of accessing their setups according to their manufacturers' directions (either by way of a utility program, or a Web page that you log into), and then seeing if there are various network services on them that you can disable to prevent the broadcasting of these services on your network. Unfortunately this is not always possible to do, at least without disabling wanted features (like being able to print via the network instead of using a USB cable), so in general your best bet is to simply ignore these items, or hide them if you do not want to see them.

  • How to enter invoice with two different tax codes in one line?

    Dear friends,
    I have this PO for which I enter the invoice.
    I recieve later a subsequent debit for this PO from the transporter. This subsequent invoice has got extra debits, one with 21% VAT and one with 19% VAT, which means two items with two different tax codes.
    I want to enter this subsequent debit for each item of the PO, and I want to enter both debits in every item of the PO.
    How can I enter in one row in MIRO a debit with two different tax codes.
    Thank you.

    I want in the same line item to enter two tax codes.
    Do you Know if there is any way to do this?
    It is a subsequent debit and it has two items with two different tax codes. I want to enter the subsequent debit for a PO with many items and enter the value of the whole subsequent invoice. So there is the need to enter one line item with two tax codes.
    How can this be done?
    Thank you?

  • Problem with Line Item display of G/L account

    Hi,
    I am struggling with a typical problem that I have two company codes in two different countries.  I have created a tax account with Open Item management and Line Item display in both the company codes.
    When I am trying to post vendor invoices, taxes are being posted on line item wise in one company code but not doing so in other company code eventhough the attributes of the G/L account are same.
    G/L accounts, tax condition types and account keys are same in both the cases.
    Can any body give me an idea to fix the problem.
    thanks in advance,
    Mallik

    HI,
    check the condition types you've defined for the both of the countries
    sprofin accting-f/a gl sett-tax on sales/pur -basic settings-check cal procd--define cond types
    there is a check box named item condition see whether it is ticked for the another company's condn type.
    because due to this only it takes the condn item wise.
    reward pts if it helps.
    Regards

  • FBL5 FIAR - exception aggregation - count customers with open items at key

    Hello gurus,
    I have read the information about counting all values in reference to a characteristic. I manage to count how many customers have a FIAR open item 'billing status' = Open in my FIAR cube.
    Now I am asked to replicate transaction FBL5 of R3. This transaction will give you open items at a given key date by adding
    the items with
    A) Item status = 'O' and posting date <= key date
    and the items with
    B) Item status = 'C' and posting date < =key date and clearing date > key date.
    I calculate the net value by creating 2 restricted key figures and then adding them in a CKF.
    But for counting I have a problem. I can count how many customer make up the open items (case A)
    and how many customers makeup items that where cleared between key date and today.(case B).
    But I cannot sum the two numbers as there might be customers that are counted in both cases.
    For example I have 4 customers that correspond to case A : 1000 1011, 1012 and 1014
    And I have 3 customers that correspond to case B  1000 , 1011 and 1013
    I would like to get 5 as the number of customers that verify either case A or case B (or both).
    Is there a way to do this with the exception 'aggregation 'and 'count all values' property of CKF ?
    Claudio

    Hi,
    The logic given in the above post may be a bit confusing to you. Check out this explanation and try to understand what I mean.
    Posting Date - PD
    Key Date - KD
    Clearing Date - CD
    PD--KD--
    CD
    -O(Status)-C--O-----C
    -5107-----8
    Let me explain the above table.
    Between PD & KD there are 5 count with status'O' and 10 counts with status 'C'.
    Between KD & CD there are c counts with status 'O' & 8 counts with status 'C'.
    This means 5 with status 'C' becomes 7 between KD & CD.
    Similarly, 10 status with 'O' becomes 8.
    The logic I am trying to say is..
    If you don't want to get counts with status 'C'(repeated) as I understood) 7-5 = 2. Show this 2 as count for status 'C' between KD & CD.
    So the table will become like this now.
    PD--KD--
    CD
    -O(Status)-C--O-----C
    -5102(7)---2(8).
    In braces shown are the total with status 'O'/'C' for the dates.
    I hope this will solve your problem.
    Message was edited by: AVR - IGA

  • How to create a invoice with invoice items in SRM?

    Hi experts,
    I am testing my BW custom code for SRM. My question is I have to create a invoice with line item 1 quantiy 20 in SRM - development. After this I have mark line item 1 with a deletion indicator X in SRM and create two more line items and load it again in BW. This time in BW it should delete line item 1 with deletion indicator X and load the two new line items that I created.
    Please tell me the T-code and step by step instructions to create it.
    Thanks in advance.
    Sharat.

    i answered by myself.

  • How do we sync contacts and calendars (ONLY) between two iCloud accounts, two iPhones and one iMac with two user accounts?

    This is complex.  Until today we had one iMac with two user accounts - one for me and the other for my wife.  We sync'd our calendars and contacts between our two user accounts using my iCloud account, thereby keeping our schedules coordinated and our contacts information always the same between us.  Also, as I had an iPhone, I sync'd my phone with my iCloud account, thereby keeping the contacts and calendars in the two user accounts on the iMac AND my iPhone sync'd.  (I also sync'd other things, like Notes and Mail and Safari settings, between my iPhone and my user account on the iMac, but my wife did not want to be burdened with all my emails showing up in her email account and I wasn't interested in hers, etc., so we didn't sync anything between us other than calendars and contacts.)
    We've finally bought my wife an iPhone and set up an iCloud account for her.  And of course she now wants to sync several items from HER account on our iMac to HER iPhone, but I don't want them, just as she doesn't want all of my other stuff.  But we still want our mutual calendars and contacts to sync to HER new iPhone, just like they already do to mine.  But I can't figure out how to CHANGE her iMac user account from using MY iCloud account on the iMac to using HER new iCloud account, and then having HER iCloud account speak to MY iCloud account but share JUST our calendars and contacts.
    Originally I tried a workaround by simply having her iPhone log into my iCloud account.  That works great for the calendars and the contacts.  But...she can't sync anything else from her iMac account to her new iPhone because she's presently "forced" to use my iCloud account.  And neither of us want to sync our other things to each other's iMac accounts or iPhones.  Also as we're both using my iCloud account, in things like the Find My iPhone app, the Cloud is seeking two phones labeled with my name and none with her's.  So we definitely don't want this as the set-up and communications network between our devices.
    We want to set up our users on the iMac to sync to our SEPARATE AND DIFFERENT iCloud accounts and then have those iCloud accounts sync calendars and contacts (ONLY) between themselves, and then push that data to our separate iPhones (or the other way, from either of our iPhones to the individual accounts on our iMac and the other person's iPhone).  Does this description make sense to you?  I've diagramed it nicely using Keynote, but even thiough I can draw it, I can't figure out how to set up and configure all the devices to make it work.  If you would like me to send the Keynote slides (just two of them - the current and desired configurations - please send your email address to me at [email protected] and I'll be happy to forward it to you.
    If anyone can help me set this up I'd be most appreciative!  Thanks so much.  Merry Christmas and Happy New Year to all readers in this community!

    BobT.
    I had the same problem, and decided to look into it last night.
    First of all, the solution I would like to have is for Apple to allow for selection of iCloud accounts per application, i.e. Contacts to one, Photo Stream to another. I believe this would be the most straight forward solution for the problem we are facing. 
    Since this is not an option I came up with a workaround. I was most interested in solving this for Contacts, so this is what I tested for. Now I have all 3 devices with the same contacts.
    1) Turn off iCloud for Contacts on all devices. On the device that has the Contacts list that you would like to propagate to all others select to keep the contacts, and on the others select not to keep them.
       Note that the current backups still exist on iCloud, so in case something goes wrong you can still turn the iCloud for Contacts back on to get your current Contacts back.
    2) In iTunes, sync All Contacts with the phones, starting with the one with the Contacts content you chose to keep.
    From this point on, the 3 devices should sync contacts with each other.
    This, of course, will stop your iCloud backups of Contacts, but I don't think this is really needed. You are already storing copies of your Conacts on 3 devices, which for good parts of the day are likely not all co-located. You also potentially have Time Machine backups turned on, which would mean there is a 4th copy there as well. For the case of Contacts iCloud only complicates matter ... that is until Apple implements the solution I first wrote about.

  • Very Strange Network Issue With Two Guests on 2012 R2 Hyper-V Failover Cluster

    Hi all.  We're having a odd issue with two guests on our 2012 R2 failover cluster.  
    In a nutshell, if we shutdown a particular server (I'll call it Server A) another totally different server (Server B) on the same node loses it's network connectivity to the domain. If we start server A back up, network connectivity returns on server B.
    At first I thought server A might be running a service that was somehow linked to server B, so I decided to disable server A's NIC.  Interestingly, that had no affect on server B's connectivity.  
    The next step I tried was pausing server A and again, no adverse affect on server B's connectivity.  
    Next step was to live migrate server A to another node.  This action did
    cause server B to lose its network connection. 
    One other clue is that if I ping server B from either of the Hyper-V hosts in the cluster, I never lose network connection to server B.
    So I would suspect this is some network issue on the cluster, but I'm kind of at a loss where to go from here.  
    Has anyone seen this behavior before or does anyone have any troubleshooting suggestions I can try?
    Thanks! 
    George Moore

    Hi Sir,
    I'v never seen this before .
    >>Next step was to live migrate server A to another node.  This action did
    cause server B to lose its network connection. 
    They are connecting to same virtual switch ?
    First please run cluster validation to check if there is any error .
    If it is ok , please try the following items for troubleshooting :
    1. shutdown  serverA   serverB
    2. then add another virtual NIC for serverB
    3. start server B  check if the issue happens to both "old" and "new" virtual NIC .
    In addition , you can live migrate both A and B to another node , then try to live migrate A to the original node .
    If the issue persists , I would suggest you to remove that virtual switch on both nodes then re-create them .
    Best Regards,
    Elton Ji
    If it is not the answer please unmark it to continue
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • How can i pay on the apple store online with two credit cards, with two different billing addresses

    I will be greatful if you could answer me this question...
    How can i pay on the apple store online with two credit cards, with two different billing addresses?
    I know that you can use two credit cards to pay an item but the problem is that i can only put the billing address of just one of the credit cards, and since the two cards are from different people (my parents) i can't do it. They live in the same place so i don't know if i should just put one of the billing address.
    Thank you.
    PS. I don't know if this is the right community to ask this, sorry if i'm wrong.

    On the Apple Store "Payment & Pricing" page it states:
    Using more than one payment card
    You can also combine payment methods to pay for your purchase. Choose from the following combinations of credit cards and Apple Gift Cards:
    Credit card(s) - up to two
    Apple Gift Card(s) - up to eight
    Apple Gift Card(s) + one credit card
    During checkout, if you are paying with a gift card issued by a credit card company, you can combine it with one credit card.

Maybe you are looking for