Creating a custom server component in EAServer

You can install and configure a custom Web DataWindow server component in EAServer Manager. In this procedure, you create a custom version of the EAServer server component with custom properties preset in EAServer Manager.

NoteUsing the Web DataWindow Container Project wizard The procedure in this section describes how to create a custom component in EAServer Manager that uses the generic DataWindow::HTMLGenerator125 interface. You can also create a custom component with a Web DataWindow Container project. For more information, see “The Web DataWindow Container project wizard”.

The procedures for creating a custom component depend on the version of EAServer you are using.

StepsTo create a Web DataWindow custom component in EAServer 5.x:

  1. In the left pane of EAServer Manager, under the server name, right-click Packages and select New Package from the pop-up menu.

  2. In the New Package dialog box, type a package name (you cannot change it later) and click Create A New Package.

    For example, use EmpListPkg to identify a package for an application called EmpList.

  3. On the General tab of the Package Properties dialog box, enter a description of the package and click OK.

    For example, enter DataWindow Components for EmpList app to describe EmpListPkg in terms of the application that you are customizing it for.

  4. In the left pane of EAServer Manager, under the server name, right-click the new package and choose Install Component from the pop-up menu.

  5. In the wizard, choose the Define New Component radio button and click Next.

  6. Specify the name of your custom component (you cannot change it later) and click Finish.

    For example, use EmpListDW to identify a component that uses the d_emplist DataWindow object.

  7. In the Component Properties dialog on the General tab, specify:

    Module and interface

    DataWindow::HTMLGenerator125

    Component Type

    PowerBuilder NVO

    PowerBuilder Class Name

    nv_remote_datawindow

    PowerBuilder Library List

    pbdwr125.pbd

    PowerBuilder Application

    remote_datawindow_appl

  8. On the All Properties tab, add the properties for which you want preset values.

StepsTo create a Web DataWindow custom component in EAServer 6.x:

  1. In the left pane of Sybase Management Console, right-click CORBA Packages under EAServer Manager>Local Server and select Add from the pop-up menu.

  2. On the second page of the New Package wizard, type a package name (you cannot change it later) and click Finish.

    The package name displays under the CORBA Packages node in the left pane of the console.

  3. Right-click Components under the new package name in the left pane of the console, and select Add from the pop-up menu.

  4. Specify the name of your custom component on the second page of the wizard (you cannot change it later) and click Finish.

  5. On the General tab of the component properties sheet that displays in the right pane of the console, specify the following:

    Component Type

    PowerBuilder NVO

    PowerBuilder NVO Class

    nv_remote_datawindow

    PowerBuilder Library List

    pbdwr125.pbd

    PowerBuilder Version

    12.5

    IDL Remote Interface

    DataWindow::HTMLGenerator125

  6. On the Advanced tab of the component property sheet, add the properties for which you want preset values.