Class ScriptHelper

java.lang.Object
com.saperion.ngc.util.ScriptHelper

@Deprecated public final class ScriptHelper extends 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 Details

    • getFieldByName

      @Deprecated public static IntelligentField getFieldByName(IntelligentFormView form, 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 List<com.saperion.intf.SaDocumentInfo> performQuery(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(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(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(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(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(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(String message)
      Deprecated.
      Moved to ScriptHelper. Will be removed in 8.1.
      Logs a debug-message in the logfile.
      Parameters:
      message - the message