GetCommandString – PB Docs 2018

GetCommandString

PowerScript function

Description

Returns the command string sent by dbmlsync to the synchronization
server.

Applies to

MLSync controls

Syntax

Argument

Description

syncObject

The name of the MLSync object that starts a
synchronization for which you want to get the actual
dbmlsync command submitted to the synchronization
server.

Return value

String.

Returns the command string that is set for submission to the
synchronization server. Returns -1 if required properties are missing.
(Datasource, Publication, and MLUser, and MLServerVersion are required
properties.) When this occurs, a descriptive error is written to the
ErrorText property of the MLSync object.

Usage

To minimize confusion to an end user, you might want to hide certain
command line arguments in a customized synchronization options window for
your MobiLink application. In this case you can call the
GetCommandString function to return the command line generated by the
options window, then add on values for the options that you hide from the
user.

Examples

For MLSync objects, you can allow a user to edit the command line
arguments for a synchronization call as follows:

See also

GetSyncRegistryProperties

SetParm

SetSyncRegistryProperties

Synchronize


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