ARSetFieldToXML


Description

This function saves information about a field in an XML file.

Related topic

Privileges

All users.

Synopsis

#include "arextern.h"

int ARSetFieldToXML(
  ARControlStruct *control,
  ARXMLOutputDoc *xmlOutputDoc,
  ARBoolean xmlDocHdrFtrFlag,
  ARNameType fieldName,
  ARInternalId *fieldID,
  ARFieldMappingStruct *fieldMapping,
  unsigned int *dataType,
  unsigned int *entryMode,
  unsigned int *createMode,
  unsigned int *fieldOption
  ARValueStruct *defaultValue,
  ARPermissionList *permissionList,
  ARFieldLimitStruct *fieldLimit,
  ARDisplayInstanceList *dInstanceList,
  ARAccessNameType owner,
  ARAccessNameType lastModifiedBy,
  ARTimestamp *modifiedDate,
  char *helpText,
  char *changeHistory,
  unsigned int *arDocVersion,
  ARStatusList *status)

Input arguments

control

The control record for the operation. It contains information about the user requesting the operation, where that operation must be performed, and the session used to perform it. The usersessionId, and server fields are required.

xmlOutputDoc

The XML document output source.

xmlDocHdrFtrFlag

The header and footer flag for the XML document output source. If there is only one object in the XML document, set this value to 0.

fieldName

The field name. Each field name must be unique.

fieldId

The internal ID of the field to be retrieved.

fieldMapping

The underlying form that contains the field (only applicable to join forms).

Specify NULL for this parameter if you do not want to retrieve the field mapping.

dataType

The data type of the field.

Specify NULL for this parameter if you do not want to retrieve the data type.

See ARCreateField for a description of the possible values.

entryMode

The entry mode type.

createMode

A flag that indicates the permission status for the field when users submit entries.

Specify NULL for this parameter if you do not want to retrieve this flag.

See ARCreateField for a description of the possible values. 

fieldOption

A bitmask that indicates whether the field must be audited or copied when other fields are audited.

defaultValue

The value to apply if a user submits an entry with no field value (only applicable to data fields). The system returns 0 (AR_DEFAULT_VALUE_NONE) if the field has no default.

Specify NULL for this parameter if you do not want to retrieve the default value.

permissionList

The list of group access permissions.

fieldLimit

The value limits for the field and other properties specific to the field's type.

Specify NULL (or AR_FIELD_LIMIT_NONE) for trim and control fields or if you do not want to retrieve the limits and properties.

See Defining field limits for a description of the contained structure that applies to the type of field that you are creating.

dInstanceList

A list of zero or more display properties associated with the field.

Specify NULL for this parameter if you do not want to retrieve this list.

See ARCreateField for a description of the possible values. The system returns 0 (AR_DPROP_NONE) if the field has no display properties.

owner

The owner for the field.

lastModifiedBy

The user who last modified the field.

modifiedDate

The date that the field was last modified.

helpText

The help text associated with the field.

Specify NULL for this parameter if you do not want to retrieve the help text (which is useful if you are calling this function to verify whether an instance of this object exists).

changeHistory

The change history of the field.

arDocVersion

The version of the XML document.

Return values

status

A list of zero or more notes, warnings, or errors generated from a call made to this function.

For a description of all possible values, see Error-checking.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Helix Innovation Suite 25.3