Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how could I get the reference of the text field

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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.