home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / sybase / 369 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.9 KB  |  43 lines

  1. Newsgroups: comp.databases.sybase
  2. Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!seunet!enea!sommar
  3. From: sommar@enea.se (Erland Sommarskog)
  4. Subject: Re: APT rules question
  5. Message-ID: <1992Nov20.091237.21024@enea.se>
  6. Organization: Enea Data AB
  7. References: <1992Nov18.175149.5384@st-andy.uucp>
  8. Date: Fri, 20 Nov 1992 09:12:37 GMT
  9. Lines: 32
  10.  
  11. Larry Martell (larry@st-andy.uucp) writes:
  12. >In APT you can attach rules to fields on your form. When you compile your
  13. >rules, APT pulls the rule down from the server, creates a file with the
  14. >rule source in it (with a name of the form RLnnnnform_name.fpl, where nnnn
  15. >is the number of the field with the rule attached to it), and compiles that
  16. >.fpl into a .fpo.
  17.  
  18. Just because you can do it, doesn't mean you have to do it. And
  19. the completely akward process also mean that is quite useless.
  20. And is really "The value does not pass the server rule, please
  21. reenter", something you want to shove down the throat of your
  22. users?
  23.  
  24. The way I see it, rules and triggers are means to protect the
  25. database from programmers' bugs, not to against the user's
  26. erroneous data. Their data should be checked by the application
  27. which is competent to give good error messages which the database
  28. seldom is.
  29.  
  30. >(It is also a problem if you use SCCS to maintain your
  31. >forms. After the form has been checked in, its modes are 444, and your
  32. >can't save the form.)
  33.  
  34. Did you try this? At least under version 4, I found it a major
  35. nuisance that APT didn't give a damn about file protection, but
  36. only looked at the directory. (Or rather APT renamed to .frm.old
  37. and created a new file.) So thus, when you thought you were changing
  38. in the form in the working directory, you were actually modifying
  39. the project's common reference copy. Whether this behaviour remains
  40. in V5, I don't recall off-hand, but I have few illusions about APT.
  41. -- 
  42. Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se
  43.