How to add a button for adding subitems to every row of table view

Adding buttons and adding links to a table view has been described in the docs. By using the %ID% placeholer you can use the record’s primary key as parameter for links. For example for opening the record in detail view. In this article we are going to use the %ID% parameter for adding a sub-item (child record / detail record) to the row. The Online Clinical Management System (OCMS), which I’m using in many examples, contains patients and appointments. Appointments are stored in a table named events. And the column name_patient has been configured as lookup field refering patients table. …

How to: re-use multi-row Batch Actions for single table rows

With Batch Actions you can execute a javascript function for all selected rows in a Table View. In this step-by-step guide I am going to show, how add a button to every table view row and execute an existing batch action on button click for that specific row. The following video show the possibilities you have with Batch Actions and additional buttons per row: Illustration If you already have a working batch action script integrated in your TABLENAME-tv.js file, you can skip steps 1 and 2 and directly head over to step 3. Step 1: Create Batch Action javascript function …

AppGini 5.82: New Preview function after generation

One of the new features is the Preview function. This allows you to open up the default browser and load the generated app with one click after generation of code. Step 1: Update AppGini If you don’t already have, please update AppGini to version 5.82. After installation, start AppGini and check if you are using the latest version: Close the About-form. Step 2: Configure localhost Now open Preferences in AppGini: Now set the Document root value and the Base URL value. Document root is the directory name of your webserver’s root directory. Base URL ist the base address which is …

How to: Default-value hack for more flexibility (Part 2)

In Part 1 we have seen how to change a value on inserting a new record. Now we are going to change multiple values at once using the same technique. Part 1: Technique + Changing single fields Part 2: Changing multiple fields at once Step 1 and Step 2 Pease follow Step1 and Step 2 from Part 1 of this tutorial. Step 3: Define fieldnames and values A good way for defining multiple fieldname+value tuples in PHP is by using associative arrays: A shorter variant: Please note the assignment operator => between key and value! From my own experience, sometimes …