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)
Change url value of callout tag using formapi
lazybee26
Env = 6.5 on Solaris
Just wondering if there's any way to change/add parameters to URL attribute of CALLOUT tag, using Form API?
I wanted to add a parameter on the fly, to the URL of cgi callout.
Thanks
Find more posts tagged with
Comments
JonathonG
I don't know that you can manipulate the value that comes from the datacapture.cfg. But, if you use the onCallout event, you can always return false from your handler and use javascript's window.open to go to whatever URL you want. Then, you have full programmatic access to the URL.
Jonathon
Interwoven Developer
Allstate, Inc.
jbonifaci
Another thing to keep in mind is that your cgi-callout window has complete access to your formapi variables using javascript.
~Jeff
lazybee26
Thanks guys. I implemented it a little differently.
onCallout event, I saved all needed parameters as global javascript variables, that my cgi callout could access and it worked fine with this approach.
Thanks a lot for your help
Lazy
bturns
Jeff, et al
do you have any examples of using accessing form api variables from the child window? I've tried using the following code in my child window but can't seem to get any values.
alert(IWDatacapture.getWorkarea());
or
alert(window.opener.IWDatacapture.getWorkarea());
Neither of these seems to work.
Any suggestions?
Tnx, Brian
jbonifaci
From a cgi-callout, use:
opener.parent.getScriptFrame().IWDatacapture
From a callServer use:
parent.getScriptFrame().IWDatacapture
~Jeff
bturns
thanks! That worked.
bturns
if I'm calling the value
var areaPath = window.top._dcWin.formframe.document.dcreditForm.area_path.value
in the parent window. What value would I use to call this in the child window?
I've tried
window.opener.top._dcWin.formframe.document.dcreditForm.area_path.value
that didn't seem to work.
jbonifaci
I would think this would work:
opener.parent.getScriptFrame().
window.top._dcWin.formframe.document.dcreditForm.area_path.value
I don't have access to 6.5, what does this return? The workarea path? Have you looked at IWDatacapture.getWorkarea()?
~Jeff