AnsweredAssumed Answered

XOG call method from object

Question asked by alberto.colombo-4869 on Jun 23, 2015
Latest reply on Jun 23, 2015 by nick_darlington

Hi!

Using XOG it's possible call a method from object whose name come from a variable?

 

 

For example:

 

<core:set value="0" var="i"/>

<core:while test="${i!= 10}"> 

<core:invoke method="createCell" on="${row1}" var="r1c${i}">         

<core:arg type="java.lang.Integer" value="${i}"/>

</core:invoke>

<core:invoke method="setCellValue" on="${r1c2}">

<core:arg type="java.lang.String" value="Test String"/>

</core:invoke>

 

<core:set value="${i+1}" var="i"/>

</core:while>

 

If i want that the second invoke not call the method from the object r2c2 but the name of the object from a variable? (for example r1c{i} )

Outcomes