First time here? Check out the FAQ!
![]() | 1 | initial version | |
I have a code in ZK, and i am loading dates in a listheader, and i need load the same data in each day of the week, in my case the variable loadData
is a List of Strings with two camps: {"atr1", "atr2"}, my Zk code is:
<zk>
<div apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('campaign.Campaign')" >
<window id="usersEdit">
<listbox>
<auxhead>
<auxheader colspan="2" class="topic">Lunes</auxheader>
<auxheader colspan="2" class="topic">Martes</auxheader>
<auxheader colspan="2" class="topic">Miercoles</auxheader>
<auxheader colspan="2" class="topic">Jueves</auxheader>
<auxheader colspan="2" class="topic">Viernes</auxheader>
<auxheader colspan="2" class="topic">Sabado</auxheader>
<auxheader colspan="2" class="topic">Domingo</auxheader>
</auxhead>
<listhead children="@load(vm.loadData)">
<template name="children" var="headerName">
<listheader label="@load(headerName)" sort="auto" ></listheader>
<listheader label="@load(headerName)" sort="auto" ></listheader>
<listheader label="@load(headerName)" sort="auto" ></listheader>
<listheader label="@load(headerName)" sort="auto" ></listheader>
<listheader label="@load(headerName)" sort="auto" ></listheader>
<listheader label="@load(headerName)" sort="auto" ></listheader>
<listheader label="@load(headerName)" sort="auto" ></listheader>
</template>
</listhead>
</listbox>
</window>
</div>
</zk>
The problem is that i not have the same data in columns for each day of the week.
I need somithing like that:
lunes martes Miercoles Jueves Viernes Sabado
atr1 atr2 atr1 atr2 atr1 atr2 atr1 atr2 atr1 atr2 atr1 atr2 ...
The problem is the listheader sort by name my columns, and i have something like:
lunes martes Miercoles Jueves Viernes Sabado
atr1 atr1 atr1 atr1 atr1 atr1 atr2 atr2 atr2 atr2 atr2 atr2 ...
How can i do to solve my problem, because i need load of a list, because the list is a query in my database.
Thanks
![]() | 2 | No.2 Revision |
I have a code in ZK, and i am loading dates in a listheader, and i need load the same data in each day of the week, in my case the variable loadData
is a List of Strings with two camps: {"atr1", "atr2"}, my Zk code is:
<zk>
<div apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('campaign.Campaign')" >
<window id="usersEdit">
<listbox>
<auxhead>
<auxheader colspan="2" class="topic">Lunes</auxheader>
<auxheader colspan="2" class="topic">Martes</auxheader>
<auxheader colspan="2" class="topic">Miercoles</auxheader>
<auxheader colspan="2" class="topic">Jueves</auxheader>
<auxheader colspan="2" class="topic">Viernes</auxheader>
<auxheader colspan="2" class="topic">Sabado</auxheader>
<auxheader colspan="2" class="topic">Domingo</auxheader>
</auxhead>
<listhead children="@load(vm.loadData)">
<template name="children" var="headerName">
<listheader label="@load(headerName)" sort="auto" ></listheader>
<listheader label="@load(headerName)" sort="auto" ></listheader>
<listheader label="@load(headerName)" sort="auto" ></listheader>
<listheader label="@load(headerName)" sort="auto" ></listheader>
<listheader label="@load(headerName)" sort="auto" ></listheader>
<listheader label="@load(headerName)" sort="auto" ></listheader>
<listheader label="@load(headerName)" sort="auto" ></listheader>
</template>
</listhead>
</listbox>
</listbox>
</window>
</div>
</zk>
The problem is that i not have the same data in columns for each day of the week.
I need somithing like that:
lunes martes Miercoles Jueves Viernes Sabado
atr1 atr2 atr1 atr2 atr1 atr2 atr1 atr2 atr1 atr2 atr1 atr2 ...
The problem is the listheader sort by name my columns, and i have something like:
lunes martes Miercoles Jueves Viernes Sabado
atr1 atr1 atr1 atr1 atr1 atr1 atr2 atr2 atr2 atr2 atr2 atr2 ...
How can i do to solve my problem, because i need load of a list, because the list is a query in my database.
Thanks