-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
Hi, i'm using zk 5.3 pluging for netbeans.
I had a listbox with data loaded using databinding and works fine.
I need to compare 1 retrieve field and evaluate the result, if it's positive i have to show YES else NO.
<listbox mold="paging" multiple="false" checkmark="true" pagingPosition="both" model="@{win$composer.allTipoDocs}"
selectedItem="@{win$composer.selected}" id="listbox">
<listhead sizable="true">
<listheader label="Tipo Documento" sort="none" image="/images/create_doc.gif"/>
<listheader label="Activo?" sort="none" image="/images/home_blue16x16.gif" />
</listhead>
<listitem self="@{each='tdocs'}" value="@{tdocs}">
<listcell label="@{tdocs.descripcion}"></listcell>
<listcell label="@{tdocs.activo}"></listcell>
</listitem>
</listbox>
@{tdocs.activo} returns 0,1 or 2
I need to change the 0 and 1 returned value of @{tdocs.activo} for YES/NO
is this posible???
Otherwise can i use the @{tdocs.activo} returned value and add .png or .gif in the image attribute?? <listcell label="@{tdocs.activo}" image="@{tdocs.activo}" .png="">???
Thanks.