Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
ServerRequest |
Wed, Sep 12 2012 7:40 AM | Permanent Link |
Ronald | Hi,
I have a ServerRequest that I excute and right after the call to ServerRequest.Execute, I change something in the Request.Content.Values and I call ServerRequest.Execute again (same instance of TServerRequest). The first is not executed, only the second (the request sends an email). If I do not execute the second, the first is executed correct. Do I abuse TServerRequest? Greetings, Ronald |
Wed, Sep 12 2012 8:09 AM | Permanent Link |
Mark Brooks Slikware | <<I have a ServerRequest that I excute and right after the call to
ServerRequest.Execute, I change something in the Request.Content.Values and I call ServerRequest.Execute again (same instance of TServerRequest). The first is not executed, only the second (the request sends an email). If I do not execute the second, the first is executed correct.>> I have used a TServerRequestQueue for this scenario which forces serialization. |
Wed, Sep 12 2012 3:08 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Ronald,
<< Do I abuse TServerRequest? >> Short answer - yes. Always remember that web browser functionality is 100% asynchronous, which means that you have to wait until the OnComplete fires for the TServerRequest before you can proceed with re-using the component for another request. As Mark stated, a better way to execute multiple requests in a serialized fashion is to use the TServerRequestQueue component instead. It manages the whole "I'm done with this one, now do this one" type of process without forcing you to deal with it. If you have any other questions, please let me know. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Friday, March 29, 2024 at 03:30 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |