public final class ScriptHelper extends Object
Modifier and Type | Method and Description |
---|---|
static com.saperion.connector.SaClassicConnector |
getClassicConnector()
Provides an instance of the
SaClassicConnector . |
static User |
getCurrentUser()
Provides the current logged in user object.
|
static IntelligentField |
getFieldByName(IntelligentFormView form,
String name)
Returns the field with the specified name or null, if no field was found.
|
static void |
logDebug(String message)
Logs a debug-message in the logfile.
|
static void |
logError(String message)
Logs an error-message in the logfile.
|
static void |
logInfo(String message)
Logs an info-message in the logfile.
|
static void |
logWarning(String message)
Logs a warning-message in the logfile.
|
static List<com.saperion.intf.SaDocumentInfo> |
performQuery(String query)
Performs a query against the classic Connector.
|
static void |
postQueryEvent(IntelligentFormView form)
Posts a query event (onButton-event of type ON_QUERY) to the given form.
|
static void |
showErrorMessage(String error)
Shows an error message box with the given message to the user.
|
static void |
showInfoMessage(String message)
Shows an info message box with the given message to the user.
|
public static IntelligentField getFieldByName(IntelligentFormView form, String name)
form
- parent formname
- field namepublic static void postQueryEvent(IntelligentFormView form)
form
- The IntelligentFormView the event should be post to.public static User getCurrentUser()
public static com.saperion.connector.SaClassicConnector getClassicConnector()
SaClassicConnector
.SaClassicConnector
.public static List<com.saperion.intf.SaDocumentInfo> performQuery(String query)
query
- public static void showInfoMessage(String message)
message
- The message to show.public static void showErrorMessage(String error)
error
- The message to show.public static void logError(String message)
message
- the messagepublic static void logWarning(String message)
message
- the messagepublic static void logInfo(String message)
message
- the messagepublic static void logDebug(String message)
message
- the messageCopyright © 2021 Hyland Software Germany GmbH. All rights reserved.