AIX | HP-UX | Linux | OS/2 | OS/390 | OS/400 | PTX | SUN | Win NT |
X | X | X | X | X | X | X | X | X |
Purpose
Generates an HTML text area from a Net.Data table.
Format
@DTW_TB_TEXTAREA(table, name, numrows, numcols, valuecol, rows)
@DTW_TB_TEXTAREA(table, name, numrows, numcols, valuecol)
@DTW_TB_TEXTAREA(table, name, numrows, numcols)
@DTW_TB_TEXTAREA(table, name, numrows)
@DTW_TB_TEXTAREA(table, name)
Parameters
Table 166. DTW_TB_TEXTAREA Parameters
Data Type | Parameter | Use | Description |
---|---|---|---|
table | table | IN | A macro table variable to show as a TEXTAREA tag. |
string | name | IN | The name of the text area. |
integer | numrows | IN | The height of the text area, specified in rows. The default is the number of rows in table. |
integer | numcols | IN | The width of the text area, specified in columns. The default is the length of the longest row in table. |
integer | valuecol | IN | The column number in table whose values are shown in the text area. The default is the first column. |
string | rows | IN | A list of rows in table used to generate the TEXTAREA tag. The default is to use all rows. |
Return Codes
Table 167. DTW_TB_TEXTAREA Return Codes
Return Code | Explanation |
---|---|
-1001 | The server could not process a Net.Data request to allocate memory. |
1001 | An input parameter contained a NULL value. |
1003 | An incorrect number of parameters were passed on a function call. |
1004 | A parameter passed on a function call, required to be a Net.Data macro table variable, was of a different variable type. |
1005 | A parameter passed on a function call, required to be a string variable, was of a different variable type. |
1007 | A parameter contains a value which is not valid. |
1008 | A parameter is outside of table bounds. |
Examples
Example 1: Generates HTML TEXTAREA tags and specifies which rows to include
@DTW_TB_TEXTAREA(Mytable,"textarea5","3","70","4","1 3 4")
Results:
<textarea name="textarea5" rows="3" cols="70"> link1text link3text link4text </textarea>