-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi.
I need to get a ZUML value in a szcript code so I use the custom-attribute solution as it shows in the docs.
My code is:
<treechildren>
<zscript>
import org.bcv.sace.conceptoindicador.*;
List parentList = new ConceptoIndicadorDAO().findAll();
</zscript>
<treeitem label="${each.nombre}" forEach="${parentList}">
<custom-attributes concepto="${each.codigo}" />
<treechildren>
<zscript>
import org.bcv.sace.calculoconcepto.*;
System.out.println("Valor=" + self.getAttribute("concepto"));
</zscript>
</treechildren>
</treeitem>
</treechildren>
But I just get null when execute my script...
Any Hint ?
Hi YamilBracho,
You may need to unwrap the object in this parentList list collection to get the real object.
Asked: 2008-11-18 20:34:09 +0800
Seen: 159 times
Last updated: Nov 18 '08