EssCreateObject() creates a new object on the server or client object system.
ESS_FUNC_M EssCreateObject (hCtx, ObjType, AppName, DbName, ObjName);
ESS_HCTX_T | hCtx |
ESS_OBJTYPE_T | ObjType |
ESS_STR_T | AppName |
ESS_STR_T | DbName |
ESS_STR_T | ObjName |
hCtx | Essbase API context handle. Can be local context handle returned by EssCreateLocalContext(). |
ObjType | Object type (must be single type). Refer to Bitmask Data Types for a list of possible values. |
AppName | Application name |
DbName | Database name. If NULL, uses the Application subdirectory. |
ObjName | Name of object to create |
None.
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 to contain the object.
ESS_FUNC_M ESS_CreateObject (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 = "Test"; ObjType = ESS_OBJTYPE_OUTLINE; sts = EssCreateObject(hCtx, ObjType, AppName, DbName, ObjName); if(!sts) printf("The Object is created.\r\n"); return (sts); }
EssCopyObject()
EssDeleteObject()
EssListObjects()
EssLockObject()
EssPutObject()
EssRenameObject()