Required Entry
Michael Lee
mcl_systems@bc.sympatico.ca
Thu, 16 Sep 1999 07:24:33 -0700
What Frank has here is perfect for entry mode, but if the situation is as Bob
Deskin suggests then you will get this message everytime you are in that
field-even if there is data already in the field.
If the situation is that the user finds data and then modifies it and you want
to force entry in any blank EXISTING field data you might want to modify Frank's
code slightly as follows:
Procedure Input Field1
Begin
If 0=size(fieldtext) and oldvalue(field1) = ' ' ; <-- or NULL, but I'm
not sure
; of the syntax...
then error 'Field1 is a required field'
End
Michael Lee
MCL Systems Inc.
fflynn@newfoundlandpower.com wrote:
> By using a PANEL mode screen and Block Transfer control structures this
> should work by coding INPUT procedures for each field on the screen... such
> as:
>
> Procedure Input Field1
> Begin
> If 0=size(fieldtext)
> then error 'Field1 is a required field'
> End
>
> The Input procedure for all fields on a panel mode screen should be
> executed... regardless of containing data or not.
>
> Frank
>
> > -----Original Message-----
> > From: Nick Tippler [SMTP:NT204@cus.cam.ac.uk]
> > Sent: Thursday, September 16, 1999 2:38 PM
> > To: powerh-l@lists.swau.edu
> > Subject: Required Entry
> >
> > Morning All
> >
> > I have a Quick screen that reads primary and secondary records and
> > displays the fields I want to populate or change. Some fields will be
> > populated, others null, depending on previous actions.
> >
> > How can I make it go through all the fields and require entry for any
> > missing data while still honouring the EDIT requirements? I've tried
> > PANEL, BLOCK TRANSFER and PROMPT in various combinations, but none does
> > what I want. I'm running 8.13D1 on HP-UX D10.20.
> >
> > Regards
> >
> > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > +
> > + Nick Tippler nt204@cam.ac.uk
> > + Registrar, Faculty of Education, tel +44 1223 507145
> > + University of Cambridge, fax +44 1223 507140
> > + Homerton College,
> > + Cambridge CB2 2PH
> > +
> > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> > = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> > =
> > Subscribe: "subscribe powerh-l" in message body to
> > majordomo@lists.swau.edu
> > Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
> > powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
> > This list is closed, thus to post to the list, you must be a subscriber.
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
> Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
> powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
> This list is closed, thus to post to the list, you must be a subscriber.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.