Consultor Eletrônico



Kbase P126652: SELECTION-TEXT attribute of PASSWORD FILL-IN returns empty string.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   18/07/2008
Status: Unverified

SYMPTOM(s):

FILL-IN has password-field attribute enabled.

Trying to determine if and which part of the data in a password field is "selected" (highlighted).

SELECTION-TEXT attribute of a PASSWORD field returns an empty string when queried, even when the field contains data.

FACT(s) (Environment):

Windows
OpenEdge 10.x

CAUSE:

This is expected behavior. A PASSWORD field has special properties, eg. it is not possible to copy and paste its contents.

FIX:

The SELECTION-START and SELECTION-END attributes of the FILL-IN widget can be used to determine if and which part of the entered password string is "selected" without revealing its actual contents. The SELECTION-START and SELECTION-END attributes will return the unknown value ("?") if the contents of password FILL-IN is not selected.