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

  1. Path: sparky!uunet!munnari.oz.au!metro!usage!sserve!hhcs.gov.au!champs
  2. From: champs@hhcs.gov.au
  3. Newsgroups: comp.databases.oracle
  4. Subject: RE: MULTIPLE LIST OF VALUES
  5. Message-ID: <1993Jan12.185749.573@hhcs.gov.au>
  6. Date: 12 Jan 93 18:57:49 +1100
  7. Organization: Aust. Dept. Health, Housing and Community Services
  8. Lines: 43
  9.  
  10. Hi there
  11.  
  12. In answer to you question about multiple list of values
  13.  
  14. Your best bet is to use a multi-record block that LOOKS like a list of values.
  15. You can even have it come up when they press <FIND> (or whatever they press to
  16. get a list of values, just use a KEY-LISTVAL trigger on the start field to 
  17. direct them to the multi-record block.  You might want to include a flag field
  18. in the multi-record block to mark which records they have chosen, then whenever
  19. they enter the block you can ensure flagged records are highlighted.
  20.  
  21. To use these multiple values in a subsequent query, create a field in an
  22. invisible utility block to store ALL of their picks simultaneously.  Then in a
  23. PRE-QUERY trigger on the appropriate block, scan through your multi-record
  24. block looking for flagged values and appending them to the field in the
  25. utility block.  You'll have to put a , and some "" around each value as you
  26. append them (you'll have to play around to find the right number of "" to put
  27. around each value so that some make it through the next step).  Now, still in
  28. the PRE-QUERY trigger, you assign the contents of your utility field to the
  29. field you wish to test something like this
  30.  
  31.    :BLOCK_A.FIELD_I_WANT_TO_TEST 
  32.         := '# IN (' || :UTILITY_BLOCK.SELECTION_LIST || ')';
  33.  
  34. Now you can see where you'll have to play with the "" to get the number right.
  35. Rest assured, THIS WILL WORK.  I've done it myself.  I just can't remember
  36. which form I did it in, so I can't look it up.  Perservere and you shall be 
  37. rewarded (I sure felt good when I got it to work).
  38.  
  39. Hope this helps.
  40. Bye for now
  41. -----------------------------------------------------------------------------
  42.     /\       Steven Champness (champs@hhcs.gov.au)
  43.    /  \      Dept Health Housing and Community Services
  44.   /    \     Brisbane Queensland
  45.  /      \     via
  46. /   /    \   Canberra Australia
  47. \  / /   /
  48.  \/ / / /    MACINTOSH SOFTWARE AXIOM : If you need a manual to operate it
  49.   \/ / /                                it wasn't designed properly in the
  50.    \/ /                                 first place !
  51.     \/
  52.  
  53.