Sorry, I forgot to say, that i have already done it with a
FormTable, and i need a custom checkbox because of the short
values (1 or 0) in my data source.
each time a checkbox is set to checked, it should set the field
in my model to 1 and so on.
heres the code of the home.page file (a snippet):
<component id="buchungenTable" type="contrib:FormTable">
<binding name="columns">
'belegdatum:belegdatum, ' +
'artikel:artikel.artikel, ' +
'!lieferschein:lieferscheinnummer, ' +
'!bestellnummer:bestellnummer, ' +
'!von:vonLieferant.lieferant, ' +
'!an:anLieferant.lieferant, ' +
'!menge:menge, ' +
'!inordnung:kontrolle.inOrdnung, ' +
'!nichtinordnung:kontrolle.nichtInOrdnung, ' +
'!anmerkung:kontrolle.anmerkung'
</binding>
<binding name="pageSize" expression="0"/>
<binding name="row" expression="currentBuchung"/>
<binding name="source" expression="buchungen"/>
<binding name="rowsClass" expression="beans.evenOdd.next"/>
<binding name="convertor" expression="buchungConvertor"/>
</component>
<component id="belegdatumColumnValue" type="Block"/>
<component id="belegdatum" type="Insert">
<binding name="value"
expression="components.buchungenTable.tableRow.belegdatum"/>
<binding name="format"
expression="@[EMAIL PROTECTED]"/>
</component>
<component id="anmerkungColumnValue" type="Block"/>
<component id="anmerkung" type="TextField">
<binding name="value"
expression="components.buchungenTable.tableRow.
kontrolle.anmerkung"/>
<binding name="size" expression="20"/>
</component>
<property-specification name="inOrdnungSelected"
type="boolean"
initial-value="false"/>
<property-specification name="nichtInOrdnungSelected"
type="boolean"
initial-value="false"/>
<!-- ############ In Ordnung Column #### -->
<component id="inordnungColumnValue" type="Block"/>
<component id="inordnung" type="SbbsWebCheckbox">
<binding name="value"
expression=
"components.buchungenTable.tableRow.
kontrolle.inOrdnung"/>
<binding name="selected"
expression="inOrdnungSelected"/>
</component>
<!-- #### Nicht In Ordnung Column ##### -->
<component id="nichtinordnungColumnValue" type="Block"/>
<component id="nichtinordnung" type="SbbsWebCheckbox">
<binding name="value"
expression=
"components.buchungenTable.tableRow.
kontrolle.nichtInOrdnung"/>
<binding name="selected"
expression="nichtInOrdnungSelected"/>
</component>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]