Re: EntryField and MaxLength

Stephane ALLIZON (sallizon@canal-plus.fr)
Wed, 02 Dec 1998 15:37:01 +0100

To summary all those informations :

1) Ok, "reach" MaxLength doesn't generate InteractionCompleted

2) Meaning of "reaches MaxLength" :

> >Moreover, MHEG-5 states that the EntryFieldFull event is generated when the
> >number of characters in the EntryField "reaches MaxLength". This likely
> >means that it is generated only once, when the number of chars was not
> >MaxLength and becomes MaxLength.

I agree with this description but we must add the following modification for UK

profile (due to delete bahaviour).
The EntryFieldFull event is generated only when the number of chars was
strictily less than MaxLength and becomes MaxLength.

3) Emmanuel's proposition
This proposition is to generate a EntryFieldFull each time the numbers of chars

are equal or greater than MaxLength. This allow a better control when
overstepping MaxLength. More events are generated. I attach a document with
some
examples of engine behaviour with the actual specification and with this
proposition.
I think this modification should be add in the corrigendum.

4) Not generate EntryFieldFull event
The MHEG-5 IS says : "A SetData action should not generate EntryFieldFull
event."

I suggest to add : "A SetInteractionStatus action should not generate
EntryFieldFull event."
This is to avoid confusion : when the interaction is set
(SetInteractionStatus(,True)), if nb of chars in TextData are greater than
MaxLength, EntryFieldFull event is not generate.

5) Chars over MaxLength.
What is the behaviour when user input char over the MaxLength limit ?
5.1) When a char is input, TextData is modified. The number of chars could
be greater than MaxLength.
5.2) When a char is input, TextData is not modified.
5.3) When a char is input, TextData is modified but visual representation
is
limited by MaxLength.

6) MaxLength < 0
This case is the same as MaxLength = 0.

Thanks for your comments.

Stephane