home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.ingres
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!bogus.sura.net!darwin.sura.net!mlb.semi.harris.com!ms9.mis.semi.harris.com!mwp
- From: mwp@ms9.mis.semi.harris.com (Mark W. Poole)
- Subject: Rows to Table Fields
- Date: Thu, 21 Jan 1993 19:28:16 GMT
- Nntp-Posting-Host: ms9.mis.semi.harris.com
- X-Newsreader: TIN [version 1.1 PL6]
- Reply-To: mwp@ms9.mis.semi.harris.com
- Organization: Harris Semiconductor
- Sender: news@mlb.semi.harris.com
- Message-ID: <1993Jan21.192816.28407@mlb.semi.harris.com>
- Lines: 33
-
-
- I'm working on an ABF/4GL application where a user needs to be
- able to update values in a table via a form, but only display the
- values to be updated. A list of the available columns gets
- displayed, and the user enters a "Y" by the parameters that need
- modification.
-
- Once this is done, I want to display a table field with three
- columns "Parameter", "Current Value", and "New Value", loading the
- chosen parameters into the "Parameter" field, with the corresponding
- value in the "Current Value" field. The first row from the table
- would get loaded, edited, and saved, then the next row, and so on.
- I made the "Current" and "New" fields varchar, because the data
- may be float, int, or varchar. I'll convert the type as it
- gets loaded in.
-
- The problem is that I can't figure out how to load the row values
- (only for the parameters chosen) into the appropriate row of the
- table field.
-
- So far what I've done is perform a query against the target table,
- creating a temporary table with only the chosen columns and associated
- data. I then use iicolumns to determine what column names to load into
- the "Parameter" field in the table field, along with the column_datatype
- into a hidden field. The hidden field will tell me how to convert the
- data back into its original form prior to updating the base table.
-
- So....how can I do this "transposition" one row at a time, not knowing
- ahead of time what parameters will be chosen??
-
- thanks in advance
-
- Mark.
-