Hello Everyone,
Here I am Using clear function for a Variable but its not working.
<gel:script
xmlns:core="jelly:core"
xmlns:file="jelly:com.niku.union.gel.FileTagLibrary"
xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary">
<core:forEach begin="1" end="2" var="test">
<file:readFile fileName="D:\Gel Script Docs\JS Custom Scripts\test.csv" embedded="false"
var="input"/>
<gel:out> ${test} Input has ${input.size()} rows.</gel:out>
<core:forEach begin="1" end="4" indexVar="i1" items="${input.rows}" var="row">
<gel:out>IndexVar ---------------${i1}</gel:out>
<gel:out>q Username = ${row[0]}</gel:out>
<gel:out>First = ${row[1]}</gel:out>
<gel:out>Last = ${row[2]}</gel:out>
</core:forEach>
<gel:out>132 ${input.clear()} </gel:out>
</core:forEach>
</gel:script>
When i run this script
For the First time forEach Iteration it shows 1 Input has 4 rows
for the Second time forEach Iteration it shows 2 inout has 8 rows
It means Clear is not working
could you help me out How to use Clear.
Thanks.