4.3 ww.dll API Reference : API descriptions : Functions with database access : newaddress
 
newaddress
 
Description
newaddress creates a new record in the address table. Passing a guest_no is required by the database. Any fields specified in the DefaultInfo setting in the registry (added to the registry using the ww.reg file – see the Salesware E-Commerce document) are included in what’s sent to the server. These fields can be overridden by passing them into this function.
 
Input fields
 
XML tag
Description
<guest_no>
Guest number.
<other field>
Optional. Any other field that exists in the address table – e.g., <city>. The contents of this tag are written into the corresponding field.
 
Return fields
 
XML tag
Description
<address_id>
Address ID of the new record.
 
Examples
 
Example invocation:
<func>newaddress</func><address>110 S. Lashley Lane</address>
<guest_no>2600000</guest_no>
 
Example return string:
OK :<address>110 S. Lashley Lane</address><address_id>30000001</address_id><guest_no>2600000</guest_no><operator>WEBOP1</operator><salespoint>WEBSP</salespoint>
 
See also
modifyaddress
newaddlink