home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / oracle / 2714 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.7 KB

  1. Path: sparky!uunet!caen!destroyer!news.itd.umich.edu!pha
  2. From: pha@citi.umich.edu (Paul H. Anderson)
  3. Newsgroups: comp.databases.oracle
  4. Subject: PL/SQL and FORMS30 questions
  5. Date: 7 Jan 1993 21:33:39 GMT
  6. Organization: Center for Information Technology Intergration, University of Michigan
  7. Lines: 30
  8. Distribution: world
  9. Message-ID: <1ii7jjINNoi3@terminator.rs.itd.umich.edu>
  10. NNTP-Posting-Host: antioch.ifs.umich.edu
  11. Keywords: triggers unique keys forms
  12.  
  13. Howdy,
  14.  
  15. I have several problems with sqlforms30 that are really hanging me up:
  16.  
  17. 1) setting the date in a displayed, but non-enterable field.
  18.  
  19.    I have a pre-record trigger that is attempting to automatically
  20.    store the date of entry into a base table field.  If I convert the
  21.    date, and store it in some other enterable field (e.g. a character
  22.    comment field), etc, it shows up. (hence the trigger is working like I want).
  23.    Likewise, if I set the field to be enterable, I can have it's value
  24.    appear there (override any default value).
  25.    However, when I do the fairly obvious, which is to set a displayed,
  26.    but non-enterable date field equal to sysdate, nothing shows up.
  27.    How can I do this?
  28.  
  29. 2) getting a unique sequence number into a pl/sql local variable.
  30.  
  31.    I need to use a trigger to call a host program with a unique
  32.    number.  To do this, I need to get the unique number into a
  33.    local pl/sql variable.  I can use insert into <record> values (seq.nextval)
  34.    to put it into the record, but I don't know how to get the record
  35.    back out (since there are multiple forms users).  Apparently, the
  36.    implementation context of the sequence makes it difficult for a
  37.    trigger to get the value.  Any clues?
  38.  
  39. Thanks greatly for any advice!
  40.  
  41. Paul Anderson
  42. pha@umich.edu
  43.