Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
multithreading in FormAPI
catorarn
Hi,
We are thinking of having a dialog box show up saying "Saving to Database...", while a DCR is getting saved to Database. This should be a model dialog box, so that while the DCR is getting saved, the user is not able to click on any of the other buttons coming in the UI (like Save, Preview, etc)
As per our understanding javascript can be used to show popup dialog boxes when various buttons are pressed in the DCT. However this is not multithreaded and hence the dialog box will have to be closed for the "save to DB" process to continue.
Is there some other approach in Interwoven to show modal dialog boxes and in addition continue a process?
thanks
Find more posts tagged with
Comments
JonathonG
I am assuming you are using callServer to save to the Database, correct?
If so, that call *is* multi-threaded (or, more directly, asynchronous). So, if you structure your code like this:
// Save to database
IWDatacapture.callServer(......)
// Put up modal dialog to prevent user from taking action
.....
Then, in another function that will be called by your callServer script
// Close modal dialog
HTH,
Jonathon
Independent Interwoven Contractor