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)
Getting Branch via FormAPI
kellyg
I am working on a project where we are attempting to use FormAPI (for the 1st time) to populate a product line field in the DCT based on the branch from which the DCR is being created on the init(). Any ideas how to accomplish this?
Find more posts tagged with
Comments
Migrateduser
I think you are looking for something like this?
/**************************************************************************
* getWorkarea()
* Retrieve the vpath of the workarea that launched the DCT.
*************************************************************************/
function getWorkarea()
{
return( top._dcWin.gWorkarea );
}
function whatever( area )
{
var result = area.match( 'regex' );
return( result );
}
kellyg
Thanks that worked!
Ottawa_IWOV
Is there a way to pass this along (the value of the workarea)as an argument to a perl script in FormAPI with callServer?
Lucas Cochrane
lucas.cochrane@baucanada.com
Dwayne
The second argument to
callServer
allows for passing this data. So something like this
var params = new Object();
--
Current project: TS 5.5.2/6.1 W2K