SetDWObject (obsolete)
Description
Specifies the DataWindow library and object that the Web DataWindow
server component will use for generating HTML.
Obsolete method
SetDWObject 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 2 |
int dwcomponent.SetDWObject ( string sourcefile, string dwobjectname ) int dwcomponent.SetDWObjectEx ( string dwobjectname ) |
|
Argument |
Description |
|---|---|
|
dwcomponent |
A reference to a Web DataWindow server |
|
sourcefile |
The name of a PowerBuilder library (PBL) or dynamic or A source definition file or A Powersoft report (PSR) The file must be located in the file system of |
|
dwobjectname |
When sourcefile is a PBL or PBD, the name of a When sourcefile is a |
Return value
Returns 1 if it succeeds and -1 if an error occurs.
Examples
This example identifies the library and DataWindow object for the
server component called dwGen:
|
1 |
int retVal = dwGen.SetDWObject("htgenex.pbl", "d_tabular_dept") |
See also