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
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, 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
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
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 lookup field in a table. And when adding a new record to the table, you want that field to be set to the first value by default (rather than being empty). Files to edit Add the following code to hooks/tablename-dv.js (where tablename is the name of the...
by javier | Nov 13, 2020 | Advance Functions
You have a table storing some kind of business task that has a start date and an end date. You want to calculate the duration of this task as working days, that is, excluding weekends. This can be achieved using calculated fields. We’ll create a duration field...
by javier | Nov 13, 2020 | Advance Functions
STEP 1/3: Remove the table link from the homepage The first step would be to remove the link to the orders table from the homepage if the current user belongs to the CustomerSupport group. We’ll add the code for removing the link in hooks/footer-extras.php:...
by javier | Nov 13, 2020 | Advance Functions
The attached file will count access from a user (by IP), and, if the file is being accessed to much (defined in the script), the user (IP) will be banned for a certain time (defined in the script) from accessing some page. The user will then see a countdown which...
by javier | Nov 13, 2020 | Advance Functions
Place the following html in your custom/customized page and replace YOURTABLENAME (first line) by your table name: <form enctype="multipart/form-data" method="post" name="mySearchForm" action="YOURTABLENAME _view.php">...
Recent Comments