Legacy platform

Access global data

You can access application and user-related data in custom behavior logic.

Use the following methods to retrieve the application-related data present in the sc.plat.dojo.info.ApplicationInfo utility:
  • getApplicationContext - this method returns the context-root for the current web application.
  • getLoginPage - this method returns the login page URL of the application.
  • getSCScreenContainerInstance - this method returns an instance of the application container widget that provides tab capability in the application.
Use the following methods to retrieve data for logged in user present in the sc.plat.dojo.Userprefs utility:
  • getCurrency - this method returns the currency code.
  • getLocaleCode - this method returns the locale code.
  • getUserOrganization - this method returns the organization object.
  • getUserId - this method returns the user identifier.
  • getUserName - this method returns the user name.