Places an AppPage in the database using the AppPages repository database connection. This function will insert a new row if one exists already, based on the key column, ID. Two other keys must exist in each table; these are Project and Description. When inserting, the value of Project will be "APB".
returnCode = wcStore(cntrlHandle, pageID, &pageHandle);
int wcStore(void *controlHandle, char *MiVal, char *pageHandle)
controlHandle | The handle to the control structure. |
MiVal | The page ID. If this argument is null, wcStore( ) uses the value of the MIval parameter from the configuration file. |
pageHandle | Handle to the AppPage. |
returnCode = wcStore(cntrlHandle, pageID, pageHandle);
The following code shows how wcStore( ) is used in an application.
char newPage[4000]; ... /* Code to construct the AppPage itself */ /* and assign the HTML text to newPage */ ... wcStore(wcp, NULL, newPage);
wcAppPageConnName( )
wcLoad( )