Re: Forms 3.0 - How do YOU do this?

From: Jennifer R. Amon <cc312_at_cleveland.Freenet.Edu>
Date: 16 Dec 1992 14:46:14 GMT
Message-ID: <1gnffmINN138_at_usenet.INS.CWRU.Edu>


In a previous article, bamon_at_ocvaxc.cc.oberlin.edu (ME) says:

>I'm once again faced with a forms change which is always a pain:
>
>Project : The users should not be able to modify (without some special
> action on their part) field_b in block_1 when field_a is
> non-null.
>
>This boils down to "don't let them do it by default, but give them a way
>around the default."
>
>In the past, I've set some global when they attempt to make the change, and
>then I reset it to something else if they press commit in response to a
>"do you really want to do this?" prompt. Then I reset it again after the
>commit.
>
>It works, but it's always a real trick keeping track of and properly
>resetting the global variable.
>
>Does anybody have a better way to do this?
>

I obviously did not explain the problem well, because I have gotten several responses about using the set_field('block.field',UPDATEABLE), etc. I am already using set_field.

My problem is that I must wait until the user tries to make a change, I must then prompt the user, e.g. "Do you really want to change this?" Then I must accept a YES/NO answer and act accordingly.

In the past I have set a global variable, prompted the user, and then used COMMIT to mean YES, and EXIT/CANCEL to mean NO. This works, but the handling of the COMMIT and EXIT/CANCEL key triggers gets to be quite complicated when there are several of these "prompt the user" spots in the form.

The question is, does anybody else do this some other way that is less messy?

Thanks to all who answered with the set_field information.

bamon_at_ocvaxc.cc.oberlin.edu


Jennifer R. Amon     FREENET: aa1190_at_freenet.lorain.oberlin.edu
Oberlin College      FREENET: cc312_at_cleveland.freenet.edu
Oberlin, OH 44074 *INTERNET: bamon_at_ocvaxc.cc.oberlin.edu PH: (216) 775-6987 BITNET: bamon%ocvaxc.cc.oberlin.edu_at_ocvaxc.bitnet FAX: (216) 775-8573 *use the internet address if possible
-- 
Jennifer R. Amon       FREENET: aa1190_at_freenet.lorain.oberlin.edu
Analyst/Programmer     FREENET: cc312_at_cleveland.freenet.edu
Oberlin College       INTERNET: bamon_at_ocvaxc.cc.oberlin.edu
Oberlin, OH 44074       BITNET: bamon_at_ocvaxc.bitnet
Received on Wed Dec 16 1992 - 15:46:14 CET

Original text of this message