DW Web Control in PowerSite
\The Sandbox \PB History & Future \New In PB7 \DW ActiveX \Web DW in PowerSite
WebDW for
ActiveX
HTML for
Controls
Web DW in
PowerSite
DW Transaction
Object Control
DB Connections
Web DW
Coding
Deploying
Web DW

The PowerBuilder installation program installs the DataWindow Web control and the Transaction Object control in the system registry. You can find them in the System Tree on the Components tab.

These procedures provide a summary of the ways PowerSite helps you author web pages with ActiveX controls.

  • To find the controls in the System Tree:
  1. Select the Components tab.
  2. Expand ActiveX Controls.
  3. Expand Controls that are safely scriptable.Look for the controls with these names:
    • Sybase DataWindow Web Control
    • Sybase DataWindow Transaction Object Control

    The controls have Properties, Methods, or Events branches, which you can expand to view those lists.

  • To add the controls to a web page:
  • Drag the control name from the System Tree to the web page
    or
    Select Insert>Component>ActiveX from the menu bar and select the control you want.
  • To set basic properties for the control:
  1. In the editor's Page view, right-click the control and select OBJECT1 Properties from the popup menu (when you specify a name for the control, the menu item uses that name instead of OBJECT1).
    or
    In Source view
    , right-click the Object tag and select Properties from the popup menu.
  2. In the property dialog, specify the values you want. Some of the more common attributes to set include:
  3. Some of the attributes you'll want to set include:

    • Network Code Base—its value is the URL and version number of the CAB file that the browser downloads to install the ActiveX control
    • For more about the CODEBASE attribute, see "HTML for inserting the controls on a web page".
    • Width and Height—also set by dragging the control's resizing handles in Page view
    • Name for forms and scripting
  • To set custom properties for the controls:
  • In the editor's Page view, right-click the control and select Sybase DataWindow Web Control Properties (or Transaction Object Properties) from the popup menu.
  • For information on specifying the DataWindow object on the General tab page, see "Specifying a DataWindow object for the control".

    For information about specifying connection information on the Transaction and Trans User tab pages, see "Making database connections".

    The custom properties dialog is not available in Source view.

Where to set connection properties You only need to set connection properties once. If you are using a separate Transaction Object control, you don't need to set properties on the Transaction and Trans User pages for the DataWindow Web control. The same property pages are available for the Transaction Object control.

  • To use the System Tree when writing code for the controls:
  1. On the Page tab of the System Tree, expand window.
  2. Under window, expand Properties and find the name of your control as one of the properties.
  3. For the control, expand Properties, Events, or Methods.
  4. Find the item you want to insert in the script editor and drag it to its position in the code. PowerSite inserts a fully qualified expression, such as:
    • window.dw1.Describe(propertylist)
      window.dw1.dbParm

    Substitute your own variables and expressions for method parameters.

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com