Creates a new object for a Web DataWindow control. This object lets you add a Web DataWindow object (that you create in DataWindow Designer, 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({objectName}, {ServerSideStateManagement}, {jaguarConnection}, {sourceLocation}, {dbConnection}, {lPageSize})
PSDataWindowClass(pageContext, request, objectName, ServerSideStateManagement, jaguarConnection, sourceLocation, dbConnection, {lPageSize})
Optional arguments in constructor for ASP targets If you use a String value for any of the last three arguments in the constructor for ASP targets, the optional arguments that can precede the value you enter are no longer optional and must be included in the constructor.
PSDataWindowClass property |
Datatype |
Description |
---|---|---|
Component |
Object |
Represents a reference to a server component for a Web DataWindow control. A server component is either an ActiveX or EAServer component that interacts with a page server that supports ActiveX or Java. 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 htmlDwObj for an ASP target. The Web DataWindow object uses a client-side control named htmlDw1, and a previously defined EAServer connection object named jagParm:
Var htmlDwObj = new PSDataWindowClass(htmlDw1, false, jagParm)
For JSP targets, you must assign a variable as an object of the PSDataWindowClass type before you can instantiate it, and you must use semicolons to terminate each line of code:
PSJaguarConnection jagConn = new PSJaguarConnection("my-desktop:9000", "jagadmin", "", "DataWindow/HTMLGenerator90", false);
PSDataWindowSourceClass dwSource = new PSDataWindowSourceClass("d:\\test\\appl.pbl", "dw_dept");
PSConnectionParmsClass dbConn = new PSConnectionParmsClass("ConnectString='DSN=EAS Demo DB V4;UID=dba;PWD=sql',ConnectOption='SQL_DRIVER_CONNECT,SQL_DRIVER_NOPROMPT'" );
PSDataWindowClass webDW = new PSDataWindowClass (pageContext, request, "webDW", false, jagConn, dwSource, dbConn, 10);