フックの作成時、Rational® ClearQuest® API を使用して、 ユーザーが Web クライアントを使用しているかどうかを判断できます。Web で使用可能な機能に合わせて スキーマを調整していない場合、この情報によって適切な処置を 取ることができます。
たとえば、メッセージ ボックスまたは新規ウィンドウを作成する関数の中に Web セッションを検索した場合は、Web 環境用に変更したコードを呼び出すか、関数を終了することができます。 Web セッションの検索には、以下のコーディング例を使用することができます。
dim currDBSession ' Current Db session set currDBSession = GetSession ' Test for existence of the web session variable. if currDBSession.HasValue ("_CQ_WEB_SESSION") then ' Either exit or do something else end if
my $currDBSession; # Current Db session $currDBSession = $entity->GetSession(); # Test for existence of the web session variable if ( $currDBSession->HasValue ("_CQ_WEB_SESSION") { # Either exit or do something else }