How to capture when the HTTPService call gets finished

When I add a item into datagrid, I want the item
is added into database successfully and capture the return message , and then I refresh the datagrid.
But, the message is empty since the HTTPService call has not finished. How do make it waits until the call is finished?
Thank you in advance!

Thank you for your response.
I have handlers for both result and fault, but I do not know which
parameter to tell the call is end.
For example,
    I call sendData on a.mxml and the HTTPService call and result/fault handler are in b.as.
            I do :
  in a.mxml,
            private  function addInactive():void{
           var selectedPerson:Object = new Object;
           addTopersonEvent.addToInactive(selectedPerson);           
           if (Application.application.getSelectedEvent.indexOf("Error") < 0)
               this.peopleInActivity.addItem(inActivePerson);
              this.peopleInActivity.refresh();
  in b.as       
            public function sendhttpResult(event:ResultEvent):void {
            Application.application.getSelectedEvent = event.result.sendresultmsgs.sendresultmsg.message;
            trace(" in tr " + Application.application.getSelectedEvent);
           Alert.show(event.result.sendresultmsgs.sendresultmsg.message,'SENT RESULT:');
          I can see the Application.application.getSelectedEvent value is "Error   xxxxxxx" in b.as, but
          in a.mxml , the Application.application.getSelectedEvent  is null.
         How to I make it wait until the result back then
        do the test Application.application.getSelectedEvent.indexOf("Error") < 0

Similar Messages

  • I made my apple Id a long time ago. I do not remember the answers to my security questions but when I send the questions to my email, they get sent to an old email that was deleted. How do I change the email they get sent to?

    I made my apple Id a long time ago. I do not remember the answers to my security questions but when I send the questions to my email, they get sent to an old email that was deleted. How do I change the email they get sent to?

    1. See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities.
    2. Here are two different but direct methods:
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contacting Apple for support
            and service.
    3. For other queries about Apple ID see Frequently asked questions about Apple ID.
    4. Rescue email address and how to reset Apple ID security questions
    5. For online assistance use Apple - Support - Express Lane

  • How can i delete the new feature "get in contact with your favourite persons"?? When u press the "home" button twice, theres a list on top of the ipad with the last persons youve been in contact with. How do i delete that, or some of them ;-)

    How can i delete the new feature "get in contact with your favourite persons"?? When u press the "home" button twice, theres a list on top of the ipad with the last persons youve been in contact with. How do i delete that, or some of them ;-) Sorry for the danish  

    You can turn that feature off in Settings>Mail, contacts, calendars>Contacts>Show in App Switcher>Recents>Off.

  • How can I interrupt the blocking call when call timeout?

    Hi,Guys
    I wrote an application server(daemon process) to talk with oracle server
    continuous which used oracle9 OCCI lib, each 5 min it executes the procedure
    on the DB server.
    Now I have come cross a problem:
    If the network is blocked, app server will blocked at occi call and would
    never pass, and no exception was catched :-(
    for e.g.
    1. Oracle server reboot without shutdown oracle process
    2. udp broadcast message storm blocked the connection between app server and
    oracle DB.
    I consider maybe it's because OCCI using the blocking mode of connection
    that caused this problem.
    How can I interrupt the blocking call when call timeout?

    Manage the timeout using a separate thread. When the timeout happens, issue a break on the OCCI connection. There is no direct way as of now. You need to do this to break a OCCI connection.
    retrieve the OCI handle from the OCCI handle (e.g. using Connection::getOCIServer or Connection::getOCIServiceContext methods) and issue a OCIBreak on it. Do not forget to allocate a error handle which should be passed to OCIBreak call.

  • How to specify when the authorization check is to be performed

    How to specify when the authorization check is to be performed declratiely for
    any webapplication.
    There is Direction object argument as part isAccessAllowed method of AccessDecesion
    class which can have either of the three values i.e. POST, PRE, & ONCE. Ijust
    wana know how can we declaratively set this direction value for any Web Resource
    in weblogic server 8.1 security
    -Subhash

    "Subhash Chopra" <[email protected]> wrote in message
    news:3e9c5805$[email protected]..
    >
    How to specify when the authorization check is to be performed declratielyfor
    any webapplication.
    There is Direction object argument as part isAccessAllowed method ofAccessDecesion
    class which can have either of the three values i.e. POST, PRE, & ONCE.Ijust
    wana know how can we declaratively set this direction value for any WebResource
    in weblogic server 8.1 security
    The containers always call the isAccessAllowed method with no direction so
    Once is passed
    to the providers. There is no way to set the direction that the containers
    use.
    -Subhash

  • BCP to pass an Error Message to SSIS when the BCP call fails?

    Hi,
    Within SSIS I have an Execute SQL Task which calls BCP via a source variable given the dynamic nature of the BCP call.
    When the BCP call fails it returns a number of records which give instructions on how to use BCP. SSIS then thinks that BCP has executed successfully, the component shows green and then the package continues to run.
    But of course what I want the BCP call to do is return an error message which would then trigger the standard on error event handler within SSIS. How do I do this please?
    It maybe the “Execute Process Task” could be a better SSIS component to use for this call
    Using BCP Utility in SSIS. Does anyone have experience of doing this type of thing?
    Thanks in advance,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Why don't you use the "Fast Load" option = BULK LOAD? Or the BULK LOAD stored proc?
    The only other way I can think of this can be done is by directing errors to an error file which can be interrogated from the package and then a precedence constraint used to trigger an error if there was one.
    Arthur My Blog

  • Two beeps when an incoming call gets connected

    Since a couple of weeks ago I started hearing 2 beeps when an incoming call gets connected.
    I can only hear these 2 beeps when I use my headset (original iphone headset) to answer the call. I hear these 2 sounds right after I answer the call and then I can hear the person on the other side of the line.
    This does not happen for outgoing calls. The person on the other side of the line can't hear the beeps. I tried this in another iPhone and I couldn't hear the beeps either.
    Does anybody knows why?
    Please, serious answers (I'm tired of listening about the bighbrother thing)

    Hi there,
    Did you ever figure out what those beeps are?  I'm hearing them too.
    Thanks!

  • How can I delete the recent calls list in FaceTime?

    How can I delete the recent calls list in FaceTime of my Mac?

    Hello muchaim,
    After reviewing your post, it sounds like you want to delete the recent call list. I would recommend that you read this article, it may be able to help the issue.
    FaceTime for Mac (Yosemite): Make and receive FaceTime calls
    FaceTime keeps a list of the most recent calls you made, received, or declined, with the most recent call at the top. To return a call, click the Video button  or the Audio button . To remove a call, select it and press Delete.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • I have imported an mp3 to my Library.  I want to keep it as media kind = podcast but no matter how often I change the tag in get info options media kind, the change will not persist.

    I have imported an mp3 to my Library.  I want to keep it as media kind = podcast but no matter how often I change the tag in get info > options > media kind, the change will not persist, and the file remains in my Music list not my Podcast list.

    Resolved in update.

  • I was not aware of the automatic renewal of subscriptions and was chareged on 4/27 for another year of The Daily. How do I cancel the suscription and get reinbursed?  I have recently found how to manage and shut off future renewals. Can i get a refund?

    I was not aware of the automatic renewal of subscriptions and was charged on 4/27 for another year of The Daily. How do I cancel the suscription and get reinbursed? I have now shut off automtatic renewals. It would have been nice to know it was there to begin with!

    Edge has very clear restrictions, one being that you must have 6 months of clean payment history which you don't. Either wait until April 14, or good luck at Sprint.
    I am unsure how it can be determined the payment mix up was the fault of CS, but regardless, the mix up was done. There can be any number of reasons why a payment could be missed without any fault on your part, however you are still the responsible party for the account and must live with the repercussions.

  • How to capture all the values(occurrence) using Extraction Rules(correlation) in VSTS web test?

    Hi,
      I am using VSTS 2010 for performance testing and have a question about Extraction Rules functionality.  Requirement below.
    Example :
    Server Response
    <a>1</a>
    <a>2</a>
     <a>3</a>
    <a>...</a>
    we need to capture all the values with same left and right boundary. Along with the number of occurrence from the response. We need pass a random value in the
    index where the index value will be between 0 - count of values with same left and right boundary.
    How to find out the count of values with same left and right boundary.

    Thanks for Adrian's help.
    Hi PChav,
    Based on your issue, I think that the Adrian's suggestion is useful for you, so I suggest you could refer the Adrian's suggestion to check your issue.
    In addition, I suggest you could also try the rogeorge's suggestion to create a custom extraction rule to do this.
    Reference:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/ccff9f7a-d5bc-45d5-80eb-c83f9fc0e103/how-to-capture-all-the-valuesoccurrence-using-extraction-rulescorrelation-in-web-test?forum=vstswebtest
    Hope it help you!
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I remove the Emergency Call button from the lock screen Xperia Z2

    How can I remove the Emergency Call button from the lock screen on my Z2 phone

    Alecuk wrote:
     It's like the stupid bold font on the hours or the lock screen clock - i've never seen anything so stupid in all my life.
    it's things like this that make a good phone c.r.a.p.
    Hi, well if you do a little bit of research on the forum you will be able to see that you can & very easily able to change the font on the clock 

  • How can I disable the Emergency calls feature

    How can I disable the Emergency Calls feature.

    It is my understanding as well that it can't be, due to federal laws that 911 call must be available.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Triggering  a job when the first job gets cancelled...

    From BMV0, we can trigger a job once the first job is completed using the 'After Job' option. Can u tell me if its also possible to start another job when the first job gets cancelled ?
    Message was edited by: Sushma Anuprava
    Message was edited by: Sushma Anuprava

    Hi,
    Go to the database view V_OP and check for the column 'STATUS' which gives the background job status , based on value from this column (cancelled status ) , start the new job with FM : 'JOB_START' .
    Regards
    Appana

  • I have received an email receipt charging me $109.99 for an app I've never heard of and definitely never downloaded. How do I report the problem and get a refund?

    I have received an email receipt charging me $109.99 for an app I've never heard of and definitely never downloaded. How do I report the problem and get a refund?

    Log into your iTunes account, then click on previous purchases then select the purchased app and then click report a problem.  Then write and explain your problem and I am sure it will be considered. 
    Also change your iTunes password as soon as possible.

Maybe you are looking for

  • Differences between Oracle Real Application Cluster 11gR1 and 11gR2

    Hi Experts, Please provide me differences between Oracle RAC 11gR1 and 11gR2. Thanks in Advance, Jeeshan.

  • Quantity Column in a Report painter

    good day Sap masters, i need to know how can i get to capture actual quantity data in a report prepared by way of report painter. i have been able to bring the qty column to which i have assigned a predfined Actual Qty characteristic inspite of this

  • Unchecked or Unsafe operation -- recompile

    Hi, How can I set compiler options in Jdeveloper? I am getting a Note: C:\JDeveloper10131\j2ee\home\application-deployments\AbcEJBTest\AbcEJB\ejb_webs ervice1\runtime\ControllerResponseElement_LiteralSerializer.java uses unchecked or unsafe operation

  • How to increase or decrease the width of af:inputText

    Hi, I want to increase the height & width of the <af:inputText>. To increase the Height, i made rows attribute value as "2". But i am not able to increase the width of that component. I have increased the "style--> box ---> Width" but it is not worki

  • Centralized authentication through insecure net, ASA

    Hi all, I'm looking for some ideas, products e.g. that can help me to achieve the following scenario: - We have several customers with Cisco ASA - We want to provide our IT-Engineer staff a remote vpn access to each customer site - We need a centrali