The field values you want to replace or delete in IDOL server. Specify the target documents, fields, and field values as follows:
#DREALL matches all documents. This is restricted only by the DatabaseMatch parameter supplied as part of the DREREPLACE request, or by database read-only status.
#DREDBNAME databaseName is the database or databases within which to all documents should be matched. To specify more than one database, separate them with plus signs (+). The DatabaseMatch parameter is ignored for the documents identified by #DREDBNAME.
#DREDOCID id is the ID of the document containing the field you want to change or delete.
#DREDOCREF url is the reference of the document containing the field you want to change or delete.
#DRESTATEID stateID is the stored state ID of an array of documents containing the field you want to change or delete. The stateID is returned from a query where StoreState=true.
#DREFIELDNAME fieldName is the name of the field whose value you want to change or delete. Note that in XML documents, fieldName must be fully qualified (for example, XML/DOCUMENT/MYFIELD).
#DREFIELDVALUE fieldValue is the new value for the field specified by fieldName.
#DREFIELDVALUEIFNOTFOUND fieldValue is the new value for the field specified by fieldName if the fieldName/fieldValue pair does not already exist.
#DREFIELDVALUEIFNOFIELD fieldValue is the new value for the field specified by fieldName if the fieldName does not already exist in the document.
#DREDELETEFIELDVALUE fieldValue is the value the field specified by fieldName must contain for the field to be deleted.
#DREDELETESINGLEFIELDVALUE fieldValue is the value the field specified by fieldName must contain for the first instance of the field to be deleted. Note that this deletes only a single instance of the fieldName/fieldValue pair.
#DREDELETEFIELD fieldName is the field to be deleted. Note that a #DRE*VALUE parameter is not required.
#DREFIELDBITOR value is generally a 32-bit decimal integer. If this field is a NumericType field with the NumericIntegerOnly property, then the value is a signed 64-bit integer. If the field is a BitFieldType field, the value should be a hexadecimal value. The operation is performed on the field identified by the previous #DREFIELDNAME. For NumericType fields, if the field is not present in the document, then a field is added with value 0000000000 first, and then the bit operation is applied.
#DREENDDATA must exist at the end of a command parameter block to signify the end of the data.
In this example, the DREREPLACE makes the following changes in the News and Archive databases.