DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

OFGenerateHandleId(TCL_ADM)


OFGenerateHandleId -- generate indentifier for BMIP request

Syntax

OFGenerateHandleId oldHandleId bmipRequestVar

Description

When a request processor needs to use a different BMIP request (such as scoping of another class) OFGenerateHandleId is used to generate a new handleId to match the new BMIP request.

The routine is passed the old handleId and the new BMIP request, and it will return a new handleId that maps to the new data structures that the Server API has generated for the new BMIP request. These data structures and the original data structure will be deleted by the Server API when the request processor exits, and for all intents and purposes are invisible to the OSA writer.

Arguments


oldHandleId
the handle with which the Server API stores extra information about the current BMIP request. This is passed to the request processor as an argument.

bmipRequestVar
the name of a keyed list representing to the BMIP request, forwarded as an argument to the request processor.

Error messages


NO_SUCH_CLASS_HANDLE
The handleId named does not correspond to an existing class in the Server API's internal lookup table.

NO_SUCH_OBJECT_CLASS
The class argument to the BMIP request did not match any of the class names that are local to this OSA.

Example

proc RequestProcessor {osaDataString handleId bmipRequest} {

if {[llength [keylget bmipRequest objectInstance]] != 0} {

# # If we have a scoped request #

keylset bmipRequest scope {} keylset bmipRequest objectClass {sco widget}

set widgetHandleId [OFGenerateHandleId $handleId bmipRequest]

widgetRequestProcessor {} $widgetHandleId $bmipRequest return }


16 September 2002
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003