Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026

Diff for phpMyEdit/doc/sgml/configuration.fields.sgml between version 1.26 and 1.27

version 1.26, 2003/05/12 22:30:22 version 1.27, 2003/05/16 23:45:38
Line 1 
Line 1 
 <!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.25 2003/05/02 17:51:33 nepto Exp $ -->  <!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.26 2003/05/12 22:30:22 nepto Exp $ -->
   
 <!-- Categories:  <!-- Categories:
   
Line 138  Sometimes a short title can't be explici
Line 138  Sometimes a short title can't be explici
 provide the user a large description on a given field when he is manipulating  provide the user a large description on a given field when he is manipulating
 with field data. For this purpose was  with field data. For this purpose was
 <varname>$opts['fdd']['col_name']['help']</> option created. Content of this  <varname>$opts['fdd']['col_name']['help']</> option created. Content of this
 option will appear in the third column of record display pages.  option will appear in the third column of record display pages (Add, View, Change,
   Copy and Delete modes).
   
 </para>  </para>
 <para>  <para>
Line 160  $opts['fdd']['topic']['help'] = 'Enter t
Line 161  $opts['fdd']['topic']['help'] = 'Enter t
 <bridgehead id="configuration.fields.select">Selection boxes</bridgehead>  <bridgehead id="configuration.fields.select">Selection boxes</bridgehead>
 <para>  <para>
   
 Specify field input type as text box, numeric comparsion text box, drop-down  Specify field input type as text box, numeric comparison text box, drop-down
 selection, or multiple selection. The same input type will be used also for  selection, or multiple selection. The same input type will be used also for
 table filtering.  table filtering.
   
Line 239  linkend="configuration.css" endterm="con
Line 240  linkend="configuration.css" endterm="con
 <bridgehead id="configuration.fields.sql">SQL expression</bridgehead>  <bridgehead id="configuration.fields.sql">SQL expression</bridgehead>
 <para>  <para>
   
 There is a possibility to define SQL expression that should be applied to  There is a possibility to define a SQL expression that should be applied to
 particular field when selecting data from database. This is very useful when  particular field when selecting data from database. This is very useful when
 you want to interpret field's content in different way than it is stored in  you want to interpret the field's content in different way than it is stored
 database. To be more clear, see following examples.  in database. To be more clear, see following examples.
   
 <example><title>SQL expressions</title>  <example><title>SQL expressions</title>
 <programlisting><![CDATA[  <programlisting><![CDATA[
Line 257  $opts['fdd']['title']['sql'] = 'IF(TRIM(
Line 258  $opts['fdd']['title']['sql'] = 'IF(TRIM(
 First example appends content of <varname>firstname</> field to  First example appends content of <varname>firstname</> field to
 <varname>surname</> field. Because this is done on the database level, sorting  <varname>surname</> field. Because this is done on the database level, sorting
 and searching (in table filtering page) on this field will properly work.  and searching (in table filtering page) on this field will properly work.
 Similary in the second example, the <varname>title2</> field will be used if  Similarly in the second example, the <varname>title2</> field will be used if
 <varname>title</> field is empty. Using this way you can define some special  <varname>title</> field is empty. In this manner you can define some special
 static string, which should be printed in case a field is empty. Just  static string, which should be printed in case a field is empty. Just
 substitute <varname>title2</> with some quoted string.  substitute a quoted string in place of <varname>title2</>.
   
 </para>  </para>
 </sect1>  </sect1>

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top