Since: edmcore v602.131.32
EdmiError _CDECL edmiDefineServerContextProperty (SdaiServerContext serverContextId, SdaiInteger serverContextProperty, SdaiSelect serverContextPropertyValue); /* The edmiGetMySessionToken() and edmiGetMyPersonName() functions are implemented to enable EDMappServerr plug-ins to fetch the "sessionToken" and "personName" properties from the actual used server context. The returned string is located in a static internal buffer, one static buffer for each of these functions. Hence, the calling program should not free these strings by calling edmiFree(). In case the actual server context does not have any value for the actual property NULL is returned from the actual function call. */ #if defined(__STDC__) || defined(__cplusplus) SdaiString _CDECL edmiGetMySessionToken (void); SdaiString _CDECL edmiGetMyPersonName (void);
Sets or updates a server context property.
The PersonName property defines the person logged on the EDMserver with actual SessionToken.
The PersonName may consist of a string with several fields. Example: "John Smith, CEO, EPMT"
The PersonName property will be used in the various logging function in EDMserver & EDMappServer.
This property is only valid when the actual server context has a SessionToken defined.
Arguments
Type | Name | Comment |
SdaiServerContext | serverContextId | Context identification, from edmiDefineServerContext |
SdaiInteger | serverContextProperty | /* Available serverContextProperty in the edmiDefineServerContextProperty() functions: */ #define SERV_CONTEXT_SESSION_TOKEN 01 #define SERV_CONTEXT_PERSON_NAME 02 #define SERV_CONTEXT_USER_NAME 04 #define SERV_CONTEXT_PASSWORD 010 /* setting the actual select struct element type = sdaiINDETERMINATE will unset the actual server context property */ |
SdaiSelect | serverContextPropertyValue | New property value |
Return Value
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.
Options
Example
EdmiError rstat; if (rstat = edmiDefineServerContextProperty(. . . ) { printf("\nError %d in edmiDefineServerContextProperty", rstat); goto err; } . . .
Example
EdmiError rstat; SdaiUnsignedInt serverContextId; . . . if (rstat = edmi. . . () { printf("\nError %d in edmi . . .", rstat); goto err; } . . .
See also
Filter by label
There are no items with the selected labels at this time.