home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / oracle / 2263 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  3.2 KB

  1. Path: sparky!uunet!ogicse!flop.ENGR.ORST.EDU!gaia.ucs.orst.edu!talon.UCS.ORST.EDU!news
  2. From: mickel@OES.ORST.EDU (Paul M. Mickel)
  3. Newsgroups: comp.databases.oracle
  4. Subject: sqlforms30 questions
  5. Message-ID: <1ekca5INNjsq@talon.UCS.ORST.EDU>
  6. Date: 21 Nov 92 04:01:09 GMT
  7. Article-I.D.: talon.1ekca5INNjsq
  8. Distribution: world
  9. Organization: Oregon Extension Service, Oregon State University, Corvallis, Or.
  10. Lines: 56
  11. NNTP-Posting-Host: oes.orst.edu
  12.  
  13. Hello All,
  14.  
  15.  
  16. First of, I'd like to thank all the people that responded to the question I
  17. had concerning SQR. The answer that was most useful to us came from 
  18. richards@sequent, who suggested that we place the resulting time field into
  19. another variable to extract the time for the report. After talking to the 
  20. vendor, it seems that this is the only do this.
  21.  
  22. Second, I have another question I'd like to pose to the group. We are attempt-
  23. ing to write some generic reports that will process input data depending on
  24. which field is queried. We are using SQR to do this, which is fairly simple if
  25. the report can determine what type of data is being passed in.
  26.  
  27. However, our problem arises between integrating the two parts. Ideally, we'd
  28. like to pass whatever is in the field during the "ENTER-QUERY" mode in
  29. sqlforms30. However, it seems that it won't allow us to touch this field after
  30. this mode has been entered. Another approach we have attempted is
  31. to base the query off any field, and dump the resulting key fields to a
  32. text file, which is then read in by SQR. However, our problem with this is
  33. that the "on-validate" triggers seem to fire for only those records displayed,
  34. even though a user query may return more records than can be displayed in the
  35. block (we are dealing with a multi-record block). While it is possible to
  36. navigate using KEY-DOWN, and add it to the text file, we can't be guaranteed
  37. the reliability of this method. I personally tried a test using the 
  38. "POST-QUERY" trigger to do this, but the results are the same as using
  39. "ON-VALIDATE-FIELD" trigger.
  40.  
  41. An example would be that I retrieve 11 records in a query, but only the 
  42. first 10 are displayed. The text file then contains the entries for the
  43. first 10 records retrieved, until I navigate to the 11th record
  44. by hand (pressing KEY-DOWN, for instance). After navigation, there are 11
  45. output in the text file, which is sent to SQR. Our goal here is to have it so 
  46. that *all* 11 get inserted into this text file, not just the ones current-
  47. ly displayed, without having to press KEY-DOWN.
  48.  
  49. So, the questions are:
  50.  
  51. 0. Is this a correct understanding of how validation is done for a block??
  52. 1. Are there suggestions to get around this kind of problem??
  53. 2. Is changing the validation unit good enough to solve this problem??
  54.  
  55. We have looked thru our documentation, with little success. This would not be
  56. much of a problem, except that, being a production database, this is a
  57. very common occurance.
  58.  
  59. As usual, I will summarize to the grp (please forgive the lapse time, as
  60. I stay extremely busy). Thanks in advance.
  61.  
  62. -pmm
  63.  
  64. -- 
  65. Paul M. Mickel                     Internet:mickel@oes.orst.edu
  66. Sysadmin, Oregon Extension Service       Corvallis, OR 97331
  67. Database Programmer, Teledyne Wah Chang    Albany, OR 
  68. Disclaimer: Neither employer has *ever* claimed any of my opinions.
  69.