Previous Topic: Add Toolbar ImagesNext Topic: Launch an Application


Specify a User Name

You can pass a user name to an application, web browser, or script. Use the following expression to specify the name of the logged-in user:

<param>
   <expression>
      com.aprisma.spectrum.app.util.context.DefaultApplicationContext.
      getGlobalParameter(com.aprisma.spectrum.app.util.context.ApplicationContext.
      USER_PARAMETER_NAME) 
   </expression> 
</param> 

Example: Pass User Name to Browser

This example opens a browser and passes a user name to it.

<launch-browser>
   <url> http://acme.com?user={0}</url>
   <param>
   <expression>
      com.aprisma.spectrum.app.util.context.DefaultApplicationContext.
      getGlobalParameter(com.aprisma.spectrum.app.util.context.ApplicationContext.
      USER_PARAMETER_NAME)
   </expression> 
   </param>
</launch-browser>