SetHTMLObjectName method (DataWindows)
Description
Specifies a name for the Web DataWindow client control.
Controls
|
DataWindow type |
Method applies to |
|---|---|
|
Web |
Server component |
Syntax
[Web DataWindow server component]
|
1 |
string <span>dwcomponent</span>.<span>SetHTMLObjectName</span> ( string <span>objectname</span> ) |
|
Argument |
Description |
|---|---|
|
dwcomponent |
A reference to a Web DataWindow server |
|
objectname |
A string specifying a name used in generated Sets the value of the HTMLGen.ObjectName property for the DataWindow |
Return Values
Returns an empty string if successful and the syntax error
message from the Modify method if it fails.
Usage
You must specify a unique object name when there will be more
than one Web DataWindow on a Web page so names will not conflict.
This method calls the Modify method of
the server component’s DataStore to set the property.
For information about using the Web DataWindow, see the DataWindow Programmers
Guide.
Examples
This example specifies a name to be used in generated
HTML for the server component called webDW:
|
1 |
webDW.<span>SetHTMLObjectName</span> ("dwMine"); |