GET_DOC_VALUES command

Content Manager OnDemand returns a list of the document values for the specified document within the document list of the active folder.

Command Parameters
GET_DOC_VALUES /N doc number /S
Parameters
N
Specifies the zero-based relative document number within the document list of the active folder. The number of documents in the list can be determined by using the GET_NUM_DOCS_IN_LIST command. This parameter is required.
S
Indicates that values are to be returned only if the specified list item is selected. This parameter is optional.
Action
None
Return Code
0
ARS_DDE_RC_NO_ERROR
2
ARS_DDE_RC_PARM_NOT_SPECIFIED
3
ARS_DDE_RC_INVALID_PARM
8
ARS_DDE_RC_FOLDER_NOT_OPEN
11
ARS_DDE_RC_USER_ACTION_IN_PROGRESS
Return Data
The list is a null-terminated character string with the tab character separating each field value. The values are in the same sequence as the display field names returned by the GET_DISPLAY_FIELDS command.

If the document number does not exist in the list or if the S parameter has been specified and the document number is not selected, no values are returned.

Refer to the DoDdeCommand function.
 char data[1000], values[10][100],
* pToken;
 int j;

 if ( DoDdeCommand( "GET_DOC_VALUES",
"8", data ) )
 {
   for ( pToken = strtok( data, "\t" ), j = 0;
         pToken != NULL &&;amp; j < 10;
         pToken = strtok( NULL, "\t" ), j++ )
   {
     strcpy( values[j], pToken );
   }
 }