Table 14.1. List of scripting variables
Scripting variables | Type | Description |
searchFieldNames_tableName | java.util.Hashtable | Contains the encoded names used for selecting the search criteria fields (firstname, lastname, etc.) Scope: inside the respective DbForms- element |
searchFieldModeNames_ tableName | java.util.Hashtable | Contains the encoded names used for specifying the search modes (and, or) of each search criteria. Scope: inside the respective DbForms- element |
searchFieldAgorithmNames_tableName | java.util.Hashtable | Contains the encoded names used for specifying the algorithm type (weak, sharp) of each search criteria. Scope: inside the respective DbForms-element |
currentRow_tableName | java.util.Hashtable | Contains the field-values of the current row. This construct is similar to associated Arrays used in many Perl/PHP modules Example: String email = (String) currentRow_customers.get("email"); Scope: inside the respective <body>-tag |
position_tableName | java.lang.String | Contains the encoded key-fieldvalues of the current row. Scope: inside the respective <body>-element |
rsv_tableName | org.dbforms.util.ResultSetVector | Refers to the ResultSetVector containing the data to display. Use the methods getField() getFieldAsObject to retrieve data from the vector. Example: if we want to print out a string representation of the current value of the field "reporter" in table "bugs", then we would write: <%= rsv_bugs.getField("reporter")%> we also could write: <%= rsv_bugs.getFieldAsObject("reporter") %> what is the difference between getField(String) and getFieldAsObject(String): getField always returns a String (as long as the fieldname is correct), even it the underlying data in the database has the value NULL. getFieldAsObject returns the Object value as provided by the ResultSet.getObject(int) method. This means NULL-values will be returned as null and not as empty ""-Strings. |