Package com.saperion.ngc.util
Class ScriptHelper
- java.lang.Object
-
- com.saperion.ngc.util.ScriptHelper
-
@Deprecated public final class ScriptHelper extends java.lang.ObjectDeprecated.Moved toScriptHelper. Will be removed in 8.1.Provides static helper methods to be used in server-side scripts in masks.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static com.saperion.connector.SaClassicConnectorgetClassicConnector()Deprecated.Moved toScriptHelper.static UsergetCurrentUser()Deprecated.Moved toScriptHelper.static IntelligentFieldgetFieldByName(IntelligentFormView form, java.lang.String name)Deprecated.Moved toScriptHelper.static voidlogDebug(java.lang.String message)Deprecated.Moved toScriptHelper.static voidlogError(java.lang.String message)Deprecated.Moved toScriptHelper.static voidlogInfo(java.lang.String message)Deprecated.Moved toScriptHelper.static voidlogWarning(java.lang.String message)Deprecated.Moved toScriptHelper.static java.util.List<com.saperion.intf.SaDocumentInfo>performQuery(java.lang.String query)Deprecated.Moved toScriptHelper.static voidpostQueryEvent(IntelligentFormView form)Deprecated.Moved toScriptHelper.static voidshowErrorMessage(java.lang.String error)Deprecated.Moved toScriptHelper.static voidshowInfoMessage(java.lang.String message)Deprecated.Moved toScriptHelper.
-
-
-
Method Detail
-
getFieldByName
@Deprecated public static IntelligentField getFieldByName(IntelligentFormView form, java.lang.String name)
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 public static void postQueryEvent(IntelligentFormView form)
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 public static User getCurrentUser()
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Provides the current logged in user object.- Returns:
-
getClassicConnector
@Deprecated public static com.saperion.connector.SaClassicConnector getClassicConnector()
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Provides an instance of theSaClassicConnector.- Returns:
- an instance of the
SaClassicConnector.
-
performQuery
@Deprecated public static java.util.List<com.saperion.intf.SaDocumentInfo> performQuery(java.lang.String query)
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Performs a query against the classic Connector.- Parameters:
query-- Returns:
-
showInfoMessage
@Deprecated public static void showInfoMessage(java.lang.String message)
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 public static void showErrorMessage(java.lang.String error)
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 public static void logError(java.lang.String message)
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Logs an error-message in the logfile.- Parameters:
message- the message
-
logWarning
@Deprecated public static void logWarning(java.lang.String message)
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Logs a warning-message in the logfile.- Parameters:
message- the message
-
logInfo
@Deprecated public static void logInfo(java.lang.String message)
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Logs an info-message in the logfile.- Parameters:
message- the message
-
logDebug
@Deprecated public static void logDebug(java.lang.String message)
Deprecated.Moved toScriptHelper. Will be removed in 8.1.Logs a debug-message in the logfile.- Parameters:
message- the message
-
-