home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / ingres / 2340 < prev    next >
Encoding:
Text File  |  1993-01-21  |  2.0 KB  |  47 lines

  1. Newsgroups: comp.databases.ingres
  2. 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
  3. From: mwp@ms9.mis.semi.harris.com (Mark W. Poole)
  4. Subject: Rows to Table Fields
  5. Date: Thu, 21 Jan 1993 19:28:16 GMT
  6. Nntp-Posting-Host: ms9.mis.semi.harris.com
  7. X-Newsreader: TIN [version 1.1 PL6]
  8. Reply-To: mwp@ms9.mis.semi.harris.com
  9. Organization: Harris Semiconductor
  10. Sender: news@mlb.semi.harris.com
  11. Message-ID: <1993Jan21.192816.28407@mlb.semi.harris.com>
  12. Lines: 33
  13.  
  14.  
  15. I'm working on an ABF/4GL application where a user needs to be
  16. able to update values in a table via a form, but only display the 
  17. values to be updated.  A list of the available columns gets 
  18. displayed, and the user enters a "Y" by the parameters that need
  19. modification. 
  20.  
  21. Once this is done, I want to display a table field with three
  22. columns "Parameter", "Current Value", and "New Value", loading the
  23. chosen parameters into the "Parameter" field, with the corresponding
  24. value in the "Current Value" field.  The first row from the table
  25. would get loaded, edited, and saved, then the next row, and so on.
  26. I made the "Current" and "New" fields varchar, because the data 
  27. may be float, int, or varchar.  I'll convert the type as it
  28. gets loaded in.
  29.  
  30. The problem is that I can't figure out how to load the row values
  31. (only for the parameters chosen) into the appropriate row of the
  32. table field.
  33.  
  34. So far what I've done is perform a query against the target table,
  35. creating a temporary table with only the chosen columns and associated
  36. data.  I then use iicolumns to determine what column names to load into
  37. the "Parameter" field in the table field, along with the column_datatype
  38. into a hidden field.  The hidden field will tell me how to convert the
  39. data back into its original form prior to updating the base table.
  40.  
  41. So....how can I do this "transposition" one row at a time, not knowing
  42. ahead of time what parameters will be chosen??
  43.  
  44. thanks in advance
  45.  
  46. Mark.
  47.