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)
IWDataCapture.callserver example
pawlr
can someone provide an example of this object being used in an actual datacapture.cfg file ?
I'm trying to execute an iwpt_compile() when the "onSaveDone" event occurs in order to script multiple html generation.. its for a live event so we are trying to bypass the usual TS "generate" flow where the author has to pick a location for the generated file, etc.
any help is appreciated in advance.
Find more posts tagged with
Comments
Migrateduser
What about the userscript/locations example that ships with TS5.5.2? It does a callServer (though the cgi is probably not what you are looking for).
pawlr
Nacks-thanks for the reply-- I have 5.5.2, and checked in my examples folder and searched in all the userscripts: (contact, position, location, and organization) but couldn't find the example you were talking about.. more specific directions would be greatly appreciated if you have time.. thx
hbo.com
Migrateduser
You had asked for an example of the IWDataCapture.CallServer method. The usersscript/location example uses this method to call a cgi on the server side to get its listings of locations based on regions.
I am not sure what else to show you. Look in the datacapture.cfg for the example, it has the FormAPI CallServer instance. It doesn't use a on OnSaveDone trigger (instead it uses an item change trigger) but the concept is the same.
pawlr
Ah.. found it.. sorry I didn't see it the first time. Its in the datacapture.cfg, not the .js file, that's what threw me.
thanks for the reply
hbo.com