home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / database / ingres / 1161 < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.6 KB  |  38 lines

  1. Newsgroups: comp.databases.ingres
  2. Path: sparky!uunet!wupost!darwin.sura.net!uvaarpa!cv3.cv.nrao.edu!mail-to-news-gateway
  3. From: drcoles@somnet.sandia.gov (Dwight R Coles)
  4. Subject: Re: Dynamic FRS
  5. Message-ID: <9208172154.AA18712@somnet.Sandia.GOV>
  6. Sender: root@nrao.edu (Operator)
  7. Organization: National Radio Astronomy Observatory
  8. Date: Mon, 17 Aug 1992 21:54:03 GMT
  9. Lines: 27
  10.  
  11. >  (Mark Jaeger replies)
  12. > (Ron Haukenfrers) writes:
  13. > > 
  14. > > Does anyone know of a way to dynamically create a field in an ingres form?
  15. > > I would like to create a field at runtime because it's datatype, length
  16. > > and attributes are all derived at runtime.
  17. >
  18. > This question has certainly come up before, and the sad answer is...no. 
  19. > With standard character-cell-based FRS, you just can't do it.  You might
  20. > be able to reverse engineer the forms system catalogs (ii_object,
  21. > ii_forms, ii_fields, and ii_trim), and create a form on the fly that
  22. > way, but it's probably a whole lot of work and not certain to succeed.
  23. Yep, this CAN be done!  I reverse engineered the FRS system catalogs
  24. enough to build a dynamic QBF capability for engineering data display,
  25. where I didn't know until run time what the user wanted to display.
  26. It is a lot of work, but surprisingly, it ran quickly.  In addition, it
  27. had the capability of printing nicely formatted reports, based upon the
  28. same meta-data about the fields/columns.  
  29.  
  30. You don't get to use compiled forms, because you end up writing new
  31. form definition data into the system catalogs (win some, loose some).
  32.  
  33. If you need the reverse-engineering information about what is where, 
  34. let me know.
  35.  
  36. Dwight Coles    drcoles@sandia.gov
  37.