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

  1. Newsgroups: comp.databases.sybase
  2. Path: sparky!uunet!st-andy!larry
  3. From: larry@st-andy.uucp (Larry Martell)
  4. Subject: APT rules question
  5. Message-ID: <1992Nov18.175149.5384@st-andy.uucp>
  6. Organization: RMJ Securities Corp.
  7. Date: Wed, 18 Nov 1992 17:51:49 GMT
  8. Lines: 29
  9.  
  10. In APT you can attach rules to fields on your form. When you compile your
  11. rules, APT pulls the rule down from the server, creates a file with the
  12. rule source in it (with a name of the form RLnnnnform_name.fpl, where nnnn 
  13. is the number of the field with the rule attached to it), and compiles that
  14. .fpl into a .fpo. 
  15.  
  16. Now, while this may be fine for a developer working on one form in their own 
  17. directory, it is a major problem in an environment where only project managers 
  18. have access to production directories. The manager must bring up every form in 
  19. APT, compile the rules, and write the form (because compiling the rules creates
  20. a timestamp in the .frm, and it you don't write the form with the new timestamp
  21. the compiled rule will not be executed). This must be done manually. (It is also
  22. a problem if you use SCCS to maintain your forms. After the form has been
  23. checked in, its modes are 444, and your can't save the form.)
  24.  
  25. Has anyone come up with a method for automating this process? I was thinking
  26. along two potential avenues. The first is to programmatically tell APT to do 
  27. its thing (I don't know it this is possible). The second would be a program that
  28. looked into the frm to find out the fields that have rules attached to them, 
  29. and then use dblib calls to get the rules from the server, compile them into
  30. the appropriate named fpo, and updates the timestamp in the frm.
  31.  
  32. Any help in this area will be greatly appreciated.
  33.  
  34. TIA
  35. -- 
  36. Larry Martell                  "Opinions are like assholes; everybody has one, 
  37. 212-668-9478                but nobody wants to look at the other guys"
  38. uunet!st-andy!larry
  39.