View previous topic :: View next topic
|
Author |
Message |
heredev
New User
Joined: 30 Mar 2008 Posts: 3 Location: kolkata
|
|
|
|
how to show default editable value at an input field of a MFS screen when it is thrown for the first time.
example:
ENTER ROLL NO: 000000
here 000000 is the default value at the ROLL NO field. User can update the value by his ROLL NO. |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
Try this - your position on the screen probably is not this, but always remember to allow for your attribute bytes.
DFLD POS=(15,42), LTH=6,ATTR=(MOD,NUM)
input
MFLD ROLL,LTH=6,JUST=R,FILL=C'0'
output
MFLD ROLL,LTH=8,ATTR=YES |
|
Back to top |
|
|
heredev
New User
Joined: 30 Mar 2008 Posts: 3 Location: kolkata
|
|
|
|
Thanks for your help but the code did not work.
What i understand from the code is that - (correct me if i am wrong)
As the FILL=C'0' in specified for the input area, if no value is entered on the screen and ENTER is presed, zero will go to the program.
But objective is to show the default value when the scren is thrown for the first time.
I would like to state another example in this regard,
When the screen is thrown for the first time this will be displayed:
ENTER EMAIL: _____________@ibmmainframes.com
If i update the field it will become:
ENTER EMAIL: heredev______@ibmmainframes.com
So the UNDERSCORE is the default value for that input field and also is updatable. |
|
Back to top |
|
|
|