Creates a new object for a Web DataWindow control. This object lets you add a Web DataWindow object (that you create in PowerBuilder or InfoMaker) to your page.
Adding a Sybase Web DataWindow DTC to an HTML page creates an object of type PSDataWindowClass. If the page is 4GL-enabled, an object of type PSWebDataWindowClass is created instead.
PSDataWindowClass(pageContext, request, objectName, ServerSideStateManagement, jaguarConnection, sourceLocation, dbConnection, {lPageSize})
PSDataWindowClass property |
Datatype |
Description |
---|---|---|
Component |
Object |
Represents a reference to a server component for a Web DataWindow control. For information about the server component, see the DataWindows Programmer's Guide. |
RetrievalArgs [ ] |
String |
An array of arguments used to retrieve data from the database. You can specify these retrieval arguments or use the FillRetrievalArgs method to do so. |
PSDataWindowClass method |
Description |
---|---|
Fills in the array that stores the retrieval arguments. |
|
Generates the DataWindow as HTML. |
|
Generates the DataWindow as XHTML. |
|
Generates the DataWindow as XML. |
|
Establishes a link for a column that is passed to the Web DataWindow control. |
|
Identifies the type of functionality included on your HTML page. (As you include more functionality on your page, the size of the control increases.) |
The following example shows how to define a new Web DataWindow object named webDW. The Web DataWindow object uses a client-side control named webDW, and a previously defined EAServer connection object named jagConn:
PSJaguarConnection jagConn = new PSJaguarConnection("my-desktop:9000", "jagadmin", "", "DataWindow/HTMLGenerator110", false);
PSDataWindowSourceClass dwSource = new PSDataWindowSourceClass("d:\\test\\appl.pbl", "dw_dept");
PSConnectionParmsClass dbConn = new PSConnectionParmsClass("ConnectString='DSN=EAS Demo DB V11;UID=dba;PWD=sql',ConnectOption='SQL_DRIVER_CONNECT,SQL_DRIVER_NOPROMPT'" );
PSDataWindowClass webDW = new PSDataWindowClass (pageContext, request, "webDW", false, jagConn, dwSource, dbConn, 10);