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