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)
Loading a container based on its value
TS_ys
Env:
TS 671
Windows 2003 SP2
Have two templates, A and B, in one DCT and using a container with combination set to OR to differentiate between template B and template C. The DCT is located in two datatype folders, B and C. Using formAPI, I analyze the datatype and if B, load container B only and if C, load container C only. Doesn't seem to be working, container B is always loaded. Tried setVisible and setFocus but with no success. Any thoughts?
Thanks!
Datacapture.cfg
root-container label=root
container combination=OR label=A
container label=B
/container
container label=C
/container
/container
/root-container
Javascript attached
Find more posts tagged with
Comments
nipper
TS has trouble with hiding the very first item of a DCR (even when you change the focus).
To see if I am correct, add a text field to the DCT in the very front, see if the DCR behaves properly.
1.PDF
TS_ys
If I remove the container with combination=OR and keep everything else as is, the behavior works has accepted...proper container is visible/non-visible.
The issue is in the tpl where I check to see which container is active by using iwpt_dcr_list('B or C'). From there, specific executions are made based on what the if condition returns.
Thanks!