Examples

DREREPLACE?DATABASEMATCH=News+Archive HTTP/1.0\n
Content-Length:203\n\n

#DREDOCID 1\n
#DREFIELDNAME Price\n
#DREFIELDVALUE 10\n
#DREFIELDNAME Color\n
#DREFIELDVALUE Red\n

#DREDOCREF http://www.example.com/example/dynamic/autopage442.shtml\n
#DREFIELDNAME Country\n
#DREFIELDVALUE UK\n
#DREFIELDNAME Region\n
#DREFIELDVALUE South East\n
#DREFIELDNAME OnSale\n
#DREDELETEFIELDVALUE Yes\n

#DRESTATEID abcdefg-6\n
#DREFIELDNAME Fruit\n
#DREFIELDVALUEIFNOTFOUND mango\n
#DREDELETESINGLEFIELDVALUE apple\n
#DREDELETEFIELD XML/DOC/DELETEME\n

#DREENDDATANOOP\n\n

In this example, the DREREPLACE makes these changes in the News and Archive databases.

Edit BitField Values

The following example demonstrates how to use a DREREPLACE action to edit the set information held in BitFieldType fields.

DREREPLACE?ReplaceAllRefs=True HTTP/1.0\n
Content-Length:203\n\n

#DREALL \n
#DREFIELDNAME BitField\n
#DREFIELDVALUEIFNOFIELD A008\n
#DREFIELDBITOR A008\n

#DREDOCID 1274\n
#DREFIELDNAME Workbook\n
#DREFIELDBITXOR 98\n

#DREDBNAME News\n
#DREFIELDNAME NewsSets\n
#DREFIELDBITAND D9\n

#DREENDDATANOOP\n\n
NOTE:

The BitField, Workbook, and NewsSets fields used in this example must be BitFieldType fields.

In this example, the DREREPLACE makes these changes.


_HP_HTML5_bannerTitle.htm