-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
Thank you for this good idea. However, before trying it, could you tell me how to set distinct ID for each of my dynamically-generated textboxes component in ZUL? Can I use <textbox id="tbid_${textCriList.ItemCount}" ...<="" strong=""> ? Or I have to set their IDs programmically? because they are created depending on my listbox setModel() as you can see on my above code.
<listbox id="textCriList"
model="@{mainWin$composer.App.Scho.TextCriteria, load-after='mainWin.onDisplay'}"
sizedByContent="false">
<listhead sizable="true">
<listheader label="Criteria" sort="auto" />
<listheader label="Reasons" />
</listhead>
<listitem self="@{each='textCri'}" value="@{textCri}"
height="25px">
<listcell label="@{textCri.Statement}" />
<listcell>
<custom-attributes CriNo="@{textCri.Criteria_No}" />
<textbox id="tbid_${textCriList.ItemCount}"
value="@{textCri.Criteria_No, converter='sas.application.TextCriAnsConverter', save-after='self.onBlur'}"
rows="3" width="90%" maxlength="500">
</textbox>
</listcell>
</listitem>
</listbox>