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)
FormAPI script to set ceiling-dir of browserr item
kinnie
Hi,
I've got a script which returns a directory path based on values a user enters in a form.
What I want to do now is to set the ceiling-dir attribute of a <browser > item so the user automatically opens the correct directory determined by the directory path from above.
Any ideas ?
Thanks,
Find more posts tagged with
Comments
Michael
Hi Kinnie
I don't believe there is a supported way of doing this with FormAPI. This
post
demonstrates a way you could do it in an unsupported manner.
It would be worth contacting support and asking for a feature request as there seems to be a few people who want to do this.
btw it is good practice to include your version and platform details etc on your posts if you are asking a question.
Cheers
Michael
jbyork
Here's some sample formAPI code. The previous poster was correct... this is not officially supported by IWOV... BUT NEEDS TO BE... COME ON INTERWOVEN... WAKE UP!!!! I expect to see new formAPI methods which allow developers to get handles on and manipulate all aspects of the DCT in the next release of TeamSite!
.
.
.
//Dynamically build initial-dir paths based on country code and line-of-business.
//Function dependent on DCT_Common.js for array values(LocationArray).
//TeamSite FormAPI does not current provide objects or methods for this.
var cc = LocationArray[3].toLowerCase();
var lob = LocationArray[4].toLowerCase();
var idirImage = IWDatacapture.getItem(CCXPath + '/PromotionModule/PromoImage/
@src
');
var idirURI = IWDatacapture.getItem(CCXPath + '/PromotionModule/ExtendedLink/
@URI
');
var idirAltURI = IWDatacapture.getItem(CCXPath + '/PromotionModule/ExtendedLink/
@alternateURI
');
idirImage.itemImpl.attributes.values['initial-dir'] = "/services/" + cc + "/" + lob + "/images";
idirURI.itemImpl.attributes.values['initial-dir'] = "/services/" + cc + "/" + lob;
idirAltURI.itemImpl.attributes.values['initial-dir'] = "/services/" + cc + "/" + lob;
.
.
.