home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.ingres
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!sgiblab!rtech!ingres!mikes
- From: mikes@Ingres.COM (Mike Schilling)
- Subject: Re: ABF question
- Message-ID: <1993Jan8.170749.23876@pony.Ingres.COM>
- References: <1993Jan7.170744.71@ittpub.nl>
- Date: 8 Jan 93 17:07:49 GMT
- Lines: 32
-
- From article <1993Jan7.170744.71@ittpub.nl>, by hans@ittpub.nl:
- > I am using ABF to maintain a tabel of items. The user should be able to add
- > and delete these items, and modify most of the information associated with
- > the item.
- >
- > Each items has a key value. I want to prevent the user from modifying this
- > key value. Defining the column DISPLAYONLY is no good, for the user has to be
- > able to specify the value when adding new items. By the time I catch the error
- > I cannot change it back, as the original value is lost.
- >
- > Is there any way I can:
- >
- > a. Allow creation and deletion of a column in a table field, without also
- > allowing modification?
- > b. Have access to the old value, so I can change it back?
- >
- > Or is there any other way of doing what I want?
- >
- > Thanks in advance.
- >
- > Hans Wieldraaijer, ITT Publitec, Amsterdam, Netherlands.
- > E-mail: hans@ittpub.nl
- Create the tablefield with a hidden column, and put the key value there
- as well as in a visible column. When unloading the tablefield, you can
- catch the change. (Or you can use a column activation to catch it
- immediately.) If you have Vision available, look at the code it
- generates for an update frame; it uses this technique exactly.
- ----------------------------------------------------------------------------
- mikes@ingres.com = Mike Schilling, INGRES, An ASK Group Company, Alameda, CA
- Just machines that make big decisions,
- Programmed by fellows with compassion and vision. -- Donald Fagen, "IGY"
-
-