show only browse
Bruce Easton
bruce at stn.com
Wed Sep 15 15:52:35 PDT 2010
OK - I rushed that a bit - two corrections:
the first Then line should be sn=@sn
and the lookup line would be invalid without a k= or r= and index if
necessary and
other appropriate flags
(and i'm pretending the lookup definition - ba thru bc is defined
elsewhere in the table)
Bruce
On 9/15/10 6:30 PM, Bruce Easton wrote:
> 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
> _______________________________________________
> 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