XWB CREATE CONTEXT
Establishes context on the server, which will be checked by the Broker beforeexecuting any other remote procedure. Since context is nothing more than aclient/server “B”-type option in the OPTION file (#19), standard MenuMansecurity is applied in establishing a context. Therefore, a context optioncan be granted to user(s) exactly the same way as regular options are doneusing MenuMan.A context can not be established for the following reasons: The user has no access to that option The option is temporarily out of orderAn application can switch from one context to another as often as it needs to.Each time a context is created the previous context is overwritten.For more information on creating a context and the overall Broker securitysee Broker on-line help documentation.
MUMPS Method Description
||creates context for the passed in option
K XQY0,XQY N XWB1,XABPGMOD,XWBPGMOD S RESULT=0
S OPTION=$$DECRYP^XUSRB1(OPTION) ;S:OPTION="" OPTION="\"
I OPTION="" S XQY=0,XQY0="",RESULT=1 Q ;delete context if "" passed in.
I XWB1="" S (XWBSEC,RESULT)="The context '"_OPTION_"' does not exist on server." Q ;P10
I RESULT!XWBPGMOD S XQY0=OPTION,XQY=XWB1,RESULT=1
E S XWBSEC=RESULT
Document generated on August 31st 2022, 2:55:43 pm