03-17-2009 12:37 PM
Hi all:
I'd like to change the value of the text fields, for example , there are two text fields , one for username, the other is password. but the username has a fixed value. how could I do this? How can I get the reference of the text field of username? could you please give an example?
03-17-2009 1:10 PM
sorry, I didn't put my question correctly.
I mean how to put the value into the textfield of the username .
for example, the value is Jim, how can I pass the value to the textfield of the username.
03-17-2009 12:44 PM
Hi,
in the selection screen when u display both the fields
make sure that the username field is greyed out so, the user can't modify the name or the field value.
code.
Loop at screen.
if screen-name = 'USRNAME'. " screen name provided to the username field
SCREEN-INPUT = '0'.
modify screen.
endloop.
thanks
03-17-2009 1:10 PM
sorry, I didn't put my question correctly.
I mean how to put the value into the textfield of the username .
for example, the value is Jim, how can I pass the value to the textfield of the username.
03-17-2009 1:20 PM
You need to create 2 labels and two text fields totally.
Lables for dispalying Username and Password as text.
Text fields for actually taking the input from the user.
You need to create a work area for both the fields and compare the same with the database table.
I think you are working for authentication of username & password.
If the actual username and password is stored in a database table, create an internal table and get each row in to another work area and compare it with the above work area which has the username and password fields
Hope it is useful.