Consultor Eletrônico



Kbase 11241: FORMAT phrase HELP VALIDATE etc. with arrays , extents
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
FORMAT phrase HELP VALIDATE etc. with arrays , extents

If you reference individual extents of an array field, you will not
get the format phrase options, such as HELP, BLANK, VALIDATE.
Bug number: 91-05-30-006
Status: Not A Bug!
-----------------------------------------------------------------------
Short Description: HELP WITH ARRAY FIELDS.

The problem is that is using a form with an array field such as
mnth-sales in this example the dictionary validation or 4GL HELP
format phrase will not be used.
If the form statement is commented out then the program
works fine. To reproduce add a validation and help to the the
dictionary for Mnth-sales, if the program is run with a form statement
neither of the validation or help will be evaluated when entering
data, remove the form and it works fine.

clyde note (10/30/91): Customer has a reasonable complaint, but we
simply don't support what they want.
1) form <arrayfield>. does not automatically put VALIDATE in
the .r because that would cause too much .r code
2) update array[i] doesn't create validate if the compiler sees
that the array[i] will be "MAPPED" to an array field already
in the frame because the compiler doesn't know which field to
put the validate on.
Will add bug that doc should contain
reference about validation criteria not being carried down from schema
automatically for array fields.

Workaround information:
Somewhere in the program after the form stmt, put:
if false then update mnth-sales.
This will put VALIDATE on every element of the array.

Bug number: 88-05-23-012
Short Description: HELP ON FIELDS WITH MULTIPLE EXTENTS

The help message in the dictionary does not work when trying to update
an array with variable subscript. Steps taken:

1. get into the dictionary
2. add a field "newf" as char array 4 with a help message in the
customer file.
3. Run the procedure below.

You will not see the help message at the bottom of the screen (or
anywhere). This only happens when trying to update an array with a
variable subscript.

this problem has two work arounds:
if false then prompt newf[1].
or
update newf[i] validate (xxxx,xxx) with frame x.

To fix it would increase code size and r-code size much more than
the feature would be worth.

Bug number: 91-08-20-010
Short Description: GUI - FORM STATEMENT

help is not displayed.
this program will not display the help message when executed.

msz -- I am closing this -- variable subscripted fields do not get
any of the modifiers supplied with them (help validate format...) when
they wind up being mapped to some underlying constant subscripted
field. (if there are no corresponding constant subscripted fields in
the same frame to map to, then they become a real field on their own
and all the qualifiers do apply). In the mapped case, the qualifiers
for the underlying constant subscript field are what apply and the
mapped field itself is never used for anything, hence its modifiers
are ignored.. i.e. the const subscript fields need the help string.

Progress Software Technical Support Note # 11241