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)
container-FormAPI
System
Hi,
How to find out container name in form-api.
I have container with A and B.I want to know from form-API whether i selected A or B.
for ex:
<container name="AORB" combination="or">
<label>A OR B</label>
<item name="A">
<label>A</label>
<textarea row="5" col="20" >
</textarea>
</item>
<item name="B">
<label>B </label>
<textarea row="5" col="20" >
</textarea>
</item>
</container>
I am trying like this
IWDatacapture.getitem("/AORB") it is returning object when i use .getValue() It is returning null..
Thanx in advance
Find more posts tagged with
Comments
JonathonG
You should be able to use getChildren to get the child of AORB. Then just ask the child for it's name (if you want to know which kind of thing it is) or it's value (if you just want the value). Something like:
IWDatacapture.getitem("/AORB").getChildren()[0].getName();
Jonathon
Interwoven Architecture Consultant
Migrateduser
Thanx for your quick reply it helps