Data Manipulation - ideaportriga/nexus-bridge GitHub Wiki
Some of available methods that could be used to manipulate with data:
-
newRecord(cb)
returns the Promise. The optional input parameter is a callback function. Calls theCreateRecord
method. -
newRecordSync()
. Synchronous method that calls theCreateRecord
method. -
writeRecord(cb, cberr)
returns the Promise. There are two optional input parameters:-
cb - function to be executed if saving was successful.
-
cberr - function to be executed if saving was not successful.
-
-
writeRecordSync()
-
undoRecordSync()
-
deleteRecordSync(skipConfirmDialog)
. Optional input parameter allows to skip the Siebel Delete Record confirmation dialog. -
setControlValue(name, value)
method that updates the "shadowed" control to trigger updating the business component. When the control is immediate post, it sends the request to the server, and the PM state is updated. -
invokeMethod(method, {async, cb})
- if async is false, the method returns true if the method was successfully executed. If async is true, it returns the promise. -
savePref(name, value)
- saves the parameter into the user preference file (spf-file). The stored value could be retrieved usingreadPref(name)
. The stored value is bounded to the current view and the current applet. -
sort(controlName, isAscending)
- makes sense only for list applets. The control (list column) should be sortable.