Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Call Server issue
sabih
I am using 2 separate callserver within the same DCT. The first one returns a random no. sequence from the database and populates a text field. The other one substitutes the option list under a select item. The problem I am facing is that only the last call to either subroutine works meaning that either the random number shows up or the option list. Does anyone know a fix to that?
Find more posts tagged with
Comments
jbonifaci
You can only execute one callServer at a time. You need to wait for the first callServer to return before you call the second callServer. One way to do this is to have the first callServer call back to a function when it is complete that calls the second callServer. This way you know the first callServer has completed before calling the second.
~Jeff
aha1
Is there any other way to enable to two callServers at the same time?
Thanks,
Xiaowei
ISCBorisB
Is there any other way to enable to two callServers at the same time?
Thanks,
Xiaowei
There is no way to do it, do not waste your time trying. callServer request is *sent* to a single hidden frame overriding what's already there.
Reread Jeff's post one more time, it gives an idea of how to control
multiple sequential
calls.
Johnny
If it makes sense to do both those calls together each time, then you probably should combine them into one call - one server side script that does both of your actions (I'm guessing you want to run them at the same time to make things look faster).
That will save you from calling them sequentially.