home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / database / oracle / 1277 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!centerline!sebastian.centerline.com!user
  3. From: dewey@centerline.com (Devan F. Dewey)
  4. Subject: Re: Forms3 Delete a char of the field data
  5. Message-ID: <dewey-130892083737@sebastian.centerline.com>
  6. Followup-To: comp.databases.oracle
  7. Sender: news@centerline.com
  8. Nntp-Posting-Host: sebastian
  9. Organization: CenterLine Software, Inc.
  10. References: <1992Aug12.162132.278@falcon.navsses.navy.mil>
  11. Date: Thu, 13 Aug 1992 12:37:22 GMT
  12. Lines: 23
  13.  
  14. In article <1992Aug12.162132.278@falcon.navsses.navy.mil>,
  15. huynh@falcon.navsses.navy.mil wrote:
  16. > Greetings,
  17. > I am using sqlforms version 3.0.
  18. > I want the data to be in the form of 'LST1183', but because of the way our data
  19. > bases are set up, the users will enter the HULL in the form of 'LST-1183'. I
  20. > want to delete the "-" sign/char, and also at the time somehow join the 
  21. > LST 1183 together so that it is like the user had just entered 'LST1183' and
  22. > not 'LST-1183'.
  23.  
  24. In a post-field or on-validate-field trigger, which ever you prefer use:
  25.  
  26. select replace(:block.hull,'-','') into :block.hull from system.dual;
  27.  
  28. This will do exactly what you are looking for.
  29.                              
  30.                Devan F. Dewey | Senior Systems Analyst
  31.           CenterLine Software | dewey@centerline.com
  32.             10 Fawcett Street | "Leme esplain - no dere is
  33.           Cambridge, MA 02138 | too much. Leme sum up."
  34.                                        -Inigo Montoya
  35.