STORE_DOC command

Content Manager OnDemand converts the folder field values to application group fields and stores the data from the specified file in the database as a document associated with the specified application group and application.

Command Parameters
STORE_DOC /P doc path /G appl group name /A appl name /n value
Parameters
P
Specifies the fully-qualified path of a file containing the document data to be stored in the Content Manager OnDemand database. This parameter is required.
G
Specifies the name of an application group within the active folder. It is the responsibility of the caller to know the application group names associated with the active folder. This parameter is required.
A
Specifies the name of an application within the specified application group. It is the responsibility of the caller to know the application names associated with the specified application group. This parameter is required.
n
Specifies the value associated with a folder field. n is X'01' for the first field of the folder; X'02' for the second; and so forth. The associated value is a character string which can be converted to data of the field type.
The number and order of folder fields can be determined by using the GET_FOLDER_FIELDS command.
Any folder fields not specified are given an empty string for string fields or zero for numeric fields. If extraneous fields are specified, they are ignored.
Date fields must be provided in the format required for the field. For example, specifying 02/03/23 is invalid when February 3, 2023 is required.
If a slash character is to be included in a value, such as in a date, two consecutive slashes must be specified.
Action
Content Manager OnDemand converts the folder field values to application group fields and stores the data from the specified file in the database as a document associated with the specified application group and application.
Return Code
0
ARS_DDE_RC_NO_ERROR
2
ARS_DDE_RC_PARM_NOT_SPECIFIED
4
ARS_DDE_RC_SERVER_ERROR
5
ARS_DDE_RC_FILE_ERROR
8
ARS_DDE_RC_FOLDER_NOT_OPEN
11
ARS_DDE_RC_USER_ACTION_IN_PROGRESS
12
ARS_DDE_RC_UNAUTHORIZED_OPERATION
15
ARS_DDE_RC_INVALID_APPL_GROUP_NAME
16
ARS_DDE_RC_INVALID_APPL_NAME
17
ARS_DDE_RC_INVALID_INTEGER_FIELD
18
ARS_DDE_RC_INVALID_DECIMAL_FIELD
19
ARS_DDE_RC_INVALID_DATE_FIELD
20
ARS_DDE_RC_INVALID_APPLGRP_FIELD_TYPE
27
ARS_DDE_RC_TOO_MANY_VALUE_CHARS
Return Data
If the return code is one of the following codes:
  • ARS_DDE_RC_INVALID_INTEGER_FIELD
  • ARS_DDE_RC_INVALID_DATE_FIELD
  • ARS_DDE_RC_INVALID_DECIMAL_FIELD
  • ARS_DDE_RC_INVALID_APPLGRP_FIELD_TYPE
  • ARS_DDE_RC_TOO_MANY_VALUE_CHARS
Content Manager OnDemand returns the relative folder field number of the invalid field. For example, if the first folder field is invalid, Content Manager OnDemand returns a 0, if the second folder field is invalid, Content Manager OnDemand returns a 1.

C/C + +

Refer to the DoDdeCommand function.
 char parms[200];

 sprintf( parms,
          "/D %s /G %s /A %s /\x'01' %s /\x'02' %s /\x'03' %s",
          "D:\DATA\DOCDATA.AFP",
          "Student Data",
          "Grades",
          "Coed, Mary",
          "05//23//23",
          "3.15" );

 DoDdeCommand( "STORE_DOC", parms, NULL );

Visual Basic

 Dim cmdline As String
 cmdline = "STORE_DOC /P D:\Data\DocData.AFP "
 cmdline = cmdline + "/G Student Data "
 cmdline = cmdline + "/A Grades "
 cmdline = cmdline + "/" Chr(1) + " Coed.Mary "
 cmdline = cmdline + "/" Chr(2) + " O5//23//23 "
 cmdline = cmdline + "/" Chr(3) + " 3.15"

 Call fncDDElink ( arstopic, cmdline, linktype, 3000 )