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)
form api with replicants
mk_iw
Environment : TS 5.5.2 and W2K
I'm wondering how to address the replicant in the formapi. In the below snippet, if the "/LeftNavSecondLevelMenu/sublevel" is yes, the "LeftNavThirdLevelMenu" item should become visible.
As "LeftNavSecondLevelMenu" has replicant, I'm not sure how to address the "sublevel" in each iteration. Any help is appreciated.
---------------------DCT code snippet --------------------
<item name="LeftNavSecondLevelMenu">
<label>Second level Menu </label>
<database deploy-column="f" />
<replicant max="30" min="0">
<item name="title">
<label>Title</label>
<text size="35" maxlength="100" required="t">
</text>
</item>
<item name="sublevel">
<label>Third level menu exist ?</label>
<radio required="t">
<option value="yes" label="Yes"/>
<option value="no" selected="t" label="No"/>
</radio>
</item>
<item name="LeftNavThirdLevelMenu">
<label>Third level Menu </label>
<database deploy-column="f" />
<replicant max="30" min="0">
<item name="title">
<label>Title</label>
<text size="35" maxlength="100" required="t">
</text>
</item>
</replicant>
</item>
</replicant>
------------------------end ---------------------------------------------
thanks
m
Find more posts tagged with
Comments
Adam Stoller
Are you going to be upgrading soon? To 6.5?
If so - see if you can put off this project until *after* that because 6.5's FormAPI makes dealing with replicants MUCH EASIER
(remember - 5.5.2 becomes unsupported at the end of June this year)
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
mk_iw
Thanks Ghoti, I need to ask my folks to move towards TS 6.5.
-m