I edited my dataFormats.cfg and added a new line
Code: Select all
UPPER; UPPER(%%FIELD%%)
Code: Select all
UPPER; UPPER(%%FIELD%%)
Yes. For this my dataformat appears on dropdown.grimblefritz wrote:Did you exit AppGini and restart?
I'm checking it, and is with LFMake sure you add your customizations to the end of the file. I ran into issues trying to insert them, especially after updating AppGini.
Make sure you are using an editor that retains the end-of-line convention. That file is installed using Unix EOL (LF). Not sure, but it might hiccup if converted to DOS EOL (CRLF).
I know. I'm not looking for input mask, I just want to make sure all is converted to uppercase on save.Lastly, since it's a mysql function that's being applied, it is ONLY applied during insert/update. (For those expecting it might act as an input mask.) This means if your data is already present in the database in lower/mixed case, it will be displayed as such. Upon saving, it should be forced to UPPER and subsequently retrieved "converted".
Yes, I don't like too much either, but, I would like to use all provided by AppGini and avoid to write unnecessary code.Personally, I do not like the data formats feature and avoid using it if at all possible.
Code: Select all
<dataFormat>
<![CDATA[13]]>
</dataFormat>
Code: Select all
# grep -r FORMAT
incCommon.php: 'customer' => "`customer`.`id` as 'id', DATE_FORMAT(`customer`.`name`, '%h:%i %p') as 'name'",
customer_view.php: "DATE_FORMAT(`customer`.`name`, '%h:%i %p')" => "name"
customer_view.php: "DATE_FORMAT(`customer`.`name`, '%h:%i %p')" => "name"
customer_view.php: "DATE_FORMAT(`customer`.`name`, '%h:%i %p')" => "name"
admin/pageViewMembers.php: $res=sql("select lcase(m.memberID), g.name, DATE_FORMAT(m.signupDate, '" . makeSafe($adminConfig['MySQLDateFormat'], false) . "'), m.custom1, m.custom2, m.custom3, m.custom4, m.isBanned, m.isApproved from membership_users m left join membership_groups g on m.groupID=g.groupID $where order by m.signupDate limit $start, " . intval($adminConfig['membersPerPage']), $eo);
Code: Select all
<dataFormat>
<![CDATA[14]]>
</dataFormat>
Code: Select all
# grep -r customer...name
ajax_combo.php: 'parent_caption' => '`customer`.`name`',
ajax_combo.php: 'parent_caption' => '`customer`.`name`',
ajax_combo.php: 'parent_caption' => '`customer`.`name`',
incCommon.php: 'customer' => "`customer`.`id` as 'id', `customer`.`name` as 'name'",
customer_view.php: "`customer`.`name`" => "name"
customer_view.php: "`customer`.`name`" => "name"
customer_view.php: "`customer`.`name`" => "Name"
customer_view.php: "`customer`.`name`" => "name"