Forms Methods

Forms

Some of these methods are related to methods in frame.html.

Method NameSorted descending Parameter Name Description Default Value
TEMPLATE   The generic form for browsing the database table.
The fields are inserted into the template with the provided FORM_TEMPLATE method
(or with parameter $Template).
For example:
<%method FORM_TEMPLATE><p><DESCR:description>:<FIELD:description></p></%method>
See also FATHER_TEMPLATE, CHILDREN_TEMPLATE and CHILD_TEMPLATE in frame.html.
 
TABLE_ROWS   Number of rows in TABLE or in DIVS form.  
TABLE_HEADER   The generic method which displays the table header.  
TABLE   The generic method which displays records in a table.  
STANDARD_FIELD      
SEP_DIV   The <div> separator. Used only by DIVS method. <hr>
ROW_TABLE   The generic row method for browsing the table with TABLE method. Used only by TABLE method.  
ROW_DIVS_TEMPLATE   The generic row method for browsing the table with DIVS_TEMPLATE.
Used only by DIVS_TEMPLATE.
 
ROW_DIVS   The generic row method for browsing the DIVS type of table. Used by DIVS and ALL_ROW_DIVS methods.  
LINEAR   The generic form method with a linear format for browsing the database table.
In this format the fields are sorted in the order in which they were listed.
To interrupt a line insert the character / at the bottom of the field description.
 
HEADER_INCLUDE   Displays additional fields in the table header. Used by the FORM_HEADER method.  
GENERIC_FIELD      
GENERIC_D_FIELD      
FORM_TYPE   TABLE, DIVS, FORM, TEMPLATE or LINEAR, see also frame.html. FORM
FORM_TEMPLATE   The generic form for browsing the database table.
Display or edit single record at a time.
For example:
<%method FORM_TEMPLATE><p>:</p></%method>
 
FORM_HEADER   The method shows the header bar which displays the methods in this order:
The CONTROLS method, HEADER_INCLUDE method and the DESCRIPTION method.
Empty method.
FORM   The form method displays one record at a time.  
FIELD_ROW_DIVS   DEPRECATED: Its beavior to permit to view in GUI a variable number of rows modified by GUI with preloaded templates. The beavior is activated with FIELD_ROW_DIVS method (name of field record that determining the type of line in the case of type DIVS template variables).  
DIVS_TEMPLATE   The generic method for browsing the database table.
Display or edit multiple records at a time.
For example:
<%method DIVS_TEMPLATE>Rec: <RECORD><CHECKBOX><DESCR:par_id>:<FIELD:par_id><DESCR:cod>:<FIELD:cod><DESCR:unit>:<FIELD:unit><DESCR:prezzo>:<FIELD:prezzo><DESCR:rifer>:<FIELD:rifer>
 
DIVS   The generic method which displays records in rows but without table header.  
BOOL_FIND_FIELD      
ALL_ROW_DIVS      

Method Name Parameter Name Description Default Value
CONTROLS   The method shows the control bar with refresh, navigation, modify, delete, save and the rest of the control buttons. The enabling of the buttons depends on the configuration but can also be individually passed to the frame.html.  
  $disp_navbar Display control bar. 1
  $disp_cancel Display Annulla button. 1
  $disp_refresh Display Aggiorna buttton. 1
  $disp_change Display Modifica button. 1
  $disp_insert Display Nuovo button. 1
  $disp_dup Display Duplica button. 0
  $disp_save Display Salva button. 1
  $disp_delete Display Cancella button. 1
  $disp_print Display Stampa button. 1
  $disp_xls Display XLS button. 1
  $disp_log Display LOG button. 1
BUTTON_Ctrl_filter   The Filtra button in the find bar. Calls loadRecords('rewind')
BUTTON_Ctrl_printsel   The St.sel button in the find bar. Calls printSelected('recordset')
BUTTON_Ctrl_xlssel   The XLS button in the find bar. Calls printSelected('xls_recordset')
Topic revision: r11 - 17 Feb 2017, JanezStangelj
This site is powered by FoswikiCopyright (©) Leader.IT - Italy P.I. IT01434390223 Privacy policy & use of cookies