Input processing table question

Dan Snyder dan.snyder at mercuryelectronics.com
Tue Apr 20 13:10:07 PDT 2004


Hello all,

I'm trying to do the following.

1. The user selects a record and views it on screen #2 in Inquire, Update,
Add.
2. I'm using "@entsel" in my input processing table to display a message
that a command can be run by pressing a key.
3. When the user presses the key, the command does the following:
    a. displays another screen asking the user for 4 data fields
            (using dummy fields)
    b. creates a new record copying certain fields from the record
            they were viewing and the 4 dummy fields from "a" above
    * All code for #3 is under the "@keyS" label in my input
      processing table.

I have this working fine.  However, when it exists, it goes back to the
original screen and the original record.  I do want it to go back to the
original screen #2, but I want it to display the new record, not the
original.  I've tried several different things that I thought might work but
nothing seems to work.

This is what the code I'm trying right now and it looks fine with the
debugger.
    if:
    then:   kx=sys(24)  ' get sequence # from previous lookup
    if:
    then:   lookup - k=kx -i=h -nx
    if:
    then:   select
    if:
    then:   end

Does anyone have any suggestions?


Thank you,

Dan Snyder
Mercury Electronics
717-854-9557 ext. 224
http://www.mercuryelectronics.com/



More information about the Filepro-list mailing list