by javier | Nov 13, 2020 | Advance Functions, Look & Feel
When using quick search in an AppGini app, and no matches are found, a default alert-warning message is displayed. We want to replace it with some custom HTML message. Files to edit Add the following code to hooks/tablename-tv.js (where tablename is the name of the...
by javier | Nov 13, 2020 | Advance Functions, Look & Feel
You have a table in your AppGini app that includes a checkbox field. In the table view, you want to highlight records where this checkbox field is unchecked. Files to edit hooks/footer-extras.php <script> $j(function() {...
by javier | Nov 13, 2020 | Advance Functions, Look & Feel
You have a table storing some kind of task (could be an order, a task in a project, … etc). This task has a due date, and you want to highlight records where due date is today. This can be achieved by using JavaScript code that checks the due date in each...
by javier | Nov 13, 2020 | Advance Functions, Look & Feel
The password reset link in the login page of your AppGini apps allows users to reset their password if they forget it. It’s a convenient self-service way to create a new password without having the admin do it for users. But sometimes you might want to disable...
by javier | Nov 13, 2020 | Advance Functions
You want to hide one or more fields when printing the detail view of some table in your AppGini app. Files to edit Add the following code to hooks/tablename-dv.js (where tablename is the name of the concerned table). If the file doesn’t exist, create it....
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...
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, 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 | 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 | 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’,...
Recent Comments