htmlselect.comp The HtmlSelect widget is an upgrade of the basic HTML select button. It is not buffered in contrast to the Select widget. Input Parameters: Html...
string.comp The String widget is used for input fields that contain a strings. The string length can be defined in the .mql file or preferably directly in the da...
Il framework MasonSQL dispone di un generatore di report nei formati ODT e PDF. I dati da includere nel report vengono estratti dal database mediante delle query....
The MasonSQL is a Mason based web application framework. In combination with the Linux platform, the Apache web server and Perl scripting language it forms a web ...
Creating Table With Empty SQL File In this chapter we will create an example demo application for a small bakery shop, to this purpose we need to create some kind...
divselect.comp The DivSelect widget is the most sophisticated of the three available select widgets. Its intended for showing more complex drop down lists. It has...
Initial Understanding Document User Self Registration { border="1" cellpadding="2" Date Version Modified By Comments 09032016 Draft r.1.0 Main.Rajes...
Queste istruzioni per l'installazione sono state verificate su Ubuntu Precise (12.04) e Ubuntu Trusty (14.04) con il downgrade ad Apache 2.2 These instructions fo...
MasonSQL 1.6.3 Nel documento viene descritta l'interfaccia per lo scambio dei dati per le classiche operazioni di Creazione(Create), Lettura(Retrieve), Aggiorname...
Deploy Let's Encrypt SSL certificates With the non profit certificate authority Let's Encrypt, it is possible to get free https certificates. Certificates expire...
Import data from XLS tables and others formats (XLS, JSON, ...) Preliminary * Now the framework permit to export data, but not to import and the exported tabl...
global_autohandler GenericSelect_FIELD Method The drop down lists in the MasonSQL framework are implemented with select, htmlselect or divselect widgets, their i...
Il framework MasonSQL è dotato di un sistema di messaggistica per gli utenti con le seguenti modalità di inoltro: * visualizzazione dei messaggi nel portale we...
# apt get install cpanminus build essential Utilizzando mpm_event o mpm_worker abbiamo riscontrato degli errori nell'esecuzione e pertanto la configurazione con...
Upgrade from Ubuntu Xenial VPS to Bionic On this page: Upgrade O.S. * https://linuxconfig.org/how to upgrade to ubuntu 18 04 lts bionic beaver Upgrade Postgr...
Creata la VM con almeno 512M/RAM e 2Gbye di disco si procede con l'aggiornamento del sistema operativo e con l'installazione dei package. Create the VM with at le...
Upgrade from Ubuntu Precise VPS to Xenial # E' importante sapere qual'e' la versione presente lsb_release a # La risposta sara' di questo tipo: # # No LSB modul...
Ubuntu 18_04 LTS (Bionic) # apt get y install cpanminus build essential Utilizzando mpm_event o mpm_worker abbiamo riscontrato degli errori nell'esecuzione e ...
Common Parameters Parameters common to select.comp, htmlselect.comp and divselect.comp widgets: Parameter Name Description Default Value id Select Com...
XLS Methods Method Name Description Default Contents xls Is the method that is called when user presses the XLS button.Its default behavior can be cha...
MasonSQL Web Preferences The following settings are web preferences of the MasonSQL web. These preferences overwrite the site level preferences in . and ,...
Inheriting Table Properties In this chapter we will make the orders3.mql file which inherits properties from orders2.mql file. We will add the properties that we ...
Recoding optimizations 2018 ATTENTION: These changes (from svn version 534) are not compatible with older versions! Update Dojo Toolkit Update code to the most r...
Internal Database The MasonSQL component /opt/masonsql/htdocs/lib/dbms_library.comp makes SQL queries to internal PostgreSQL database 9.5 which conforms to SQL st...
Files.comp The Files widget enables users to attach files to records in a table. Input Parameters: Parameters Parameter Name Description Default Value ...
select.comp The Select widget is the simplest of the three available select widgets. The displayed selection is a result of the specified query. The selection is...
Session Management to manage user connection from many workstation and mobiles. Preface MasonSQL framework uses authentication based on Cookie. If the user open...
Testing MasonSQL Queries On this page: Running test_callRemote.html This test file /opt/masonsql/htdocs/test/test_callRemote.html is small enough to analyze it q...
_FIELD Methods As shown in the examples from previous chapters each field can also be uniquely configured. Here's the list of the FIELD methods: Method Name A...
Using Select and HtmlSelect Widgets We already have an example table with Commission ID and Employee ID fields pointing to their children tables which is not very...
Using DivSelect Widget On this page: Defining Children's Fields In this example we'll be adding the divselect widget to the employee field.The FIELDS_NOT_NULL co...
library.comp Subroutines The library component is the MasonSQL root component which initializes logging, includes most essential Perl modules and provides a coupl...
form.comp The Form widget provides possibility to use forms in a popup window. Input Parameters: Parameters Parameter Name Description Default Value id...
Creating Table With Simple SQL File In this chapter we will make the orders2.mql file and fill it up with a few simple methods. We will also add the table in the ...
Managing Groups An authorization mechanism in the MasonSQL framework is implemented with groups. Its a concept similar to Unix file system authorization although ...
Universal Methods and Subroutines Method orSubroutine Name Parameter Name Valid Input Value orAttribute Value Description Default Value Find_Compone...
PRE, POST, POST_NO The hooks for these methods are available to be executed prior or after the INSERT, UPDATE or DELETE queries. The methods can generate a SQL co...
FIELDS Methods Some of the FIELDS methods were already encountered in previous chapters; Here's the complete list of the FIELDS methods: Method Name Descripti...
DBMS Library Component The dbms_library.comp provides database interface. Some of its methods are also used by frame.html. Its less complex methods are intended ...
Autohandlers The autohandlers offer improved inherit mechanism. That means they might just as well be used as normal libraries. If we want to write a generalized ...
Adding Child Frame In this example we will display a table together with one linking table. We will also do some improvements of the input fields. On this page: ...
Access to PostgreSQL Database On this page: Setting Up pgAdmin With Tunneling It is convenient to use pgAdmin for the PostgreSQL database administration. After i...
Report Manager Use of Report Manager (Reportman in short) with MasonSQL is deprecated. Report Manager currently supports Wine version, Kylix version is deprecated...
Attention! Perlbrew deploy is necessary only on Ubutu 12.04! # Install Perlbrew apt get y update apt get y install perlbrew mkdir /opt/masonsql/perlbrew # Add P...
Mason Configuration File The MasonSQL configuration file path /opt/masonsql/etc/apache2.masonsql.conf must be included in the application config file: Eg. /opt/de...
Report Component The report.pdf component receives a command line parameters that are passed on to the Reportman or to the ODT Report library which in turn gener...
ODT Reportman User's Guide In this guide it will be explained the usage of the ODT Report web form using an example report. In the example it will be described th...
ODT Reportman Library ODT Reportman library produces a MasonSQL reports using an .odt files as templates. The template files are created with the LibreOffice's ap...
Duplicating Application to New Server OS: Ubuntu 12.04 LTS (Precise Pangolin) in VPS (OpenVZ) In this example we will duplicate the https://gas devel.leader.it ...
Report Methods The report methods are called when a browser makes a pdf query request (see Testing Queries). The query request is initiated with printSelected()...
file.comp The file widget contains the base64 encoded content of a file. An upload window pops up in edit mode on mouse click on the widget. On double click the c...
Base Component The input.comp is a father of all available widgets. On this page: Input Class The input.js contains definition of a base class which is used by t...
Copy Paste features in MasonSQL TABLE form Preface In the MasonSQl form of type TABLE at the left, for each row, there is a flag used to select colums to delete ...
MasonSql porting to Apache 2.4 The current (2016) version of MasonSQL is compatible with Apache 2.0 and 2.2 with part of it compatible with very old version 1.3....
number.comp The Number widget is used for input fields that should contain a numeric value. Additional restrictions on the numbers can be specified. Input Parame...
color.comp The color widget allows user to find a color. On this page: Parameters Parameter Name Description Default Value $value A color string whic...
Input Widgets The Input widgets are a JavaScript widgets that provide means to input or display different types of data into or from the internal database. A typ...
MasonSQL::Report Revision $Revision: $ Description MasonSQL implementation of reporting. Included Libraries and Subroutines Library or Function Name ...
image.comp The image widget displays the base64 encoded string as an image. An image upload window pops up in edit mode on mouse click inside the image frame. On ...
Query Methods and Subroutines There's a general convention to use the PRE, POST and POST_NO methods for handling fields in the tables and INSERT, UPDATE and DELET...
Report Subroutines DBMS Library subroutines related to reporting. Subroutine Name Parameter Name Valid Input Value Description Array2report_idSql() ...
Authorization Methods and Subroutines SQL injection check Queries generated by the GUI are controlled by the server. Subroutines Subroutine Name Parameter ...
button.comp The Button widget is a graphical control element that provides to user a simple way to trigger an event. On this page: Parameters Parameter Name ...
Message Forwarding The /opt/masonsql/bin/cronjobs file is forwarding authority for email messages and text messages in the queue.It reads the PerlSetVar variables...
codfisc_pi.comp This widget is used for personal fiscal and VAT identification codes used in Italy. Input Parameters: Parameters The widget checks the validity o...
timestamp.comp The Timestamp widget is combination of date and time widgets. It is used when it is required both date and time. The date and time must be specifie...
checkbox.comp The Checkbox is commonly used when more than one option may need to be selected. Checking the box enables that option and unchecking it disables it....
Permission.comp The Permission widget is used for allowing different types of authorizations to different groups of users for every function. Input Parameters: P...
FCKeditor.comp FCKEditor is a browser based WYSIWYG content editor. This means the content being edited is a genuine graphical representation of the published con...
url.comp The Url widget is used for opening URLs in a separate window or box area. Input Parameters: Parameters Parameter Name Description Default Value ...
time.comp The Time widget is used for setting the time. The time must be specified in HH:MM format. If the time is specified as value 01:02:33 the widget will d...
span.comp The Text Span widget is used for grouping elements in a document without being itself visually changed. It also provides a way to add a hook to a part o...
radio.comp The Radio Button widget allows the user to choose from one of a predefined set of options. Input Parameters: Parameters Parameter Name Description...
date.comp The Date widget is used for displaying or setting a date. Input Parameters: Parameters The date must be specified in DD/MM/YYYY format. Parameter Nam...
Application to export POD documentation from SVN/GIT to Foswiki portal Introduction Leader.IT uses a Foswiki Web portal to manage documentations, also this docum...
Mason Literature The Mason Book There is a great book about Mason, titled Embedding Perl in HTML with Mason, by Dave Rolsky and Ken Williams. The book's website ...
Report Manager Prints a report manager (.rep) file to a Adobe PDF file. Version: printreptopdf 2.9a Usage: printreptopdf Options stdin reportfilename outputfi...
Configure backup system to preserve database integrity The backup system copy every file in the server, but database files during backup can change and final re...
Handling Email and SMS Messages On this page: Messaging Procedure To send message the application must save the message information into the database with all of...
Using Number Widget The number widget is input number widget, it is used for input fields that should contain a numeric value. You can set restrictions on the nu...
Additional Tools Print Server A print server utility is used for printing to a local printer in the raw mode, connected to user PC. The utility is in the /opt/ma...
Turning On Debugs * The application initialization file /opt/demo_masonsql/htdocs/init.application.comp is intended for enabling debugs and setting the debug l...
Proprietary Classes On this page: Auth_AC::Auth_AC The MasonSQL Authentication library consists of two classes: * Auth_AC::AuthBasicHandler handles Session ba...
Javascript Widgets Dojo Toolkit The MasonSQL framework currently uses the Dojo Toolkit version 1.9 which is an Ajax framework. See the public resources at http:/...