| Title: | *OLD* ALL-IN-1 (tm) Support Conference |
| Notice: | Closed - See Note 4331.l to move to IOSG::ALL-IN-1 |
| Moderator: | IOSG::PYE |
| Created: | Thu Jan 30 1992 |
| Last Modified: | Tue Jan 23 1996 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 4343 |
| Total number of notes: | 18308 |
Hi,
sorry if my question has been answered before but there's so many notes
inhere.... anyway a pointer is ok with me.
We're trying to write an UDP where the user must enter a value, and later
on in the UDP this value must be used as part of a message subject, and
this value must be searched for in a document. The latter is the most
important, really...
Our UDP is completely finished apart from this. If I enter the value
hardcoded in the UDP (to test) it all works perfectly, but since the value
is different everytime the UDP should be edited everytime.... ;-(.
Concise question: How can I have a variable entered in a running UDP and
use its value in the editor (WPSplus)?
Thanks,
Andr�
ALL-IN-1 Version 3.0
WPSplus Version 4
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 2213.1 | Try .PROMPT | SANFAN::LESLIE_DA | Greetings & Solutions | Thu Feb 04 1993 20:13 | 5 |
I believe you want to use the .PROMPT command. Text the user enters is
stored in some symbols (OA$PSIB_* if I remember correctly). I am sure
someone here will give you more details than this (if you need them).
Did you try this? Look in APR for more info...
Dan
| |||||
| 2213.2 | JGODCL::APETERS | My private life is killing me | Fri Feb 05 1993 08:54 | 34 | |
Hi,
I tried that already, and I got the response in OA$SCRIPT_PSIB. That's not
the problem... the problem is using it's value in WPS. When I enter
{GOLD ,} for search, then the prompt appears where WPS wants me to input
the string to search for. If I have OA$SCRIPT_PSIB in my script it will
search for "OA$SCRIPT_PSIB", not for it's value. And, it adds the
terminator as well, so it's actually searching for OA$SCRIPT_PSIB{CR}.
I tried prefixing with # and @# and stuff that i've seen in various
manuals but no avail...
I want something like:
.prompt "Enter ordernumber: " ! E.g.93T212345
.
. (enter editor)
.
{gold ,} ! Search
OA$SCRIPT_PSIB ! In fact, search for 93T212345
.
. (Do useful stuff)
.
I thought about writing an UDP that writes an UDP, but that seems a bit
clumsy....
Is there something like .FUNCTION OA$WPS_SEARCH #OA$SCRIPT_PSIB ?
Regards, and thanks so far,
Andr�
| |||||
| 2213.3 | The UDP from hell... | SCOTTC::MARSHALL | Spitfire Drivers Do It Topless | Fri Feb 05 1993 10:39 | 8 |
A wild guess, but does:
{GOLD ,}
.PROCESS OA$SCRIPT_PSIB
do the trick?
Scott
| |||||
| 2213.4 | JGODCL::APETERS | My private life is killing me | Fri Feb 05 1993 11:05 | 20 | |
> A wild guess, but does:
>
> {GOLD ,}
> .PROCESS OA$SCRIPT_PSIB
>
> do the trick?
Unfortunately it doesn't do the magic....
for the moment, I have one .get_field/.process for the entering of the
message subject (which includes the ordernumber) and then, when in the
editor, a "{gold ,} .prompt/.process" sequence. This is a bearable
workaround but still requires typing the ordernumber twice. We're heading
in the right direction, though!
Thanks,
Andr�
| |||||