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 »


 
Returns a querySchemaId that uniquely identifies an EDMquerySchema in the EDMdatabase.
Related functions: edmiGetQuery , edmiDefineQuerySchema , edmiExecuteQuery , edmiExecuteQueryBN , edmiDeleteQuerySchema , edmiDeleteSchema
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetQuerySchema (SdaiString      schemaName,
                               SdaiString      querySchemaName, 
                               SdaiQuerySchema *querySchemaId); 
Arguments:

schemaName

Specifies the name of the Express schema that hosts the query schema. This Express must exist as a dictionary model in the EDMdatabase . Schema names are case insensitive. Schema names are unique in an EDMdatabase .

querySchemaName

Specifies the name of query schema of interest. Query schema names are case insensitive.

*querySchemaId

Address of the variable that will receive the numeric querySchemaID that uniquely identifies the query schema instance in the EDMdatabase .

Returns:
A completion code of datatype 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
SdaiQuerySchema querySchemaId;
EdmiError rstat;
. . .
if (rstat = edmiGetQuerySchema ("PDM_Schema",
"product_doc_approval", 
&querySchemaId)) { 
/* Error in operation */ 
printf("\nError: %s in edmiGetQuerySchema\n", 
edmiGetErrorText(rstat)); 
goto error; 
}
printf ("\nQerySchemaId: %lu", querySchemaId);
. . .

  • No labels