fieldmarking question?

Thomson, Martyn EDUC:EX Martyn.Thomson@gems1.gov.bc.ca
Thu, 15 May 2003 11:06:10 -0700


Correction - there are field ID numbers but they are masked by the labels
starting in the same position.

-----Original Message-----
From: Thomson, Martyn EDUC:EX [mailto:Martyn.Thomson@gems1.gov.bc.ca]
Sent: May 15, 2003 10:55 AM
To: 'Michael Lee'
Cc: POWERHOUSE NEW (E-mail)
Subject: RE: fieldmarking question?


Because the screen uses fieldmarking, no field ID numbers were put on the
screen, so I assumed I couldn't use that technique. However a quick test
shows that the ID numbers are implied anyway and it works! Thanks for the
suggestion. 

-----Original Message-----
From: Michael Lee [mailto:Michael.Lee@mclsystemsinc.com]
Sent: May 15, 2003 10:32 AM
To: Thomson, Martyn EDUC:EX
Cc: POWERHOUSE NEW (E-mail)
Subject: Re: fieldmarking question?


Hi Martyn,

Quick generates default designer procedures for fields which are not
accessible to the
program BUT are which can be overridden. The designer procedure is tied to
the ID # of the
field in question so if field X has id # 03 then the following Quick code is
generated

PROCEDURE DESIGNER 03
ACCEPT X

You can override this by entering in your own designer procedure as follows:
PROCEDURE DESIGNER 03
BEGIN
   IF <whatevercondition>
   THEN ACCEPT X
   ELSE DISPLAY X
END

In order for the ACCEPT to work though you would have to remove the
"NOCHANGE" option.

In order to create a designer procedure for X that is similar to 'nochange'
but which
doesn't give the same error message you would enter the following:


PROCEDURE DESIGNER 03
BEGIN
   DISPLAY X
END

Regards,

Michael Lee
MCL Systems Inc.


"Thomson, Martyn EDUC:EX" wrote:

> I have a screen that uses the fieldmark action -
>
> actionmenu label "Modify" action fieldmark menukey "M"
>
> It enables the client to arrow from label to label and then hit ENTER to
> access the field they wish to change.
> If the field statement has the "nochange" option, they get the message
> "Can't change the specified field(s)".
> My question is - is there any way I can make access to a field conditional
> in this scenario (i.e "nochange if..."
> aka "entry if")?
> I can't see a field option or anywhere I could add code to intercept this.
> There's no generated modify procedure
> I could tweak. I could put a test in the input procedure, but I want to
make
> the field appear unavailable rather
> than generate an error message after the event.
> Is this at all possible?? is there an alternative approach?
> The only alternative I see and want to avoid is to move everything but the
> key input field to a subscreen and
> have 2 lookalike versions of the subscreen - one for each result of the
> conditional test.
> Martyn Thomson
> 7.10.G1 on OpenVMS AXP v7.2-1, Oracle Rdb V7.0-5.
> = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Mailing list: powerh-l@lists.swau.edu
> Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
> Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request@lists.swau.edu
> http://lists.swau.edu/mailman/listinfo/powerh-l
> This list is closed, thus to post to the list you must be a subscriber.

= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.swau.edu
Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request@lists.swau.edu
http://lists.swau.edu/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.