EssUnlockObject

Description

EssUnlockObject() unlocks a locked object on the server or client object system.

Syntax

ESS_FUNC_M  EssUnlockObject (hCtx, ObjType, AppName, DbName, ObjName); 
ESS_HCTX_ThCtx
ESS_OBJTYPE_TObjType
ESS_STR_TAppName
ESS_STR_TDbName
ESS_STR_TObjName

Parameters

hCtxEssbase API context handle. Can be local context handle returned by EssCreateLocalContext().
ObjTypeObject type (must be single type). Refer to Bitmask Data Types for a list of possible values.
AppNameApplication name
DbNamedatabasename. If NULL, uses the Application subdirectory.
ObjNameName of object to unlock

Return Value

None.

Notes

Access

This function requires the caller to have Application or Database Design privilege (ESS_PRIV_APPDESIGN or ESS_PRIV_DBDESIGN) for the specified application or database containing the object.

Example

ESS_FUNC_M 
ESS_UnlockObject (ESS_HCTX_T hCtx)   
{
   ESS_FUNC_M         sts = ESS_STS_NOERR;
   ESS_STR_T         AppName;
   ESS_STR_T         DbName;
   ESS_STR_T         ObjName;       
   ESS_OBJTYPE_T     ObjType;     
   
   AppName = "Sample";
   DbName  = "Basic";
   ObjName = "Basic";
   ObjType = ESS_OBJTYPE_OUTLINE; 
   
   sts = EssUnlockObject(hCtx, ObjType, AppName,
         DbName, ObjName); 
   if(!sts)
      printf("The Object is unlocked\r\n");
   return (sts);
}

See Also

EssGetObject()
EssGetObjectInfo()
EssListObjects()
EssLockObject()
EssPutObject()