0

custom-attributes

asked 2008-11-18 20:34:09 +0800

YamilBracho gravatar image YamilBracho
1722 2

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 ?

delete flag offensive retag edit

0 Replies

Sort by ยป oldest newest

answered 2008-11-19 11:05:26 +0800

windperson gravatar image windperson
415 1

Hi YamilBracho,
You may need to unwrap the object in this parentList list collection to get the real object.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-11-18 20:34:09 +0800

Seen: 159 times

Last updated: Nov 18 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More