home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / oracle / 2525 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  2.8 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!usenet.ins.cwru.edu!cleveland.Freenet.Edu!cc312
  2. From: cc312@cleveland.Freenet.Edu (Jennifer R. Amon)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: Forms 3.0 - How do YOU do this?
  5. Date: 16 Dec 1992 14:46:14 GMT
  6. Organization: Case Western Reserve University, Cleveland, OH (USA)
  7. Lines: 54
  8. Message-ID: <1gnffmINN138@usenet.INS.CWRU.Edu>
  9. References: <1992Dec10.140524.1@ocvaxc.cc.oberlin.edu>
  10. Reply-To: cc312@cleveland.Freenet.Edu (Jennifer R. Amon)
  11. NNTP-Posting-Host: hela.ins.cwru.edu
  12.  
  13.  
  14. In a previous article, bamon@ocvaxc.cc.oberlin.edu (ME) says:
  15.  
  16. >I'm once again faced with a forms change which is always a pain:
  17. >
  18. >Project : The users should not be able to modify (without some special
  19. >          action on their part) field_b in block_1 when field_a is
  20. >          non-null.
  21. >
  22. >This boils down to "don't let them do it by default, but give them a way
  23. >around the default."
  24. >
  25. >In the past, I've set some global when they attempt to make the change, and
  26. >then I reset it to something else if they press commit in response to a
  27. >"do you really want to do this?" prompt. Then I reset it again after the
  28. >commit.
  29. >
  30. >It works, but it's always a real trick keeping track of and properly
  31. >resetting the global variable.
  32. >
  33. >Does anybody have a better way to do this?
  34. >
  35. I obviously did not explain the problem well, because I have gotten
  36. several responses about using the set_field('block.field',UPDATEABLE),
  37. etc. I am already using set_field.
  38.  
  39. My problem is that I must wait until the user tries to make a change,
  40. I must then prompt the user, e.g. "Do you really want to change this?"
  41. Then I must accept a YES/NO answer and act accordingly.
  42.  
  43. In the past I have set a global variable, prompted the user, and
  44. then used COMMIT to mean YES, and EXIT/CANCEL to mean NO. This works,
  45. but the handling of the COMMIT and EXIT/CANCEL key triggers gets
  46. to be quite complicated when there are several of these "prompt the user"
  47. spots in the form.
  48.  
  49. The question is, does anybody else do this some other way that is less
  50. messy?
  51.  
  52. Thanks to all who answered with the set_field information.
  53.  
  54. bamon@ocvaxc.cc.oberlin.edu
  55. _____________________________________________________________________
  56. Jennifer R. Amon     FREENET: aa1190@freenet.lorain.oberlin.edu
  57. Oberlin College      FREENET: cc312@cleveland.freenet.edu
  58. Oberlin, OH 44074   *INTERNET: bamon@ocvaxc.cc.oberlin.edu
  59. PH: (216) 775-6987   BITNET: bamon%ocvaxc.cc.oberlin.edu@ocvaxc.bitnet
  60. FAX: (216) 775-8573  *use the internet address if possible
  61. _____________________________________________________________________
  62. -- 
  63. Jennifer R. Amon       FREENET: aa1190@freenet.lorain.oberlin.edu
  64. Analyst/Programmer     FREENET: cc312@cleveland.freenet.edu
  65. Oberlin College       INTERNET: bamon@ocvaxc.cc.oberlin.edu
  66. Oberlin, OH 44074       BITNET: bamon@ocvaxc.bitnet
  67.