Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Starting the pipeline – PB Docs 2019 – PowerBuilder Library

Starting the pipeline – PB Docs 2019

Starting the
pipeline

With the setup chores taken care of, you can now start the execution
of your pipeline.

To start pipeline execution:

  1. Code the Start function in an appropriate script. In this
    function, you specify:

    • The Transaction object for the source database

    • The Transaction object for the destination database

    • The DataWindow control in which you want the Start function
      to display any error rows

      The Start function automatically associates the PowerBuilder
      pipeline-error DataWindow object with your DataWindow control when
      needed.

    • Values for retrieval arguments you have defined in the
      Pipeline object

      If you omit these values, the Start function prompts the
      user for them automatically at runtime.

  2. Test the result of the Start function.

For more information on coding the Start function, see the section called “Start” in PowerScript Reference.

Example

The following sample code starts pipeline execution in the order
entry application.

Calling the Start function

When users want to start their selected pipeline, they click the
cb_write CommandButton in the w_sales_extract window:

pipstar.gif

This executes the Clicked event of cb_write, which contains the
Start function:

Notice that the user did not supply a value for the pipeline’s
retrieval argument (quarter). As a consequence, the Start function prompts
the user for it:

piprarg.gif

Testing the result

The next few lines of code in the Clicked event of cb_write check
the Start function’s return value. This lets the application know whether
it succeeded or not (and if not, what went wrong):


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x