4.3 ww.dll API Reference : API descriptions : Functions with database access : getuniquekey
 
getuniquekey
 
Description
getuniquekey takes a <key> tag with a field name from the sequence table. Using getuniquekey, you get a new address_id of, for example, 19000010, with which you can call a function like insert:
 
<func>insert</func><params>into addlink (addlink_id, guest_no, address_id) VALUES (19000010, 1000000, 1000000)</params>
 
Input fields
 
XML tag
Description
<key>
Field name from the sequence table. For example, k_address, k_guests, k_addlink, ww_sale, k_transact and k_sale_hdr.
 
Return fields
A unique key returned within an XML tag that corresponds to the field name passed to the call.
 
Examples
 
Example invocation:
<func>getuniquekey</func><key>k_address</key>
 
Example return string:
OK :<k_address>20000010</k_address>
 
See also

insert
select
update