wef brw lookup behavior
Scott Nelson
scott at logicdatasystems.com
Tue Jan 22 07:27:56 PST 2008
Barry Wiseman wrote:
> Scott Nelson wrote:
>
>> When doing a browse lookup for a select list to fill a field using wef,
>> there are a couple strange things:
>>
>> First, after the lookup and @bk eq "S" to Select a record, the skip
>> command does not work. I have to use a pushkey "[entr]"
>>
>> If you use @bk and then corresponding letters in the exit keys, then you
>> can not hit Enter to drop the window. When attempting to use [Entr] on
>> the exit key and @bk, the browse lookup drops, and the cursor flashes at
>> the point where 'enter selection' would be.
>>
>> Am I overlooking something due to excessive cold medication????
>>
>
> Yes, unless you're trying to do something more than simply "fill a field
> using wef". For the task you describe, no exit keys or @bk required,
> the user will simply press Enter to choose a value, e.g.:
>
> @WEF2:2 eq "":lookup drtype k=2 i=A -ng b="(brw=12 fill=asc,top)*1":
> :2 ne "":lookup drtype k=2 i=A -ng b="(brw=12 fill=asc)*1":
> ::2=drtype(1); display; skip:
>
> Sounds like you're trying to use multiple possible exit keys from the
> browse lookup to provide other functions than simply "gimme this one and
> put it in my field". Let's see the code.
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>
I am trying to use multiple exit keys, and I thought the enter key was
not hitting the line after @bk which had no condition. I had forgotten
that filePro behavior on the browse lookup was to return to the field,
and the test on the wef was passed since the field was blank, and the
process loops. On a wef - brw lu, there must be a selection or a switch
to let it leave the field when the browse is done.
It turns out that too much cold medication knocks out long term memory
as well as the cold's symptoms.
Thanks,
Scott
More information about the Filepro-list
mailing list