Home
TeamSite
TeamSite, LiveSite and OpenDeploy
OR container name before add
Andy Knipp
OK, I have an OR container, 5 choices, but I can only allow 1 of each.
So I use BeforeReplicantAdd to run this
function checkNumberModules(item, index)
{
var xpath = item.getName()+"["+index+"]";
alert(xpath);
var newItem = IWDatacapture.getItem(xpath);
var newPath=newItem.getChildren()[0].getName()
But the getChildren blows up. The xpath is correct for the instance added but does not give the type, which is why I try to get the children
So I am guessing I need to add it and then remove if we have a dup ?
Find more posts tagged with
Comments
There are no comments yet