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