SetColumnLink (obsolete)
Description
Specifies information used for constructing hyperlinks for data in a
column in generated HTML.
Obsolete method
SetColumnLink is obsolete and should not be used, because the Web
DataWindow technology is obsolete.
Applies to
|
DataWindow type |
Method applies to |
|---|---|
|
Web |
Server component |
Syntax
Web DataWindow server
component
|
1 |
string dwcomponent.SetColumnLink ( string columnname, string link, string linkargs, string linktarget ) |
|
Argument |
Description |
||
|---|---|---|---|
|
dwcomponent |
A reference to a Web DataWindow server |
||
|
columnname |
The name of a column in the DataWindow object |
||
|
link |
A URL that is the target of a link (HTML A element) The URL Sets the value of |
||
|
linkargs |
A string in the form:
Argname Exp is a DataWindow expression that is The evaluated linkargs string For information on Sets |
||
|
linktarget |
The name of a target frame or window for the You can use linktarget to implement a If linktarget is Sets the value of the HTML.LinkTarget |
Return value
Returns an empty string if successful and the syntax error message
from the Modify method if it fails.
Usage
This method calls the Modify method of the server component’s
DataStore to set the property.
Examples
This JavaScript example for a server-side script sets up hyperlinks
for data in the empid column. The data links to a detailed employee report
in an HTML template called empdetail.stm.
The employee id is passed as a page parameter so the empdetail
scripts can use it as a retrieval argument. The column name is specified
as the expression. Empid is a numeric column so its value has to be
converted to a string for the page parameter value. When the server
component generates the HTML, it evaluates empid for each row and includes
the data value as the link argument:
|
1 |
dwMine.SetColumnLink ("empid", "empdetail.stm", "pagearg_empid='String(empid)'", ""); |
See also