0

GroupsModelArray problems

asked 2017-09-19 02:00:06 +0800

lramellavotta gravatar image lramellavotta flag of Italy
200 1 8

updated 2017-09-21 16:06:34 +0800

cor3000 gravatar image cor3000
6280 2 7

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)));
delete flag offensive retag edit

4 Answers

Sort by » oldest newest most voted
0

answered 2017-09-20 09:28:57 +0800

cor3000 gravatar image cor3000
6280 2 7

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

link publish delete flag offensive edit
0

answered 2017-09-21 00:13:19 +0800

lramellavotta gravatar image lramellavotta flag of Italy
200 1 8

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

link publish delete flag offensive edit

Comments

as the code is running on our demo side I assume it's working. So you must be something different in your code. Can you provide a runnable example on ZKfiddle showing your actual problem?

cor3000 ( 2017-09-21 16:11:38 +0800 )edit
0

answered 2017-09-21 15:28:43 +0800

khcyt gravatar image khcyt
216 1 1

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

link publish delete flag offensive edit

Comments

I agree: I'd suggest something similar, however without the real code it's hard to make a helpful suggestion.

cor3000 ( 2017-09-21 16:10:15 +0800 )edit
0

answered 2017-09-21 23:54:52 +0800

lramellavotta gravatar image lramellavotta flag of Italy
200 1 8

Thanks to all, I am on a good path. I will publish my solution as soon as I'm done.

Thanks. Luca

link publish delete flag offensive edit

Comments

that's great news... hang in

cor3000 ( 2017-09-22 08:45:59 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2017-09-19 02:00:06 +0800

Seen: 23 times

Last updated: Sep 21 '17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More