03-25-2008 10:09 AM
HOW WE WILL DISABLE A TEXT FIELD WHEN WE R CALLIN A SUBSCREEN , FIELD IS INSIDE THE SUBSCREEN.
03-25-2008 10:22 AM
Hi Rahul
First of all identify when you want the text field to be hidden....
There may definitely be multiple options to do it...
Consider the following
You will be going to subscreen from a main screen..immediately before "CALL SUBSCREEN XXX ' statement write a module and set a global variable = 'X' if you need the text field to be hidden...
In the subscreen PBO'
Write the code
If the variable = 'X'.
Loop at screen.
If screen-name = 'TEXT_FIELD'.
"name of the text field in capslock
screen-active = 0.
Modify screen.
endif.
endloop.
Pls check and revert..reward if useful
Regards
Byju
03-25-2008 10:18 AM
Hi,
you have to assign that fileld to a different group and on based on the condition u should change its screen attribute.
Like
loop at screen.
if screen-group1 = 'G1'.
screen-active = 1.
screen-input = 0.
screen-output = 1.
screen-invisible = 0.
modify screen.
endif.
if screen-group1 = 'G2'.
screen-active = 1.
screen-input = 0.
screen-output = 1.
screen-invisible = 0.
modify screen.
endif.
if screen-group1 = 'G3'.
screen-active = 0.
screen-input = 0.
screen-output = 0.
screen-invisible = 1.
modify screen.
endif.
if screen-group1 = 'G4'.
screen-active = 1.
screen-input = 1.
screen-output = 1.
screen-invisible = 0.
modify screen.
endif.
if screen-group1 = 'G5'.
screen-active = 0.
screen-input = 0.
screen-output = 0.
screen-invisible = 1.
modify screen.
endif.
endloop.
endif.
***************************************************
if ok_code_1 = 'CRT'.
loop at screen.
if screen-group1 = 'G1'.
screen-active = 1.
screen-input = 1.
screen-output = 1.
screen-invisible = 0.
modify screen.
endif.
if screen-group1 = 'G2'.
screen-active = 1.
screen-input = 1.
screen-output = 1.
screen-invisible = 0.
modify screen.
endif.
if screen-group1 = 'G3'.
screen-active = 1.
screen-input = 1.
screen-output = 1.
screen-invisible = 0.
modify screen.
endif.
if screen-group1 = 'G4'.
screen-active = 1.
screen-input = 1.
screen-output = 1.
screen-invisible = 0.
modify screen.
endif.
if screen-group1 = 'G5'.
screen-active = 0.
screen-input = 0.
screen-output = 0.
screen-invisible = 1.
modify screen.
endif.
endloop.
this all will be based on requirment
reward points if helpful
03-25-2008 10:22 AM
Hi Rahul
First of all identify when you want the text field to be hidden....
There may definitely be multiple options to do it...
Consider the following
You will be going to subscreen from a main screen..immediately before "CALL SUBSCREEN XXX ' statement write a module and set a global variable = 'X' if you need the text field to be hidden...
In the subscreen PBO'
Write the code
If the variable = 'X'.
Loop at screen.
If screen-name = 'TEXT_FIELD'.
"name of the text field in capslock
screen-active = 0.
Modify screen.
endif.
endloop.
Pls check and revert..reward if useful
Regards
Byju
03-25-2008 10:28 AM
HI , I ONLY WANT TO DISPLAY DAT FIELD , BUT NOT HIDDEN , FIELD SHOULD APPER ON SCREEN BUT IN A MODE SO DAT WE CAN NOT CHANGE DAT FIELD.
03-25-2008 10:32 AM
Hi rahul ,
so you should do like that
if screen-group1 = 'G4'.
" where G4 is the group assigned to that field
screen-active = 1.
screen-input = 0.
screen-output = 1.
screen-invisible = 0.
modify screen.
endif.
rewards points if helpful
03-25-2008 10:36 AM
Hi,
loop at screen.
if screen-group1 = 'G1'.
screen-input = 0.
modify screen.
endif.
endloop.
reward points
Regards,
Prasanna
03-25-2008 10:58 AM
Hi Rahul...
In that case do the same code
but replace
Screen-active = 0. "hides the field
by screen-input = 0. "makes the screen as display only
ie..
Loop at screen.
if screen-name = TEXT_FIELD
Screen-input = 0.
endif.
endloop.
Pls revert if u need more clarity
Reward if helpful
Regards
Byju
03-25-2008 11:08 AM