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)
getItem() on a container item
nicoleb
I am using v 6.0 and am trying to get access to an item within a container. The following code is returning null.
IWDatacapture.getItem("/section/child/type")
where section is the root-container
child is container
type is the item.
Any thoughts?
Find more posts tagged with
Comments
jbonifaci
It should work exactly as you have it, if you are describing it correctly. If you want to post your .js and dct, perhaps someone can look at them and help you out.
LooseCannon
It will help if you post the datacapture.cfg
nicoleb
posting dct and js
KTR
Can you replace the "/section/child/type" with "section/child/type" and try. It should work.
nicoleb
The item I'm trying to get access to is inside a container (replicant), so in order to get at the piece of data I need the code has to look like:
/section/child/type
This works. Thanks!
summergs
Hello,
I am trying to acquire the value of a 'replicated' field in a container with no luck. Can you PLEASE post a snippet of how you referenced the field?
Many Thanks!
herald10
Here is a sample:
itemName = "/banners/Banner["+j+"]/image";
currentItem = IWDatacapture.getItem(itemName);
HTH
-H