Is there a way to process multiple asynchronous calls individually (instead of all at once)?

Hello,
I have a function that saves a record using a RPC call (asyncToken with a new responder).  When I save an individual record (pressing "s" key), it works fine.  However, when I attempt to save multiple records simultaneously (bound to "v" key) (I have a for loop running through the selectedItems in the datagrid), it performs strangely.
For anyone who hasn't experienced this, the successive calls seem to get stacked (literally - i.e. using a stack) and processed at the end of all operations in that block of code (I had trace functions before and after the call that were executed before I saw the result confirming this).
What I would like to do is to simulate multiple AsyncToken usages with a single click, but still have them all occur individually since right now, the function saves the last item in the stack 8 times instead of saving each of the 8 items separately.
OR
Is there another means of RPC using something like "interruptToken" as opposed to asyncToken?  (In most other areas I've seen, asynchronous calls are performed as interrupts and dealt with immediately, thats why this procedure confused me for a bit)
Thanks in advance,

The second paragraph you posted is definitely worthwhile - still figuring out some of the inner workings of Flex calls (not just RPC stuff) that I use as I am pretty new to flex.
I don't have the code with me at the moment, but I think I have to use separate calls to the save function.  My situation is this (and I plan on updating with code on Monday if necessary):
I have a datagrid that is populated using a single RPC (which is loaded into an arrayCollection first then the datagrid).  Changes are made to the datagrid through a copy/paste function that I made, but these changes are only reflected on the datagrid (i.e. not in the dataprovider).  When the user hits "save", the selected line (selectedItem actually - i.e. not an index but the object itself) is passed to another class which contains a modified version of my "modify data" function (brings up a dialog after choosing a given line allowing editting/validation of certain fields regarding the selectedItem).  This changed version of "modify data" is then called and immediately closed effectively saving this record (without allowing the user to alter fields - so they don't have to hit save twice).
With the copy/paste function, I make all of these changes en masse and then have a loop that goes something like
for each (_object:Object in myDatagrid.selectedItems)
     callSaveFunction(this, _object);
which ideally loops through the data and saves each item that has been changed.  If there is a way to save all of the data in the datagrid simultaneously, I would appreciate a bit of help there (perhaps dealing with the bindings - right now I have the object I save as the destination and the source is myDatagrid.selectedIndex.[field name]).
Good to know about the other stuff, though - my understanding was a little bit lacking before

Similar Messages

  • Is there a way to gift a playlist of say 10 songs all at once rather than one at a time?

    Wanting to send small playlists as valentine gifts but can't figure out how to do it. I would like to gift them all at once rather than one at a time.
    Is it possible?
    Thanks,
    Lis

    Not that I have encountered, but if your provider supports webmail, you can generally accomplish it that way.

  • Importing a lot of video clips from a Sony camera to FCE; during the Log and Transfer process, is there a way to add multiple clips to the browser instead of one at a time?

    Importing a lot of video clips from a Sony camera to FCE; during the Log and Transfer process, is there a way to add multiple clips to the browser instead of one at a time?

    Select one and click cmd-A which selects them all.
    Then click the import button if it hasn't started already.

  • __Is there a way to 'merge' multiple curves into a single curve?

    __Is there a way to 'merge' multiple curves into a single curve?
    By this I mean I have file with 2-12 curve layers - I wanted to 'merge' the curves so that I can end up with a single curve with the attributes of many. Maybe is there a script that would do this?

    I don't mean to be critical, but how do you get to a situation where you have 12 successive Curves layers?
    The advantage to a Curves layer is that you can adjust and re-adjust it to your heart's content.
    If you're habitually adding new Curves layers one over the other, maybe you should re-evaluate your process of working...  Perhaps the way you're thinking you should just work at a high bit depth and do repeated Curves operations on the pixels?  Or put some time into retraining yourself to not add a new Curves layer but to manipulate the one that's already there.  There are some nice new enhancements (e.g., the "finger" subtool that allows you to choose a spot in the image and manipulate that part of the curve).
    Again, I'm not trying to criticize you, just looking to see if maybe there's a way to avoid getting to the point where you need to combine Curves in the first place, since there's no direct "Merge Curves" capability, outside of just stamping a set of image and adjustment layers into pixels.  For completeness I suppose I should mention how to do that...  You can Stamp any combination of visible layers into a single layer of pixels (effectively combining all the Curves layers et. al.) by pressing Control - Shift - Alt - E.
    -Noel

  • Quicktime pro, is there a way to export multiple movies as a batch?

    Quicktime pro, is there a way to export multiple movies as a batch? Every time I export more than one at a time they try to export at the simultaineously and their progression slows tremendously. Is there a way to automate the export process so they go 1 by 1? I am embedding watermarks in .mov files of different sizes so while thier export settings are identical there is some discrepency in the format/size of the movies and the placement and size of the watermark "track".

    Unfortunatley no.  You must export the forms one at a time.

  • Is there a way to open multiple childs of Accordian at a same time

    Hi,
    Is there a way to open multiple childs of Accordain at a same time.
    My requiremnets is something like this:--
    Thanks for any help on this in Advance.
    Regards
    Munira

    You can have multiple nodes open on a tree, so I guess you could open them all up on a button click.
    Another option that might be possible is to use individual Accordians for each section and then use the click function to close the others.

  • Is there a way to delete multiple pictures at the same time from the iphone4s?

    Is there a way to deleter multiple pictures at the same time, from my iphone4s? I know how to delete one at a time. Thanks

    Open your Photos App > Camera Roll > At the top right corner you will see a rectangle with a right arrow, select that. Now you can select as many photos as you want and you can hit the red Delete button on the bottom right.

  • Is there some way to add multiple addresses to an email I am sending that doesn't close the contact list after I click on an address?  This necessitates constantly going back to click the + sign to add each address separately.

    Is there some way to add multiple addresses to an email I am sending that doesn't close the contact list after I click on an address?  This necessitates constantly going back to click the + sign to add each address separately.  Is there some way I can open the contact list, click on all of the individual addresses to which I want to send the email without the list closing between each address entry, and have all of my address entries be listed to the email at one time?  Something like it works in Gmail.  I do not want to use set lists, I want to enter different addresses each time I send an email.  And I am a very slow typist, so I don't want to type the first few letters of each recipient's name.  It is much faster for me to just click on the e-mail addresses in the list as a group.  It doesn't make any sense to me to have to reopen the contact list for each address, when it should be so easy to click on all of the addresses I want at one time and then click once to add them all to the email as a group.  If there is a solution to this, please tell me.  Thanks.

    Vatlily,
    Try this:
    1. Select Mail>File>New Message.
    2. Select Mail>Window>Address Panel.
    3. Use (command+click) on the desired addressees in the Address Panel to create the list.
    4. Click "To:" on the top left of the Address Panel.
    The group that you selected will be added to the "To" field in your New Message.

  • Is there a way to create multiple BQY output to one of the Job File ?

    Hello,
    I am using EPM11.1.2.3.501 version.
    BQY report due to the large amount of data, it is difficult to use a WebClient.
    So will share on a quarterly basis.
    However,
    If modifications are to occur,There are difficulties must modify each file.
    For example,
    Register 2014 1Q, 2014 2Q, 2014 3Q, 2014 4Q BQY Job file.
    When you run the job, the output of the job file is created.
    If the job file is changed, you must modify all four files.
    This will be only grow ations.
    Is there a way to create multiple BQY output to one of the Job File ??
    Please help me.
    Thanks

    It is not possible to have multiple BQY outpu into a job file.
    Thanks,
    KK

  • Is there a way to get multiple email accounts on the front page of my Iphone?  Also I would like to have different sounds when I receive mail in the different accounts. Is this possible?

    Is there a way to get multiple email accounts on the front page of my iphone instead of just the generic mail icon?  Also is there a way to get a different alert sound for each email?

    No.
    You need to review this (WYSISWG):
    http://manuals.info.apple.com/en_US/iPhone_iOS4_User_Guide.pdf

  • HT1918 Is there a way to consolidate multiple Apple IDs into one if they are all issued to the same persons(s)?

    Is there a way to consolidate multiple Apple IDs into one if they are all issued to the same persons(s)?

    No. Unfortunately, you can't combine Apple IDs togetehr, even if you own them all.

  • Is there a way to send multiple pdf's in one email from iBooks?  I have several that I've saved that I need to send to one person. If it can't be done directly, is there a work around?

    Is there a way to send multiple PDF documents from iBooks in one email?  I have several that need to be sent to one person and can't figure out how to send more than one at a time. If you can't, is there a workaround?

    Warehouse that PDF on your own server, then link to it from your book.
    Ken

  • Is there a way to create multiple map tile layers at once?

    Hello experts,
    I have a small problem. It's mainly a matter of saving some time. I need to create 51 map tile layers in mapviewer, and I would like to this this at one time. I can go to the admin console-->Management-->Manage Map Tile Layers-->Create, and then I can create one at a time. But it really would be nice to create them all at once!
    I tried using the XML mode interface, and I can use the following code to create one map tile layer:
    <?xml version="1.0" standalone="yes"?>
    <map_tile_server_admin_request>
      <create_map_tile_layer data_source="xxxx">
        <map_tile_layer
            name="FOUNDATION"
            http_header_expires="168"
            image_format="PNG">
          <internal_map_source base_map="FOUNDATION"/>
          <tile_storage root_path="/scratch/tilecache" />
          <coordinate_system
              srid="8265"
              minX="-180" maxX="180" minY="-90" maxY="90"/>
          <tile_image width="250" height="250" />
          <zoom_levels levels="10" min_scale="5000" max_scale="10000000">
          </zoom_levels>
        </map_tile_layer>
      </create_map_tile_layer>
    </map_tile_server_admin_request> And it creates one layer. But when I try this:
    <?xml version="1.0" standalone="yes"?>
    <map_tile_server_admin_request>
      <create_map_tile_layer data_source="xxxx">
        <map_tile_layer
            name="FOUNDATION"
            http_header_expires="168"
            image_format="PNG">
          <internal_map_source base_map="FOUNDATION"/>
          <tile_storage root_path="/scratch/tilecache" />
          <coordinate_system
              srid="8265"
              minX="-180" maxX="180" minY="-90" maxY="90"/>
          <tile_image width="250" height="250" />
          <zoom_levels levels="10" min_scale="5000" max_scale="10000000">
          </zoom_levels>
        </map_tile_layer>
      </create_map_tile_layer>
      <create_map_tile_layer data_source="xxxx">
        <map_tile_layer
            name="FOUNDATION_WY"
            http_header_expires="168"
            image_format="PNG">
          <internal_map_source base_map="FOUNDATION_WY"/>
          <tile_storage root_path="/scratch/tilecache" />
          <coordinate_system
              srid="8265"
              minX="-180" maxX="180" minY="-90" maxY="90"/>
          <tile_image width="250" height="250" />
          <zoom_levels levels="10" min_scale="5000" max_scale="10000000">
          </zoom_levels>
        </map_tile_layer>
      </create_map_tile_layer>
    </map_tile_server_admin_request>...it creates only the first map tile layer in my xml request.
    Is there any way to create multiple map tile layers at once?
    Thank you!
    John

    Michael,
    It looks like you are right! Thank you for your help.
    I still have a small concern. I looked at the documentation and it reads,
    "The configuration settings for a cache instance are stored in the USER_SDO_CACHED_MAPS metadata view. You should normally not manipulate this view directly, but should instead use the MapViewer administration tool, which uses this view to configure map cache instances."
    But, I tried inserting records into USER_SDO_CACHED_MAPS and it works, and I can't really see any reason not to directly insert records into this table, so...
    Perhaps that warning is there simply because potentially you could screw things up tinkering with the table directly.
    Cheers!
    John

  • Is there a way to display multiple iPad screens on the same television screen simultaneously?

    Is there a way to display multiple iPad screens on the same television set concurrently?  The idea is to let multiple individuals do something on their iPads in a timed window and then display the results of each iPad users answer concurrently on te same television.

    Devices that display two, four, or even eight video signals on a single monitor are available in the video security market. Maybe you could find something there that would do what you want. A quick search on "security tv screen multiplexor" (without the quotes) yielded millions of pages; several on the first page looked promising if you don't mind composite video.

  • Is there any way to create multiple users in a single shot in oracle db

    Can Any one tell me, is there any way to create multiple users in a single shot in oracle database.

    Hello Nunhum,
    I guess this was not my question.. This is not what I m asking.. I know there is not a single sql statement in oracle ,which could create multiusers alike UNIX/LINUX(OS LEVEL), Whatever you have written..is simple creating them one by one.
    What I am expecting is to have PL/SQL statement which could help us in this regard.

Maybe you are looking for

  • C-55A won't upgrade to 8.1

    I'm having a problem trying upgrade my Satellite C-55A from Windows 8.0 (shipped) to Windows 8.1. It goes through the entire upgrade, but when it gets to the HDD driver, it fails to continue and rolls back everything to Windows 8.0. I can't fathom wh

  • Use of input  type="file"

    Hellow How can I use the HTML tag <input type="file" > in jsp/servlets ? how can I got the file and saving it?

  • Positions mass move with same position name?

    Hi All, 1) Is there any direct way to change Organization of a Position? We tried performing Mass move between the organizations with the same source and target position names. But we faced the issue - 'The target position already exists outside the

  • Variable Filter in Xcelsius

    Hello, I´ve been looking for a way to filter the data from BW before getting in the Xcelsius. I have a Query in BW with some variables and i´d like to use this variables in the Xcelsius for the Users choose what data want to see Is there a way to do

  • *Rendering problem in FCP 7*

    I have read some posts about this problem and I understand the issue is with the media and not with my MacBook. But a little example here: I imported through Log and Transfer a 30 seconds clip from my Canon HG20 camera *in the format AVCHD* who I und