Hi All,I am facing one problem. It might be simple but i am stucked here.On my DCT I have one container with one item in that.onSave function i want to check the value of that item for all the iteration of contaner , if one of them is wrong then i dont want to allow my page to get save.I cant use onItemChange() for that item as item is populating by callout.Real scenerio is that I have a date item inside my container that is populating by calender.ipl.So i cant call onItemChange() for that. And i have to put validation on Date.Please send me the suggestions/solutionsRegardsNidhi AgrawalBirlasoft Limited
What you are trying to achieve is already supplied with intwn examples set. try going thru that.--A
Try this.. [HTML]IWEventRegistry.addFormHandler("onSave", myFunction); function myFunction() { alert(); var i=1; while (myItem = IWDatacapture.getItem("/Static_Content/Page/Market_Segment/Paragraph_Container[" + i + "]/Text")) { i++; alert(myItem.getValue()); } return false; }[/HTML]Will do what you want to do, go through each