show only browse
Bruce Easton
bruce at stn.com
Wed Sep 15 15:30:49 PDT 2010
Well you're trying way too hard to have 'fun' :)
Since you said in your original post that you wanted the user to be
returned to the screen from which they hit the 9 key (in other words,
not subsequently allowing change of record whilst staying on that new
screen), then, therefore, hitherto, don't use 'switchto' for that
purpose - just do this in your input table (and don't do anything in an
auto table):
@key9
Then: sn=9
Then: display 9
Then: lookup alias=file b=(ba&bb&bc)
Then: show "@"
Then: display (sn)
Then: end
(where ba, bb and bc define some show-only browse format)
Note that here, you are taking over the 9 key, not letting filepro
switch the screen for you.
Bruce
Bruce Easton
STN, Inc.
On 9/15/10 5:52 PM, Richard Kreiss wrote:
> Tried that, as this is a "show only" browse, the screen switches and
> immediately returns to the original screen - no browse.
>
> OK - here is the interesting part:
> 1. Access the record - auto process runs 1
> 2. Press 9 and auto processing runs 2
> 3. Programming at @key9 runs
> 4. Browse displayed
> 5. Auto processing runs with display up 3
> 5. Press<enter> and auto processing runs again - auto processing runs 4
> times
>
> I added to auto processing
> If:
> Then: auto_count=auto_count+"1"
> Is_scrn If: auto_count = "4" and sn ne ""
> Then: switchto (sn)
> If: is_scrn
> Then: auto_count="";sn=""
>
> Sn is set in @key9 processing
>
> This works just fine in switching back to the starting screen. The one
> problem now is that<enter> now moved to the next record. Before this, just
> the browse cleared without changing records. Now to solve this problem.
> Ain't programming fun? :)
>
> Richard
More information about the Filepro-list
mailing list