For multiple TagUI only 1 request is being sent...
Yea but I *would expect* that there would be a way to set the events to fire for each file or for all files. Without the event covering all files, you will have a very tough time getting this to work. Of course it makes your JS/CallServer more complex but not much you can do.
Agreed. I think Tim will need to figure out a way to condense the multi-file events into a single list and then make the call server call. I would be surprised if there is a way to use the timeout and keep from losing any of the events.
callSerer works by sending asynchronous http request from the single Data Capture Form hidden frame.Subsequent callServer requests override the current one, that's why you've got only the last call executed.To fix that you would have to play with 'setTimeout' Function plus perhaps some callback Function(s) to let your FormAPIJS code *know* that current callServer request has been completed and *Client* can run the next one. In other wordsyou yourself would have to re-synchronize multiple callServer requests.Alternatively, you can make callServer Script smart enough to process parameter's "Set" and make a single call supplying multiple parameters, etc
Yes thats what I need. The issue I'm having is that the TeamSite callServer is only executing for the last file onFormInit that is called. The form is loaded my form api collects data for the request and makes the request. The data that is then returned for that last form only has data that applies for that particular form not the rest of them in the file list. The objects being returned from the callServer are returned in the (main)(global name space) as well which just keeps overwriting the returned values anyway. So there are two fundamental issues.
So, with a recursive function thats calls the server, or does a 1 sec timeout etc.. and a callServer complete flag etc.. I was able to get qued callServers working for the multi-tagui. My problem now is that FormAPI itself includes no name space etc for the returned value (a JSON object). So, when I make the callserver and it completes it says two things. 1). I am done ok to do another one and 2). render the UI using the provided data.Interestingly though an item address such as /record/Tab/item/address is really the address of the first file only. So when I do my callback regardless of which callServer is completing, only the first file is getting rendered correctly. However that same callServer and render using JSON data mechanism is called when changing a particular field as well. When that happens FormAPI is smart enough to render the UI for that particular file.
hi, how did you set this timeout between two callServer()?
Search is a wonderful thing. Maybe type callserver timeout in the search field of DevNet and click search
function checkCallProgress() { if (complete == "NO") { //Check again in 1 sec setTimeout("checkCallProgress()",1000); } else { nextCallServer(); } }
Yes, using recursion, something like: function checkCallProgress() { if (complete == "NO") { //Check again in 1 sec setTimeout("checkCallProgress()",1000); } else { nextCallServer(); } } Hope helps for others later.
This is not a recursion, just a series of sequential calls