input processing question

John Esak john at valar.com
Fri Aug 6 15:28:18 PDT 2004


<top-posted>

Unfortunately, you have shown code that should work properly and does... So,
the fact that it is breaking for you is hard to diagnose. The only obvious
conclusion is that filePro doesn't think you are on screen "ordchg". So why
not try this. Instead of putting the test for @sn, put a test line 1 of:

    if:
   then: show "@the screen I'm on is" < @sn

    ...
     if: @sn eq "ordchg"
  thenc: form "Pslprpt" ... ...

Also, if you are familiar with the debugger, you could put

    then: debug on

as your first line and test exactly what's going on when this sequence of
code runs. Maybe it's not even hitting this code at all?

John





> -----Original Message-----
> From: filepro-list-bounces at lists.celestial.com
> [mailto:filepro-list-bounces at lists.celestial.com]On Behalf Of Jeremy
> Anderson
> Sent: Friday, August 06, 2004 4:58 PM
> To: filePro mailing list
> Subject: input processing question
>
>
> 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
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list



More information about the Filepro-list mailing list