home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / database / oracle / 1519 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.3 KB

  1. Path: sparky!uunet!psinntp!dlogics!hermes.dlogics.com!dlm
  2. From: dlm@hermes.dlogics.com
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: Problems in olsqlforms30 and OCI (in C)
  5. Message-ID: <1992Sep7.115156.1307@hermes.dlogics.com>
  6. Date: 7 Sep 92 11:51:56 CST
  7. References: <1992Sep3.163521.26698@cbfsb.cb.att.com>
  8. Organization: Datalogics, Inc., Chicago, IL
  9. Lines: 38
  10.  
  11. In article <1992Sep3.163521.26698@cbfsb.cb.att.com>, 
  12. colten@cbnewsb.cb.att.com (marc.colten) writes:
  13. > [...]
  14. > 3)  Can you do a query on a detail block and have the relevant
  15. >     information come up in the master block?  It works fine
  16. >     the other way.  I do a query in a master block and it brings
  17. >     up two records in the detail (which it should).  I've tried
  18. >     doing the reverse and it won't work.
  19. >     Is this possible?
  20. It is possible, but in very limited conditions. The limitation is that you must
  21. have only one master corresponding to the set of retrieved detail rows. If you
  22. query the detail on some non-key attribute, you will retrieve rows which may
  23. correspond to several different masters. In this case, which master shall you
  24. display? You might say, "all of them", but there is no key-enforcement
  25. mechanism in sqlforms that can do that; to query the master as if it were a
  26. detail, you will need just ONE key to enforce.
  27.  
  28. If this limitation is okay with you, then just write triggers that treat
  29. KEY-ENTQRY and KEY-EXEQRY in the detail exactly as if they are in the master,
  30. but with the block associations reversed. Sqlforms will not generate this
  31. relationship in the default-block display.
  32. > 4)  Can you do a LOV on a block, or failing that on a non-enterable
  33. >     field?  I just want a list relevant to the data I've queried
  34. >     as an alternative to a second page, which is not really necessary
  35. >     and really slows things down.
  36. You can write KEY-LISTVAL triggers at form, block, or field level. Write a
  37. pop-up block that displays the info you want. Make the key-trigger go to that
  38. block and execute your query. The "<list>" tag will not display on the message
  39. line since you will not be using the built-in list-of-values hook. But you will
  40. have much more flexibility.
  41. --
  42. Dave Mausner, Senior Consultant / Datalogics Inc / Chicago IL / 312-266-4450
  43. dlm@dlogics.com                                 Motto: Just show me the code
  44.