<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
+----------------------------------------------------------------------+
| Netautor Professional Application Server |
+----------------------------------------------------------------------+
| Copyright (C) 1998-2002 digiconcept GmbH. <www.digiconcept.net> |
+----------------------------------------------------------------------+
| This file is subject to license, that is bundled with this package |
| in the file LICENSE.TXT, and is available at through the |
| world-wide-web at http://www.netautor.com/license/ |
| |
| If you did not receive a copy of the license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| hide@address.com so we can mail you a copy. |
+----------------------------------------------------------------------+
| Authors: Stefan Rottensteiner <hide@address.com> |
| Gregor Wollner |
| Helli Kleinhans <hide@address.com> |
+----------------------------------------------------------------------+
-->
<html>
<head>
<title>netautor.docu.general</title>
</head>
<link rel="stylesheet" type="TEXT/CSS" media="screen" href="../../../include/docu.css">
<body>
<a name="docu_top"></a>
<font class="title"><b>Elements</b></font><br><br>
<font class="text">
If you want to use a data base element in your layout you have to write: <br><br>
<font class="function">
<#ELEMENT#>
</font>
<br><br>
If the element is inside an area (see "Application / Table Management / Types") you must write the area before and after the data base element.<br><br>
<font class="function">
<#AREA#> <#ELEMENT#> <#/AREA#>
</font>
<br><br>
You should notice that there are two different possibilities of the output from the data base element.
If the data element is in a form (see "npf_form") then it is shown as an input field corresponding to its type.
If the data element is outside an "npf_form" or the data base element is inside
an "npf_results" which is inside an "npf_form" (the only exception) the value of the data element will be displayed.
<br><br>
Javascript eventhandlers (onchange,..) will output what you enter to the data base element.<br>
e.g:
<font class="function">
<#INPUT onCHANGE="alert('The text has been changed!')"#><br>
</font>
</font>
<br><br>
<font class="title"><b>Some notes about the parameter descriptions</b></font><br><br>
<font class="text">
All parameters are described in the same manner:<br>
<font class="param">Name of parameter</font>.
Eventually with the note that the parameter is <font class="depricated"><b>>>>Deprecated!<<<</b></font>
(ie. is will be supported for some time and my be dissapear). The following link references the new one.<br>
Following is at least a short description in your preferred language.<br>
The 3 part are more technical datails:<br>
<font class="textgrey">Use: </font><br>
Tells you if the parameter is <font class="typeopt">optional</font> or <font class="typeexp">explizit (zwingend)</font>.<br>
<font class="textgrey">Type: </font><br>
Informes you if the parameter is accepting values <font class="typeopt">value param</font> or needs only to be given <font class="typeopt">flag param</font><br>
<font class="textgrey">Quote: </font><br>
(Netautor internal) <font class="typeopt">none</font> means no further internal convertions, <font class="typeopt">full</font> means an internal representation as a list of values.<br>
<font class="textgrey">Replacement: </font><br>
Defines the operation mode of the "magic replacer". For example, with a notation of param="%MY_VALUE%", you can fill the parameter dynamicly with the value of an element of the current context.
Note that the given element name has to have at least 3 characters and must reside in the current context.
If there is no value in the given element of if the element does not exist, the %MY_VALUE% will be replaced by an empty string (<font class="typeopt">full</font>) or will stay as it is (<font class="typeopt">save</font>). If the type is
defined as <font class="typeopt">none</font>, the "magic replacer" is switched off for this parameter.<br>
<font class="textgrey">Default value: </font><br>
The default value.<br>
<br>
</font>
<br><br>
<font class="title"><b>General Parameters</b></font>
<table width="397" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="5" width="397" align="left" valign="top">
<img src="../../../grafik/trennung.gif" width="397" height="17"><br>
</td>
</tr>
<tr>
<td colspan="5" valign="top">
<font class="param">cols</font>
<font class="text">(elements)
<br>
<img src="../../../grafik/pixel.gif" width="1" height="6"><br>
This parameter is only used if the data field is in a formular (see "npf_form"). With this value you can set the length of a text area (data type=text)<br><br>
</font>
</td>
</tr>
<tr>
<td class="textgrey" valign="top">
Use:<br>
<font class="typeopt">optional</font>
</td>
<td class="textgrey" valign="top">
Type:<br>
<font class="typeopt">value param</font>
</td>
<td class="textgrey" valign="top" >
Quote:<br>
<font class="type">none
</td>
<td class="textgrey" valign="top">
Replacement:<br>
<font class="type">full
</td>
<td class="textgrey" valign="top">
Default Value:<br>
<font class="type"><br></font>
</td>
</tr>
<tr>
<td colspan="5" width="397" align="left" valign="top">
<img src="../../../grafik/trennung.gif" width="397" height="17"><br>
</td>
</tr>
<tr>
<td colspan="5" valign="top">
<font class="param">rows</font>
<font class="text">(elements)
<br>
<img src="../../../grafik/pixel.gif" width="1" height="6"><br>
This parameter is only used if the data field is in a formular (see "npf_form"). With this value you can set the height of a text area (data type=text)<br><br></font>
</td>
</tr>
<tr>
<td class="textgrey" valign="top">
Use:<br>
<font class="typeopt">optional</font>
</td>
<td class="textgrey" valign="top">
Type:<br>
<font class="typeopt">value param</font>
</td>
<td class="textgrey" valign="top" >
Quote:<br>
<font class="type">none
</td>
<td class="textgrey" valign="top">
Replacement:<br>
<font class="type">full
</td>
<td class="textgrey" valign="top">
Default Value:<br>
<font class="type"><br></font>
</td>
</tr>
<tr>
<td colspan="5" width="397" align="left" valign="top">
<img src="../../../grafik/trennung.gif" width="397" height="17"><br>
</td>
</tr>
<tr>
<td colspan="5" valign="top">
<font class="param">mode</font>
<font class="text">(all elements except areas)
<br>
<img src="../../../grafik/pixel.gif" width="1" height="6"><br>
Operation mode of an Netautor database element. Possible values are:<br>
EDIT : The element behaves like an element within an NPF_FORM<br>
DISPLAY: The element simply displays it's content<br>
HIDDEN : The value of the elemet is hidden as an HTML INPUT-field of type HIDDEN.
To hide an Netautor Area, you have to "hide" the Netautor Area itself using PLUSMINUS=NO and hide all required
fields within this area(s) using MODE=HIDDEN.<br>
<br><br></font>
</td>
</tr>
<tr>
<td class="textgrey" valign="top">
Use:<br>
<font class="typeopt">optional</font>
</td>
<td class="textgrey" valign="top">
Type:<br>
<font class="typeopt">value param</font>
</td>
<td class="textgrey" valign="top" >
Quote:<br>
<font class="type">none
</td>
<td class="textgrey" valign="top">
Replacement:<br>
<font class="type">full
</td>
<td class="textgrey" valign="top">
Default Value:<br>
<font class="type"><br></font>
</td>
</tr>
<tr>
<td colspan="5" width="397" align="left" valign="top">
<img src="../../../grafik/trennung.gif" width="397" height="17"><br>
</td>
</tr>
<tr>
<td colspan="5" valign="top">
<font class="param">value.maxlen</font>
<font class="text">(elements)
<br>
<img src="../../../grafik/pixel.gif" width="1" height="6"><br>
With this parameter you can control the length of the output. This parameter is only valid for the data types char, text and selection.<br><br></font>
</td>
</tr>
<tr>
<td class="textgrey" valign="top">
Use:<br>
<font class="typeopt">optional</font>
</td>
<td class="textgrey" valign="top">
Type:<br>
<font class="typeopt">value param</font>
</td>
<td class="textgrey" valign="top" >
Quote:<br>
<font class="type">none
</td>
<td class="textgrey" valign="top">
Replacement:<br>
<font class="type">full
</td>
<td class="textgrey" valign="top">
Default Value:<br>
<font class="type"><br></font>
</td>
</tr>
<tr>
<td colspan="5" width="397" align="left" valign="top">
<img src="../../../grafik/trennung.gif" width="397" height="17"><br>
</td>
</tr>
<tr>
<td colspan="5" valign="top">
<font class="param">number</font>
<font class="text">(elements)
<br>
<img src="../../../grafik/pixel.gif" width="1" height="6"><br>
This parameter is only for multiple data base elements. It can be used to display only a defined element or a range of multiple data fields (from/to).
You can also use some "wildcards":
x - for the first element - y for the element last but one - z for the last element
and for element ranges:
x - for the first(if from)/last(if to) element - y for the element last but one - z for the last element
<br><br></font>
</td>
</tr>
<tr>
<td class="textgrey" valign="top">
Use:<br>
<font class="typeopt">optional</font>
</td>
<td class="textgrey" valign="top">
Type:<br>
<font class="typeopt">value param</font>
</td>
<td class="textgrey" valign="top" >
Quote:<br>
<font class="type">none
</td>
<td class="textgrey" valign="top">
Replacement:<br>
<font class="type">full
</td>
<td class="textgrey" valign="top">
Default Value:<br>
<font class="type">0-x</font>
</td>
</tr>
<tr>
<td colspan="5" width="397" align="left" valign="top">
<img src="../../../grafik/trennung.gif" width="397" height="17"><br>
</td>
</tr>
<tr>
<td colspan="5" valign="top">
<font class="param">edit</font>
<font class="text">(elements)
<br>
<img src="../../../grafik/pixel.gif" width="1" height="6"><br>
This parameter is only valid for the data type "text".
If you set this parameter to "no" the Icon for the Text- Editor will not be displayed.
If you set this to 'yes', the Icon for the Text-Editor will be displayed.
If you set this to 'adv', the Icon for the Wysiwyg-Text-Editor will be displayed.
</font>
</td>
</tr>
<tr>
<td class="textgrey" valign="top">
Use:<br>
<font class="typeopt">optional</font>
</td>
<td class="textgrey" valign="top">
Type:<br>
<font class="typeopt">value param</font>
</td>
<td class="textgrey" valign="top" >
Quote:<br>
<font class="type">none
</td>
<td class="textgrey" valign="top">
Replacement:<br>
<font class="type">full
</td>
<td class="textgrey" valign="top">
Default Value:<br>
<font class="type">yes</font>
</td>
</tr>
<tr>
<td colspan="5" width="397" align="left" valign="top">
<img src="../../../grafik/trennung.gif" width="397" height="17"><br>
</td>
</tr>
<tr>
<td colspan="5" valign="top">
<font class="param">plusminus</font>
<font class="text">(multiple elements or areas)
<br>
<img src="../../../grafik/pixel.gif" width="1" height="6"><br>
This parameter is only valid for data base types which are multiple.
If you set this parameter to "no", the Icon which duplicates the input field will not be displayed.<br><br>
</font>
</td>
</tr>
<tr>
<td class="textgrey" valign="top">
Use:<br>
<font class="typeopt">optional</font>
</td>
<td class="textgrey" valign="top">
Type:<br>
<font class="typeopt">flag param</font>
</td>
<td class="textgrey" valign="top" >
Quote:<br>
<font class="type">none
</td>
<td class="textgrey" valign="top">
Replacement:<br>
<font class="type">full
</td>
<td class="textgrey" valign="top">
Default Value:<br>
<font class="type">yes</font>
</td>
</tr>
<tr>
<td colspan="5" width="397" align="left" valign="top">
<img src="../../../grafik/trennung.gif" width="397" height="17"><br>
</td>
</tr>
<tr>
<td colspan="5" valign="top">
<font class="param">show.plus</font>
<font class="text">(multiple elements or areas)
<br>
<img src="../../../grafik/pixel.gif" width="1" height="6"><br>
Shows "yes" or hides "no" the image for adding areas/elements
</font>
</td>
</tr>
<tr>
<td class="textgrey" valign="top">
Use:<br>
<font class="typeopt">optional</font>
</td>
<td class="textgrey" valign="top">
Type:<br>
<font class="typeopt">flag param</font>
</td>
<td class="textgrey" valign="top" >
Quote:<br>
<font class="type">none
</td>
<td class="textgrey" valign="top">
Replacement:<br>
<font class="type">full
</td>
<td class="textgrey" valign="top">
Default Value:<br>
<font class="type">yes</font>
</td>
</tr>
<tr>
<td colspan="5" width="397" align="left" valign="top">
<img src="../../../grafik/trennung.gif" width="397" height="17"><br>
</td>
</tr>
<tr>
<td colspan="5" valign="top">
<font class="param">show.minus</font>
<font class="text">(multiple elements or areas)
<br>
<img src="../../../grafik/pixel.gif" width="1" height="6"><br>
Shows "yes" or hides "no" the image for hiding areas/elements
</font>
</td>
</tr>
<tr>
<td class="textgrey" valign="top">
Use:<br>
<font class="typeopt">optional</font>
</td>
<td class="textgrey" valign="top">
Type:<br>
<font class="typeopt">flag param</font>
</td>
<td class="textgrey" valign="top" >
Quote:<br>
<font class="type">none
</td>
<td class="textgrey" valign="top">
Replacement:<br>
<font class="type">full
</td>
<td class="textgrey" valign="top">
Default Value:<br>
<font class="type">yes</font>
</td>
</tr>
</table>
<table width="397" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="5" width="397" align="left" valign="top">
<img src="../../../grafik/trennung.gif" width="397" height="17"><br>
</td>
</tr>
<tr>
<td colspan="5" valign="top">
<font class="param">pre.outer</font>
<font class="text">(elements, some functions)
<br>
<img src="../../../grafik/pixel.gif" width="1" height="6"><br>
If text should be displayed before an area, a field or output of a function only if the function returns output or the field contains a value, this text can be specified using the "pre.outer" parameter.
<br><br>
</font>
</td>
</tr>
<tr>
<td class="textgrey" valign="top">
Use:<br>
<font class="typeopt">optional</font>
</td>
<td class="textgrey" valign="top">
Type:<br>
<font class="typeopt">value param</font>
</td>
<td class="textgrey" valign="top" >
Quote:<br>
<font class="type">none
</td>
<td class="textgrey" valign="top">
Replacement:<br>
<font class="type">full
</td>
<td class="textgrey" valign="top">
Default Value:<br>
<font class="type"><br></font>
</td>
</tr>
<tr>
<td colspan="5" width="397" align="left" valign="top">
<img src="../../../grafik/trennung.gif" width="397" height="17"><br>
</td>
</tr>
<tr>
<td colspan="5" valign="top">
<font class="param">post.outer</font>
<font class="text">(elements, some functions)
<br>
<img src="../../../grafik/pixel.gif" width="1" height="6"><br>
If text should be displayed after an area, a field or output of a function only if the function returns output or the field contains a value, this text can be specified using the "post.outer" parameter.
<br><br>
</font>
</td>
</tr>
<tr>
<td class="textgrey" valign="top">
Use:<br>
<font class="typeopt">optional</font>
</td>
<td class="textgrey" valign="top">
Type:<br>
<font class="typeopt">value param</font>
</td>
<td class="textgrey" valign="top" >
Quote:<br>
<font class="type">none
</td>
<td class="textgrey" valign="top">
Replacement:<br>
<font class="type">full
</td>
<td class="textgrey" valign="top">
Default Value:<br>
<font class="type"><br></font>
</td>
</tr>
<tr>
<td colspan="5" width="397" align="left" valign="top">
<img src="../../../grafik/trennung.gif" width="397" height="17"><br>
</td>
</tr>
<tr>
<td colspan="5" valign="top">
<font class="param">pre.inner</font>
<font class="text">(elements, some functions)
<br>
<img src="../../../grafik/pixel.gif" width="1" height="6"><br>
See pre.outer, however the text specified in this parameter will be displayed before each field or area of a multiple field/area.<br><br></font>
</td>
</tr>
<tr>
<td class="textgrey" valign="top">
Use:<br>
<font class="typeopt">optional</font>
</td>
<td class="textgrey" valign="top">
Type:<br>
<font class="typeopt">value param</font>
</td>
<td class="textgrey" valign="top" >
Quote:<br>
<font class="type">none
</td>
<td class="textgrey" valign="top">
Replacement:<br>
<font class="type">full
</td>
<td class="textgrey" valign="top">
Default Value:<br>
<font class="type"><br></font>
</td>
</tr>
<tr>
<td colspan="5" width="397" align="left" valign="top">
<img src="../../../grafik/trennung.gif" width="397" height="17"><br>
</td>
</tr>
<tr>
<td colspan="5" valign="top">
<font class="param">post.outer</font>
<font class="text">(elements, some functions)
<br>
<img src="../../../grafik/pixel.gif" width="1" height="6"><br>
See post.outer, however the text specified in this parameter will be displayed after each field or area of a multiple field/area.<br><br></font>
</td>
</tr>
<tr>
<td class="textgrey" valign="top">
Use:<br>
<font class="typeopt">optional</font>
</td>
<td class="textgrey" valign="top">
Type:<br>
<font class="typeopt">value param</font>
</td>
<td class="textgrey" valign="top" >
Quote:<br>
<font class="type">none
</td>
<td class="textgrey" valign="top">
Replacement:<br>
<font class="type">full
</td>
<td class="textgrey" valign="top">
Default Value:<br>
<font class="type"><br></font>
</td>
</tr>
<tr>
<td colspan="5" width="397" align="left" valign="top">
<img src="../../../grafik/trennung.gif" width="397" height="17"><br>
</td>
</tr>
<tr>
<td colspan="5" valign="top">
<font class="param">
dependon.element<br>
dependon.operator<br>
dependon.context<br>
dependon.value<br>
</font>
<font class="text">
(elements, all functions)
<br><br>
<img src="../../../grafik/pixel.gif" width="1" height="6"><br>
Using dependon parameters, conditions can be checked before an npf function is called. These conditions have to be fulfilled to execute a function.<br><br>
Example:<br><br>
<font class="function">
dependon.element = "user_name"<br>
dependon.context = "USER"<br>
dependon.operator = "EQ"<br>
dependon.value = "user1"<br><br>
</font>
When using thee parameters, e.g. an npf function is only executed when the user name is "user1".<br><br>
</font>
</td>
</tr>
<tr>
<td class="textgrey" valign="top">
Use:<br>
<font class="typeopt">optional</font>
</td>
<td class="textgrey" valign="top">
Type:<br>
<font class="typeopt">value param</font>
</td>
<td class="textgrey" valign="top" >
Quote:<br>
<font class="type">none
</td>
<td class="textgrey" valign="top">
Replacement:<br>
<font class="type">full
</td>
<td class="textgrey" valign="top">
Default Value:<br>
<font class="type">yes</font>
</td>
</tr>
</table>
<br><br>
</body>
</html>