migrate working application to qcubed v2.0
In previous post I told about work involved on generic index.php and index.tpl.php in every application directory (table related) to be able to take advantage from ListPanel.class and EditPanel.class panel derived from the generated drafts/panel.
Now is time to port my personalized panels.
1- table class moved from \includes\data_classes to \includes\model
The personalizations done in class tables present in includes\data_classes must be ported to the class tables in includes\model.
In my application this consists in data returned from function __toString()
public function __toString() {
return sprintf('%s - %s - %s', $this->strTarga, $this->strModello, $this->dttInContratto );
}2 - metacontrols moved from includes\data_meta_controls to includes\meta_controls
The personalizations done in MetaControl class tables present in includes\data_meta_controls must be ported to the MetaControl class tables in includes\meta_controls (adding the ovverride functions developed).
In my application this consists in logic to create personalized lists, set limits for
QDateTimePicker, translation for label, default textbox content etc...
3 - Copy my personalized List and Edit panel.
In my application for every panel are some filters to let user search info (for example
in auto table user con search for number-plate, assigned user ) designed around a method to confuse the standard databinder
ricerca per targa (usare % per qualunque carattere): ..... anche Dismesse
ricerca per risorsa (usare % per qualunque carattere): ...... To use my filters I set to false ShowFilter of table datagrid. For table Autov the code is
$this->dtgAutovs->ShowFilter = false;I also copied my styles.css from assets\css\ to assets\_core\css
At first impression, the first fragment of application, that I ported, works.
bye, Gianni.
