Package com.saperion.ngc.util
Class ScriptHelper
java.lang.Object
com.saperion.ngc.util.ScriptHelper
Deprecated.
Provides static helper methods to be used in server-side scripts in masks.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.saperion.connector.SaClassicConnectorDeprecated.Moved toScriptHelper.static UserDeprecated.Moved toScriptHelper.static IntelligentFieldgetFieldByName(IntelligentFormView form, String name) Deprecated.Moved toScriptHelper.static voidDeprecated.Moved toScriptHelper.static voidDeprecated.Moved toScriptHelper.static voidDeprecated.Moved toScriptHelper.static voidlogWarning(String message) Deprecated.Moved toScriptHelper.static List<com.saperion.intf.SaDocumentInfo>performQuery(String query) Deprecated.Moved toScriptHelper.static voidDeprecated.Moved toScriptHelper.static voidshowErrorMessage(String error) Deprecated.Moved toScriptHelper.static voidshowInfoMessage(String message) Deprecated.Moved toScriptHelper.
-
Method Details
-
getFieldByName
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Returns the field with the specified name or null, if no field was found.- Parameters:
form- parent formname- field name- Returns:
- field or null if not found
-
postQueryEvent
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Posts a query event (onButton-event of type ON_QUERY) to the given form.- Parameters:
form- The IntelligentFormView the event should be post to.
-
getCurrentUser
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Provides the current logged in user object.- Returns:
-
getClassicConnector
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Provides an instance of theSaClassicConnector.- Returns:
- an instance of the
SaClassicConnector.
-
performQuery
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Performs a query against the classic Connector.- Parameters:
query-- Returns:
-
showInfoMessage
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Shows an info message box with the given message to the user.- Parameters:
message- The message to show.
-
showErrorMessage
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Shows an error message box with the given message to the user.- Parameters:
error- The message to show.
-
logError
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Logs an error-message in the logfile.- Parameters:
message- the message
-
logWarning
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Logs a warning-message in the logfile.- Parameters:
message- the message
-
logInfo
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Logs an info-message in the logfile.- Parameters:
message- the message
-
logDebug
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Logs a debug-message in the logfile.- Parameters:
message- the message
-
ScriptHelper. Will be removed in 8.1.