Specifying a DataWindow object for the control – PB Docs 126

Specifying a DataWindow object for the control

To identify the DataWindow object you want to display in the
control, you specify values for two properties:

  • SourceFileName

  • DataWindowObject

You enter their values on the General page of the SAP DataWindow
Web Control Properties dialog box.

About SourceFileName

The value for SourceFileName is the name of the library that
contains the DataWindow object for the control. It can be a URL
or a file path. These examples illustrate some typical variations:

  • Absolute

  • Relative URLs:

  • Absolute file path (can be useful while developing

In the Web ActiveX property sheet, when you use the Browse
button to look for the library, you browse the file system, not
URLs. After the full path is inserted in the field, you probably
should edit it so that it is valid when your Web pages are deployed.

Changing SourceFileName during execution

You can change the value of SourceFileName in a script. If
you do, you also have to specify a value for DataWindowObject that
is valid in the new library. You must also call SetTransObject again
if you are using a separate transaction object.

About DataWindowObject

The value for DataWindowObject is the name of a DataWindow
object that is in the library specified in SourceFileName.

If the library is accessible in the development environment
(for example, it is part of the PowerBuilder workspace and you specify
a relative URL), then the property sheet displays a drop-down list
of the DataWindow objects contained in the library.

note.png Displaying Powersoft reports

To display a PSR file instead of a DataWindow object, specify
its URL as the value for the DataWindowObject and leave the SourceFileName

Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x