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

SetSQLPreview – PB Docs 2017 – PowerBuilder Library

SetSQLPreview – PB Docs 2017

SetSQLPreview

method (DataWindows)

Description

Specifies the SQL statement for a DataWindow control or DataStore
that PowerBuilder is about to send to the database.

Applies to

DataWindow type

Method applies to

PowerBuilder

DataWindow control, DataWindowChild object, DataStore
object

Syntax

PowerBuilder

Argument

Description

dwcontrol

A reference to a DataWindow control, DataStore, or
child DataWindow

sqlsyntax

A string whose value is valid SQL syntax for the
SQL statement that will be submitted to the database
server

Return value

Returns 1 if it succeeds and 0 if an error occurs. If any argument’s
value is null, in PowerBuilder and JavaScript the method returns
null.

Usage

Use SetSQLPreview to modify syntax before you update the database
with changes in the DataWindow object.

To obtain the current SQL statement in the SQLPreview event, look at
the sqlsyntax argument.

When to call SetSQLPreview

Call this method only in the script for the SQLPreview
event.

Examples

This statement sets the current SQL string for the DataWindow
dw_1:

See also

GetSQLPreview

GetUpdateStatus


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