AuthenticateParms property for PowerScript controls
Controls
MLSync
and SyncParm objects
Description
Specifies a comma-separated list of authentication parameters
for the remote database connection to the MobiLink synchronization
server. If you set the AuthenticateParms property on an MLSync object,
or if you call SetParm after setting the AuthenticateParms
property on a SyncParm object, PowerBuilder inserts a -ap option
with the AuthenticateParms value in the MLSync object’s subsequent Synchronize call.
Usage
At design time, you can enter AuthenticateParms values on
the General tab of the Properties view for an MLSync object. At
runtime, application users can enter AuthenticateParms values on
the Subscriptions tab page of the default synchronization options
window generated by the MobiLink wizard.
In scripts
You can modify AuthenticateParms values in PowerScript directly
on the synchronization object or indirectly, by setting it on the
SyncParms object before calling SetParm.
1 |
SyncParms Parms |
1 |
MLSync mySync |
1 |
long rc |
1 |
mySync = CREATE MLSync |
1 |
Parms.MLUser = '50' |
1 |
Parms.MLPass = 'xyz123' |
1 |
Parms.AuthenticateParams = 'param1, param2, param3' |
1 |
mySync.SetParm(Parms) |
1 |
rc = mySync.Synchronize() |