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)
Getting workarea with FormApi
KeithB
This should be an easy one for you guys!
Does anyone know of a way to get the vpath to the current workarea in FormApi?
I am wanting to do something similar to the following:
var parameters = new Object();
parameters.workareaVPath = <INEEDTHEVPATH>;
IWDatacapture.callServer("/iw-bin/parseWorkarea.ipl", parameters, true);
Find more posts tagged with
Comments
Michael
Hi Keith
It depends on your version of TeamSite (always a good idea to include that in your post).
In 6.5 you can use IWDatacapture.getWorkarea ()
Are you using 6.5?
Cheers
Michael
KeithB
Aha sorry about that, I'm using TeamSite 6.1 on Windows.
I'm thinking I've got to parse it out of location.href but I don't really wanna have to do that!
Migrateduser
Pre-6.5, it's not as straight-forward as it could be. In 6.1, this has worked for me:
var parameters = new Object();
parameters.myWorkarea = parent.gWorkarea;
... although, this is not supported in 6.1. But hey, it works, right?
Dave
Current Environment(s):
(1) TS 6.1 SP1 on W2K3
(2) TS 6.1 SP2 on W2K
(3) TS 6.1 on W2K
Michael
Hi Keith
I have used this functions on older versions (5.5.2 and 6.0 I think). It may well work on 6.1 also. This code is not true formAPI and is therefore not supported by iwov and should be flagged to be changed as part of an upgrade to 6.5 -- however it should sort you out for the time being.
function getWorkarea()
{
// Returns the path down to the workarea
return( top._dcWin.gWorkarea );
}
hth
Cheers
Michael
KeithB
Thanks guys that works a treat