Error processing SSI file
LEADTOOLS Medical (Leadtools.Ccow assembly)

JoinCommonContext Method

Show in webframe
Example 
Name of the application. This string must be unique relative to the other applications that have already joined the common context session.
The context participant interface provided by the application.
If set to true participate in context change surveys. If false the application will only be informed when a context change has been accepted.
If set to true wait for the current context change transaction to complete.
Enables an application to join a common context session.
Syntax
 function Leadtools.Ccow.ContextManager.joinCommonContext( 
   applicationName ,
   contextParticipant ,
   survey ,
   wait 
)

Parameters

ParameterTypeDescription
applicationNamestringName of the application. This string must be unique relative to the other applications that have already joined the common context session.
contextParticipantstringThe context participant interface provided by the application.
surveyboolIf set to true participate in context change surveys. If false the application will only be informed when a context change has been accepted.
waitboolIf set to true wait for the current context change transaction to complete.

Return Value

TypeDescription
int A participant coupon that the application uses to denote itself to the context manager.
Example
function joinCommonContextTest(ccowService, appName, clientUrl) {
   // Create a new ContextManager
   var contextManager = new lt.Ccow.ContextManager(ccowService);

   // Join Common Context
   var coupon = contextManager.joinCommonContext(appName, clientUrl, false, true);

   // Get Most recent coupon
   var mostRecentContextCoupon = contextManager.getMostRecentContextCoupon();
   console.log("mostRecentContextCoupon:" + mostRecentContextCoupon);

   return coupon;
}
See Also

Reference

ContextManager Object
ContextManager Members

Error processing SSI file

 

 

Requirements

Target Platforms

Leadtools.Ccow requires a Medical toolkit server license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features