Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


 
Deletes the specified EDMquerySchema from the EDMdatabase. This operation can be performed independent of other EDMquerySchema and independent of any number of existing populations (data models) of the belonging Express schema.
All EDMquerySchema of a dictionary model will implicitly be deleted when the actual dictionary model is deleted by one of the following operations: edmiDeleteSchema , sdaiDeleteModel , edmiDeleteModelBN
Related functions: edmiDefineQuerySchema , sdaiDeleteModel , edmiDeleteModelBN , edmiDeleteSchema
Header:
#include "sdai.h"
Prototype:
EdmiError edmiDeleteQuerySchema(SdaiString schemaName,
                                 SdaiString querySchemaName); 
Arguments:

schemaName

Specifies the name of the Express schema to which the Query Schema applies. Schema names are case insensitive. This Express schema must exist as a dictionary model in the EDMdatabase.

querySchemaName

Specifies the name of the QuerySchema to delete from the EDMdatabase. Query Schema names is case insensitive.

Returns:
A completion code of data type EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE:
EdmiError rstat;
...
if (rstat = edmiDeleteQuerySchema("PDM_Schema",
"Product_Document_Queries")) { 
/* Error in operation */ 
printf("\nError: %s in edmiDeleteQuerySchema\n", 
edmiGetErrorText(rstat)); 
goto error; 
}
/* Specified query schema is permanently deleted from database */

  • No labels