'Update Batch'
Chris Sharman
Chris.Sharman@ccagroup.co.uk
Mon, 15 Jun 1998 09:02:27 GMT
>Let's say I get 100 pc, they all are the same. What I would like to do it's
>to use the inventory screen to enter all the common value shared by all the
>pc and then instead of typing Update at the action field, the user would
>type something like UB (for Update Batch) then input the inventory range
>number and voilą a batch job is lunch in QTP and the creation is on it's
>way.
>
>The problem reside when I want to let the user input the inventory start and
>end value for the equipement. I can't seem to be able to get it to work.
>Since I don't want these field in the screen itself, I can't (or at least I
>haven't found a way to) let the user input them from the designer procedure.
>I've tried to call a subscreen to be use to input the value, but there again
>I can't return a value like a confirmation to proceed...
>
>I thought there could be a way to do this by storing the value in the
>parameter passing file (direct access file that is at this location to pass
>parameter to the reports), but then again, I did not find any way to go back
>and read that file after comming back from that screen... (I need to read it
>to be sure I need to proceed).
>
>Like I said, I probably am not doiing it the "PowerHouse way" that is why
>I'm having so much trouble doiing it.
>
>Also I was wondering if QTP would be able to create record for the
>inventory, giving a start and end value??
>
>By the way we are using PowerHouse v 5..
Not straightforward at all, in fact.
QTP is the 'Powerhouse way' to do batch stuff: have you done the basic intro
course ?
Powerhouse V5 predates me (only 5 years experience), so I don't know how it
differs from more current versions.
Possibly an extra field for the ending batch number, which if filled in could
be used in the postupdate to run QTP ?
Eg:
temp end-batch int*9
field end-batch ...
procedure postupdate
begin
if (end-batch<>0)
then begin
if not setsystemval("START",ascii(inventory-batch),LOGICAL,"LNM$JOB") or &
not setsystemval("END",ascii(end-batch),LOGICAL,"LNM$JOB")
then error "Failed to init batch job"
else run command "qtp auto=rest-of-batch"
end
end
So Quick does the first (or only), then checks whether there's more. If so, it
sets up the necessary parameter values and calls QTP (which will need to read
those parameters).
Note: the SETSYSTEMVAL commands are VMS specific: I believe something similar
(but not identical) is available on most platforms - you don't mention what
you're using. You could use your parameter passing file I suppose.
QTP will need to read the right number of record complexes on input. If there
isn't an input record per transaction, you'll need to find a file on your
system with at least the right number of records, and just use it as a dummy
to generate the right number of complexes.
Good luck
Chris
______________________________________________________________________
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.