browse lookup problem

Richard Kreiss rkreiss at gccconsulting.net
Wed Apr 9 14:43:01 PDT 2008


Have an application where I am doing a browse using an index based on a code and last name.

This runs from @entsel while sitting on 1 record.

An input get some part of a last name such as just the first letter of the last name.

69  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
       ◄ If: gn = ""
       Then: ba="(brw=12 xkey=x pop=event fill=asc,top)"
 70  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
       ◄ If: gn ne ""
       Then: ba="(brw=12 xkey=x pop=event mlen=4 fill=asc,top)"
 71  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
       ◄ If:
       Then: bb="[\b5Code         Last Name          First Name            Doct
 72  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
       ◄ If:
       Then: bc="*16           *1                   *2                   *45"
74     ◄ If: gn ne ""     'use group code display all docs in group
       Then: lookup mark = l_patient_market  k=lv   i=U -nx b=(BA&BB&BC)

The first time through everything is fine.

Once the user selects a record from this browse, this browse is closed and a new browse is opened based on the telephone # in the record.  This browse will show everyone with that phone number.  When the user completes the task, pressing X, closed the current browse and does a GOTO @entsel to re-run the requested method for showing the records.

Now the problem, if I enter just a letter or a complete last name, the browse hangs for a few seconds and then displays records at the end of the file.  Pressing <enter> causes the correct display of records.

Has anyone seen this behavior?  

Anyone have a suggestion how to correct it. Yes, I probably could add a flag which when set will force pushkey "[ENTR]" to execute.  But that's a work around for the problem.


Richard Kreiss
GCC Consulting
rkreiss at gccconsulting.net
  


 




More information about the Filepro-list mailing list