Class ScriptHelper


  • @Deprecated
    public final class ScriptHelper
    extends java.lang.Object
    Deprecated.
    Moved to ScriptHelper. Will be removed in 8.1.
    Provides static helper methods to be used in server-side scripts in masks.
    • Method Detail

      • getFieldByName

        @Deprecated
        public static IntelligentField getFieldByName​(IntelligentFormView form,
                                                      java.lang.String name)
        Deprecated.
        Moved to ScriptHelper. Will be removed in 8.1.
        Returns the field with the specified name or null, if no field was found.
        Parameters:
        form - parent form
        name - field name
        Returns:
        field or null if not found
      • postQueryEvent

        @Deprecated
        public static void postQueryEvent​(IntelligentFormView form)
        Deprecated.
        Moved to ScriptHelper. 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 to ScriptHelper. 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 to ScriptHelper. Will be removed in 8.1.
        Provides an instance of the SaClassicConnector.
        Returns:
        an instance of the SaClassicConnector.
      • performQuery

        @Deprecated
        public static java.util.List<com.saperion.intf.SaDocumentInfo> performQuery​(java.lang.String query)
        Deprecated.
        Moved to ScriptHelper. 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 to ScriptHelper. 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 to ScriptHelper. 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 to ScriptHelper. 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 to ScriptHelper. 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 to ScriptHelper. 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 to ScriptHelper. Will be removed in 8.1.
        Logs a debug-message in the logfile.
        Parameters:
        message - the message