Overblog Tous les blogs Top blogs Technologie & Science Tous les blogs Technologie & Science
Editer l'article Suivre ce blog Administration + Créer mon blog
MENU

Articles Oracle Forms, PL/SQL, Java, J2EE

Publicité

Forms : How to dynamically set the MAX LENGTH in a Text item

It is not the first time I see, on forums, questions about how to restrict, at runtime, the number of characters a user can enter in a text item.
The solution consists in understanding that every standard Forms widget has an associated PJC that can be handled by the Set_Custom_Property() built-in..

Concerning a Text Item, the property to use with this method is : MAX_LENGTH

In the following sample, I restrict the user entry to a maximum of 10 characters in the :BL.TXT Text Item:

Set_Custom_Property('BL.TXT', 1, 'MAX_LENGTH', 10 ) ;

Publicité
Retour à l'accueil
Partager cet article
Repost0
Pour être informé des derniers articles, inscrivez vous :
Commenter cet article
V
I will explore this PJC has you mentioned. I'm not familiar with it. Thank you for your explanation.
Répondre