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

SetValueByDataWindow – PB Docs 2018 – PowerBuilder Library

SetValueByDataWindow – PB Docs 2018

SetValueByDataWindow

Description

Sets the value of the key using the data from a DataWindow control,
DataStore object, or DataWindowChild object.

Applies to

JSONPackage object

Syntax

Argument

Description

objectname

The name of the JSONPackage object

Key

A string specifying the key name.

dwcontrol

A reference to a DataWindow control, DataStore, or
DataWindowChild.

dwbuffer

A value of the dwBuffer enumerated datatype
identifying the DataWindow buffer from which you want to get the
data. For a list of valid values, see DWBuffer.

If not
specified, all of the DataWindow buffers will be obtained,
however, the data for DataWindowChild will not be obtained (even
if changedonly is false).

changedonly

A boolean specifying the changing
flag.

  • True — to get the changed rows only (and all rows of
    the Delete buffer).

  • False — to get all rows. The default is false.

primarydata

A boolean specifying whether to get the data from the
primary buffer.

  • True — to get

  • False — not to get

filterdata

A boolean specifying whether to get the data from the
filter buffer.

  • True — to get

  • False — not to get

deletedata

A boolean specifying whether to get the data from the
delete buffer.

  • True — to get

  • False — not to get

dwcdata

A boolean specifying whether to get the
DataWindowChild data.

  • True — to get. If it is to get the DataWindowChild
    data, data from all buffers will be set to a simple-format
    JSON, regardless of the value of the other arguments.

  • False — not to get

startrow (optional)

The number of the first detail row in the buffer that
you want to get. The default is 1. If it is 0 or negative, 1 is
used.

endrow (optional)

The number of the last detail row in the buffer that
you want to get. The default is the rest of the rows. If it is 0
or negative, it indicates the rest of rows.

startcolumn (optional)

The number of the first column in the buffer that you
want to get. The default is 1. If it is 0 or negative, 1 is
used.

endcolumn (optional)

The number of the last column in the buffer that you
want to get. The default is the rest of the columns. If it is 0 or
negative, it indicates the rest of columns.

format

A boolean specifying the JSON
format.

  • True indicates the standard format

  • False (default) indicates the simple format.

See JSON formats for
details about the simple and standard format.

Return value

Long. Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, the method returns null.

Example 1

This example exports data from the DataWindow to the JSONPackage
object.

Example 2

This example exports the modified data from the DataWindow to the
JSONPackage object.

Example 3

This example exports the data from the specified DataWindow row and
column to the JSONPackage object.

See also

GetValueToDataWindow

SetValueBlob

SetValueBoolean

SetValueDate

SetValueDateTime

SetValueNumber

SetValueString

SetValueTime


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