Providing Context to a Web Page
Talisma Components can provide context to Web Pages. When context is passed from a Talisma Component to a Web Page:
• Talisma will pass the Object ID, Object type, Server name, Database name, and Login Details. You can create an ASP that will interact with the Talisma API, and use the information Talisma passes, to retrieve data from the Web Page and display it in a Workspace.
• The following details are appended to the URL of a Web Page Component that is configured in a Workspace: Talisma Server Name, Talisma Main Database Name, Login Name, logged on User's name, &WndType, &ObjType, &SelectedObjectIDs, &RLTabID, and &RLObjType. These details can be displayed in the Web Page on your corporate Web site, and can be used to extract information from Talisma Main Database and pass it on to the Web Page or ASP.
Description of the Variables Passed
The following table provides a description of the variables passed:
|
Variable |
Description |
|
Server |
Name of Talisma Server to which the User wants to connect. |
|
Database |
Name of Talisma Main Database to which the User wants to connect. |
|
Login |
Login name of the User currently logged on to Talisma. |
|
CurrentUser |
Login name of the User currently logged on to Talisma. The Login and CurrentUser variables will return the same values - the User Name specified while creating the User. |
|
WndType |
Not required (For more information, see Talisma SDK Help). |
|
ObjType |
The Object type. |
|
SelectedObjectIDs |
The Object ID. |
|
RLTabID |
Not required (For more information, see Talisma SDK Help). |
|
RLObjType |
Not required (For more information, see Talisma SDK Help). |
|
Example Create a Workspace with a Web Page as a Component. Specify the URL as: http://<Server/Machine name>/<Virtual Directory Name>/<file name>.asp For example: • An IIS Server is configured on the computer “blizzard” with a virtual directory “WebPages”. • An ASP file test.asp is located in the physical path of this virtual directory. • The User Name is “Alex”. With the above specifications, IIS will receive the following URL: http://blizzard/MyPages/test.asp?Server=talisma199&Database=Genesis021106&Login=Alex&CurrentUser=Alex&WndType=32768&ObjType=2&SelectedObjectIDs=1&RLTabID=-1&RLObjType=-1 |
|
Note • Ensure that a Web Page is configured to receive context from either within the Workspace or from other Workspaces. • If the Web Page you are specifying already uses querystring variables to pass values, ensure that there is no mismatch in the variable names. • The querystring variables are case-sensitive. Hence, for the above example, ◦ Request.QueryString(“login”) may not return a value, whereas, ◦ Request.QueryString(“Login”) returns “Alex. • To pass these values to the ASP file, you can use Web SDK. |