Switching to update mode from @ENTSEL

fp at casabellagallery.com fp at casabellagallery.com
Mon Jul 9 16:36:59 PDT 2007


Ken wisely suggested:
>>Quoting Barry Wiseman (Mon, 09 Jul 2007 12:04:54 -0400):
>> Is there some graceful method (that hasn't occurred to me) of dropping
>> into update mode at any arbitrary point deep within @ENTSEL processing?
>> I know I can
>>
>> ::pushkey "U"; end:
>> @UPDATE::' do whatever:
>>
>> but then I need flags and a jump table to know why I came there and it
>> all gets pretty messy.

>One possibility would be to use different @KEY events for the different
>reasons you want to enter update, and use different PUSHKEYs.
>

How about:
1. Write main record to a new record
2. Hold new record # in variable
3. Open new session (system "reclerk ...") opening new record in update mode
   Of course, you will need to possibly use custom input process and surely
   pass the record number stored in step 2

Employing this method, you can then pass arguments identifying the reason
and origin of the update (what triggered it).  Additionally, when user exits
update mode, you can retrieve updated record, copy it back and remove it; not
to mention that you will return right back to your point of origin effortlessly.

Humm, I am not sure if you can do "copyin" while in @entsel mode ... but it
may be worth looking into it (I know you cannot assign value to a real field and
copyin will do just that).  If not possible, you are then left with what Ken
mentions above (which I figure is what you have already).

Wait, if this does not work, surely you can remove record you are on and
jump to newly updated record using lookup - ...


Good luck!

Jose Lerebours





More information about the Filepro-list mailing list