input processing question

Jeremy Anderson jeremy at plunketts.net
Fri Aug 6 13:57:51 PDT 2004


here's what's going on:

I've created a screen, named ordchg
it's designed to allow people to modify already printed orders (a 
functionality not available from the order entry window).
In my input processing table, I have a few checks, in various
wefXX statements, checking @SN, and verifying that I am indeed on screen 
"ordchg"
Those work fine.

However, I'm trying to program it such that whenever some hits 
[esc][esc], the modified order will immediately be printed.

Here are the first four lines of my input processing table:

  1  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
       ` If: na ne "" or nb ne "" or nc ne "" or nd ne "" or ne ne "" 
or  nf ne "" or ng ne ""
       Then: form 
"CSlip"                                                      `
  2  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
chgord ` If:  @SN eq 
"ordchg"                                                  `
       Then:  form "Psliprpt"; show "@reprinted"; display; 
end                 `
  3  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
       ` If: 'above code attempts to detect if we're on screen ordchg  `
       Then: ' if we are, then we want to print a new Psliprpt the 
momeny      `
  4  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
       ` If: ' the user has saved the changes.  JDA 
8/6/04                     `
       Then:                                               

I copied-and-pasted them to avoid my normal typos and brainos.

I tried saving screen ordchg as screen 7, in case there was an issue 
with the named screen.  That didn't help.
form Psliprpt can be selected manually from the IUA screen, and it will 
successfully print.
I have tried removing the form command, and leaving just the show in, 
and the show command is not executed.
I have tried it without the show, having just the form command, and the 
form is not printed.
I have moved chgord to the first line of the file, and this has not helped.
Case sensitivity matches, e.g. Psliprpt is the actual name of the 
report.  I've even cut-n-pasted the name of the report from the code to 
the dclerk/IUA window, and that works fine.

I am completely stumped, and convinced that it is something intuitively 
obvious and remarkably simple.
Any help will be much appreciated.

-- 
Jeremy Anderson jeremy (at) plunketts.net
IT Manager, Plunkett's Pest Control Author, Multitool Linux


More information about the Filepro-list mailing list