Problem in code generation templates?

thread: 2 messages  |  last: a year ago  |  started: monday, march 29, 2010, 1:41 am pdt


#1  |  Luca Sagoleo (Genoa, Italy) Italy
Monday, March 29, 2010, 1:41 AM PDT

I noticed that in _qpanel_list.tpl, the generated class is named XXXXListPanel while i was expecting XXXXListPanelBase, as it was in previous versions of qcodo.
I also noticed that in the comments at line 11 there is:

must create a new QPanel which extends this <%= $objTable->ClassName %>ListPanelBase

In the previous version I used to use, code generation gave me a ListPanelBase class and a ListPanel which was a draft, meant to be modified.
Is this a “change of direction” or simply an error?

Thank you
Luca

#2  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Monday, March 29, 2010, 7:38 AM PDT

Yes, this is a “change in direction”.  Note that the new generated panel actually utilizes a MetaDataGrid for that class object... and the meta data grid is what actually encapsulates most of the table-specific table options and settings.

It's a much more powerful and flexible approach to the old listpanelbase of the older versions.

You can read up more about MetaDataGrid (as well as MetaControl) in the Examples site.



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.