by javier | Nov 13, 2020 | Table Hook Modifications
The following example modifies the SQL query used to limit records retrieved to 10 records only if the user requesting the CSV file is not an admin. function tablename_csv($query, $memberInfo, $args){ // return only the first 10 records for non-admin users....
by javier | Nov 13, 2020 | Table Hook Modifications
For debugging purposes, you can inspect the contents of the DataList object by adding the following code into the tablename_init hook function in the generated hooks/tablename.php file (replace tablename by the actual name of the concerned table): function...
by javier | Nov 13, 2020 | Magic Files
You can create some files with specific names inside the hooks folder that your AppGini-generated application would use to perform a specific task. These files are optional, meaning that if they exist, your application will automatically use them to alter a default...
by javier | Nov 13, 2020 | Magic Files
In AppGini, you can define a field as an options list so that your application users can select the value of the field from a set of options. For example, the Country field in the screenshot to the left is an options list. An easier method that doesn’t involve...
by javier | Nov 13, 2020 | Table Hook Modifications
links-home.php: You can add custom links in the home page of your application by appending them to this file. The format for each link is: $homeLinks[] = array( ‘url’ => ‘path/to/link’, ‘title’ => ‘Link...
by javier | Nov 13, 2020 | Look & Feel, Table Hook Modifications
links-navmenu.php: You can add custom links to the navigation menu (“Jump to” menu) of your application by appending them to this file. The format for each link is: $navLinks[] = array( ‘url’ => ‘path/to/link’,...
by javier | Nov 13, 2020 | Look & Feel, Table Hook Modifications
You have a child tab under pne of your AppGini app forms. You want to display some note or instructions inside that tab. hooks/tablename-dv.js (where tablename is the name of the parent table, employees in this example) $j(function() { setInterval(function() {...
by javier | Nov 13, 2020 | Advance Functions, Table Hook Modifications
Calculated expiry date field (given production date and validity period) Purpose of this recipe You have a table for handling items that expire (for example, medications, groceries, raw materials that expire, support contracts, … etc). You want to specify the...
by javier | Nov 13, 2020 | Table Hook Modifications
hooks/footer-extras.php <script> $j(function() { // get id of dropdown ({tablename}_pagesMenu) var id = location.href.match(/.*/(.*)_view.php/)[1] + ‘_pagesMenu’; if(!$j(‘#’ + id).length) return; var page = parseInt($j(‘#’ +...
by javier | Nov 13, 2020 | Advance Functions, Look & Feel
AppGini allows you to quickly add a parent record while editing a child record by clicking a button in the child form. This is quite convenient and time-saving. However, sometimes you don’t want to display this + button. For example, let’s say you have an...
Recent Comments