'Update Batch'
Chris Sharman
Chris.Sharman@ccagroup.co.uk
Thu, 18 Jun 1998 08:52:18 +0100
>But I am interested to know if there is any way to create record with a
>"calculated" primary key in QTP...
The following does it for me: a run containing 3 requests:
initial to load the starting value
action to generate the records: needs to get (possibly unrelated)
input records
final to update the starting value (for next time)
run myqtp
global temp onum int*9 initial 0
global temp first-onum int*9 initial 0
request init-onum process limit 1
access *refnum
set file refnum open read share
item first-onum maximum ref-num noreset
request action
access anyfile
output orders add
item order-key = onum
...
item onum reset to first-onum count
request finish execute if (onum>first-onum) input limit 1
access *refnum
set file refnum open read share
output *refnum update alias refnum-out using 1
item ref-num final onum
set file refnum-out open update semiexclusive
build
______________________________________________________________________
Chris Sharman Chris.Sharman@CCAgroup.co.uk
CCA Stationery Ltd, Eastway, Fulwood, Preston, Lancashire, PR2 9WS.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.