I want to change the rows of an repeat control dynamically, with a button.
code of the repeat:
<xp:repeat id="repeat1" rows="30" var="myrow">
<xp:this.value><![CDATA[#{javascript:var myrows = new Array();
for (var i=0;i<viewScope.myrows;i++) {
myrows[i] = (i+1).toString()
};
myrows}]]></xp:this.value>
<xc:ccrepeat FNameStatus="status_#{myrow}">
</xc:ccrepeat>
</xp:repeat>
a button increases the value of viewScope.myrows, and the array grows (like "1","2","3" - I check this in a computed field with the same code for the array), but my repeat controls only shows 1 row! Tried it with partial/full refresh and compute dynamically/on page load.
When I set viewScope.myrows intitially to a higher value, e.g. 5, the repeat displays 5 rows. So the problem seems to be the refresh.
Must be a simple error, but I get stuck. Thanks in advance for any help
Uwe