edmiDefineServerContextProperty

Since: edmcore v602.131.32


EdmiError         _CDECL edmiDefineServerContextProperty    (SdaiServerContext       serverContextId,
                                                             SdaiInteger             serverContextProperty,
                                                             SdaiSelect              serverContextPropertyValue);

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


TypeNameComment
SdaiServerContextserverContextIdContext 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 */
SdaiSelectserverContextPropertyValueNew 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.

Â