Skip navigation
 

Environment Variables
Added by George Kroner, last edited by George Kroner on 18 Dec 2007 12:07 AM
(None)

Using WebCT Environment Variables in Proxy Tools

A little known feature is the ability for designers to use certain "environment variables" when they configure proxy tools. Here's a rundown of the available variables:

$USER$.name - the current user's login name
$USER$.id - the current user's personID (same as RPT_LEARNING_CONTEXT.PERSON_ID and SubjectVO?.getPersonID)
$LC$.name - the current learning context name
$LC$.id - the current learning context ID (LCID)
$LC$.description - the long description of the current learning context
$INST$.id - the learning context ID of the institution
$INST$.name - the institution name

These variables can be used in any proxy tool field except the title and will be resolved whenever a user clicks the proxy tool link.

For example, assume that you have a proxy tool that has a URL field. If one of the parameters is the user name, the designer could simply append the user name variable to the URL like so:
http://myurl?username=$USER$.name

A word of caution: if a designer uses a variable in a proxy tool field and edits the proxy tool at a later time, the variable will be replaced with the actual current value (determined by the designer's environment). If you want that value to be dynamic (determined by the environment of the user clicking the proxy tool), be sure to change the value back to the variable before saving the proxy tool changes.

This article originally authored by Paul Monk on the WebCT DevNet

Adaptavist Theme Builder Powered by Atlassian Confluence

By accessing the Knowledge Base, you agree to the following: Blackboard makes no representations or warranties as to the accuracy of any information in the Knowledge Base. Blackboard is not responsible in any way for information provided to the Knowledge Base by third parties. Information in the Knowledge Base is not documentation for any Blackboard product. Nothing in the Knowledge Base shall be deemed to modify your license in any way to any Blackboard product. Blackboard reserves the right to use your name and the name of your institution in reference to any information submitted by you to the Knowledge Base. Blackboard may modify, distribute, republish in any format, delete, incorporate or use in any way the information that you contribute to the Knowledge Base.