for(var i = 1; i <= 10; i++){ if(IWDatacapture.getItem("/footer/links["+i+"]/internal") != null){ var index=i; }}
var index = 0;for (var i = 1; i <= 10; i++) { var item = IWDatacapture.getItem("/footer/links["+i+"]/internal"); if (item != null && item.getValue() != "") { index = i; }}
My code works fine whenever the user decides to add a new link...
In case of a replicant container for the event onCallOut, I dont have to specify the exact instance of the item. So R u saying that I should pass the exact instance every time I Call a function on onCallOut?Regards,Mav
var itemX = IWDatacapture.getItem(item.getName() + "../some_other_field");