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)
Hiding Containers
koteshb
Hi,
I had a problem in hiding containers in TS6.1.0. Does anybody know if there is any problem with hiding containers in TS6.1.0 service pack1. I was able to hide individual items inside a container but not the whole container. Is there any coding difference for containers between TS5.5.2 and TS6.1.0?
Thanks
Find more posts tagged with
Comments
Migrateduser
I assume that you're using FormAPI to setVisible() to hide things?
There's two possible explanations I can think of:
If the container's min/max != 1, then it is a replicant container and unfortunately cannot be addressed in Form API in 6.1 [that is, calls to IWDatacapture.getItem() will return null]. Such items were also not addressable in 5.5.2 but their syntactic form in the DCT did change.
<container min="1" max="20" name="foo" location="foo" >
...
</container>
is equivalent to IWOV 5.5.2 DCTs:
<item name='foo'>
<replicant min="1" max="20">
...
</replicant>
</item>
In TS6.5 such items are addressable in FormAPI.
If the container does min=max=1 or no min or max attributes at all, then it should work to call setVisible().
In that case, a likely culprit if you're hiding the container right when the form first loads is that you're calling init() directly instead of using the onFormInit event.
If you have a call like:
init();
try replacing it with:
IWEventRegistry.addFormHandler("onFormInit", init);
(this has to do with a timing issue: the init() call can happen before the form is fully loaded. The onFormInit event will be fired when the form has been initialized.)
Hope that helps,
-Kerry
______________________
Kerry Kartchner
Interwoven, Inc.
koteshb
Thanks Kerry. Having a top container above all containers with min=max=1 works. The setVisible() function also works good on the child containers. Again thanks for your help.
--Kotesh.