home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / oracle / 2773 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  2.8 KB

  1. Path: sparky!uunet!hayes!fgreene
  2. From: fgreene@hayes.com
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: MULTIPLE LIST OF VALUES
  5. Message-ID: <6646.2b527f71@hayes.com>
  6. Date: 12 Jan 93 08:21:04 EDT
  7. References: <811.204.uupcb@sqlware.uunet.UU.NET>
  8. Distribution: world
  9. Organization: Hayes Microcomputer Products, Norcross, GA
  10. Lines: 50
  11.  
  12. In article <811.204.uupcb@sqlware.uunet.UU.NET>, mike.sullivan@sqlware.uunet.UU.NET (Mike Sullivan)  writes:
  13. > I am running Oracle 6.0.34 on Interactive Unix w/ Sqlforms 3.0 and have
  14. > a question on how to do the following:
  15. > When a user enters a field, I'd like a list of values to appear. They
  16. > can scroll up and down the list and by hitting a key, select that item
  17. > (maybe going reverse video to show a selection), and then go on to
  18. > select another item. After choosing one or more items, they hit a key
  19. > and progress to the next field on the form. They can circle back to the
  20. > field w/ the LOV, with their previous selections in reverse video
  21. > (or whatever). When they are done with the present form, they hit Enter
  22. > Query to retrieve the records that matched the values set in the
  23. > multiple LOV as well as any other fields on the form.
  24. > Any suggestions.
  25.  
  26. Use a KEY-NXTFLD trigger on the PREVIOUS field to navigate to a pop-up
  27. window and execute a query, as in
  28.  
  29.     GO_FIELD('the_list');
  30.     EXECUTE_QUERY;
  31.  
  32. The pop-up window is actually a separate block that contains the list
  33. of values you are seeking along with a dummy field.  The actual values
  34. are display only (assuming you don't want to change anything).  Thedummy
  35. field (the_list) allows the screen to display.
  36.  
  37. Any retrieval limitations, sorting criteria, etc., are included in the
  38. block definitions for the list block.  
  39.  
  40. Navigate in the block normally using arrow keys.  Highlighting can be 
  41. controlled with the SET_FIELD parameter.
  42.  
  43. Exit control is done with a KEY-NXTFLD trigger attached to the field
  44. 'the_list'.  Transfer your selected parameter back to the target field and
  45. then jump to the next field as in
  46.  
  47.     :block.target_field := :block_list.the_list;
  48.     GO_FIELD('block_whatever.the_next_field')
  49.  
  50.  ----------------------------------------------------------------------------
  51.  |      Frank Greene                  |          //////  //////             |
  52.  |      DELPHI SYSTEMS, Inc.          |           ////    ////              |
  53.  |      Telephone [615] 458-6032      |          ////    ////  //////       |
  54.  |      Compuserve 74200,427          |         ////    ////    ////        |
  55.  |      324 Ootsima Way               |        ////    ////    ////         |
  56.  |      Loudon, TN 37774              |       //////  //////  //////        |
  57.  ----------------------------------------------------------------------------
  58.  |         Of course, any opinions or suggestions are strictly my own       |
  59.  ----------------------------------------------------------------------------
  60.