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)
<callout> parameters
JavaCowboy
I have a DCT in which the user uses a callout to get a country profile id to populate a form that is thensubmitted to the database.
I have another callout where the user queries the database again to get a validator id, subject to that country_profile_id.
My problem is I don't know how to pass the country_profile_id that the user just retrieved into the <callout> that they use to retrieve the validator_id.
I know it's possible to pass static text parameters to a callout, but is it even possible to pass dynamic <item> values to a callout? If so, how can I do it?
Find more posts tagged with
Comments
james1
JavaCowboy,
If you are using a CGI callout, then your CGI receives in its CGI parameters the value of *every* field in the data capture form. So your second callout should already have the profile ID.
If you are using a Java callout, then your callout class should have a handle on the entire data capture tree, which it can recurse to find any value.
Giddyup
-- James
--
James H Koh
Interwoven Engineering
JavaCowboy
actually, I'm using a CGI callout.
How would I get the value of this parameter in the perl script?
james1
> How would I get the value of this parameter in the perl script?
First of all, it depends on what CGI package, if any, you are using. Every CGI package will have a different way of accessing CGI parameters. But at the end of the day, you need to know the name of the parameter.
The name of the parameter you are looking for depends on the name of your DCR item. If you item's name is "foo", then I think there will be a CGI parameter named "foo". If the item is inside a replicant, I think you'll get something like "parent/0/child", where "0" is the index of the replicant.
You can iterate over all CGI parameters to see what all you have. As a test, you can use show_env.cgi (in IWHOME/httpd/iw-bin) as a CGI callout. It will show you all of the CGI parameters that it was given, in a big HTML table.
Giddyup
-- James
--
James H Koh
Interwoven Engineering