-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I have this situation:
List<ChiamateClientiExt> lstTelCli;
I'd like to use GroupsModelArray but I have big problem to use it. I tried some solution but without success. Someone has a little example to help me?
Thanks
p.s. this solution don't works...
Object[][] obj = new Object[lstTelCli.size()][];
int i=0;
for (it = lstTelCli.iterator(); it.hasNext(); )
{
utChiamate = (ChiamateClientiExt)it.next();
obj[i] = new Object[] { utChiamate.getProgressivo(), utChiamate.getData_chiamata(), utChiamate.getEsito_contatto(),
utChiamate.getChiamata_chiusa(), utChiamate.getEsito_acquisto(), utChiamate.getLogin_inserimento(),
utChiamate.getDurata_chiamata(),30};
i++;
}
lbTelCli.setModel(new GroupsModelArray(obj,new ArrayComparator(0, true)));
Hi,
listbox/grid grouping are available in ZK PE/EE only. If you are trying to use the grouping feature with the ZK CE edition it can't work. (If you want to try the feature for free you can use the EE-Evaluation version available for download)
You also didn't provide any error message or description about what didn't work. So if it's not an issue about edition please provide the error details. Or provide a runnable example on ZK-Fiddle. (e.g. here a working example created by someone else http://zkfiddle.org/sample/2u0uqfk/12-Keep-textbox-value-in-GroupModel-while-open-and-close)
Additionally you tagged your question with version 6.5.3 (which is quite old) so your issue could also be fixed in a more recent version of ZK.
Regards,
Robert
Hi Robert, I use ZK 6.5.7.1 EE on old software. A customer asked me this amendment in order to make more visibile some data. I tried with example provided by zk example but when I tried to display data I just seen the first field (progressive invoice number ; this is my field to group detail) without remaining data. Can anybody give me an simple example?
Regards, Luca
Hello Luca
You may be successful if you change your model to dynamic templates. See the last answer to this question ZK 6 bind and model:group
Regards, Kai
Thanks to all, I am on a good path. I will publish my solution as soon as I'm done.
Thanks. Luca
Asked: 2017-09-19 02:00:06 +0800
Seen: 23 times
Last updated: Sep 21 '17
zk怎么实现动态字段的页面显示,我需要整合一个统计表,而这个统计表的显示字段是动态获取的,这个怎么办
When I used Echarts ,it is report an error
Difference between selenium-support and selenium-java jars
org.zkoss.zk.ui.UiException: You cannot access components belong to other desktop
Upload excel file and then send data in excel file to database oracle using zk framework
How open an url/page passing big data parameters
save_user_template python code problem [closed]