home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / database / oracle / 1523 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.3 KB  |  50 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!usc!cs.utexas.edu!sun-barr!ames!pacbell.com!att-out!cbfsb!cbnewsb.cb.att.com!colten
  3. From: colten@cbnewsb.cb.att.com (marc.colten)
  4. Subject: Re: Problems in olsqlforms30 and OCI (in C)
  5. Message-ID: <1992Sep8.122538.14511@cbfsb.cb.att.com>
  6. Summary: believe I've already tried that
  7. Sender: news@cbfsb.cb.att.com
  8. Organization: AT&T
  9. References: <1992Sep3.163521.26698@cbfsb.cb.att.com> <1992Sep7.115156.1307@hermes.dlogics.com>
  10. Date: Tue, 8 Sep 1992 12:25:38 GMT
  11. Lines: 37
  12.  
  13. In article <1992Sep7.115156.1307@hermes.dlogics.com>, dlm@hermes.dlogics.com writes:
  14. > In article <1992Sep3.163521.26698@cbfsb.cb.att.com>, 
  15. > colten@cbnewsb.cb.att.com (marc.colten) writes:
  16. > > [...]
  17. > > 
  18. > > 3)  Can you do a query on a detail block and have the relevant
  19. > >     information come up in the master block?  It works fine
  20. > >     the other way.  I do a query in a master block and it brings
  21. > >     up two records in the detail (which it should).  I've tried
  22. > >     doing the reverse and it won't work.
  23. > > 
  24. > >     Is this possible?
  25. > > 
  26. > It is possible, but in very limited conditions. The limitation is that you must
  27. > have only one master corresponding to the set of retrieved detail rows. If you
  28. > query the detail on some non-key attribute, you will retrieve rows which may
  29. > correspond to several different masters. In this case, which master shall you
  30. > display? You might say, "all of them", but there is no key-enforcement
  31. > mechanism in sqlforms that can do that; to query the master as if it were a
  32. > detail, you will need just ONE key to enforce.
  33. > If this limitation is okay with you, then just write triggers that treat
  34. > KEY-ENTQRY and KEY-EXEQRY in the detail exactly as if they are in the master,
  35. > but with the block associations reversed. Sqlforms will not generate this
  36. > relationship in the default-block display.
  37.  
  38. I believe I've already tried this.  The problem is, the trigger calls
  39. functions that are geared to the master-detail relationship going one
  40. way.  I haven't been able to find equivalences to "clear-<master>-details"
  41. or "query-<master>-details".
  42.  
  43. If I do a "go_block(master)" and then a query, it wipes out the
  44. values of the master block and waits for input.  I can't find a
  45. function that takes the current values and runs with them.
  46.  
  47. marc colten
  48.  
  49.