2007 Jun 07 8:04 AM
HOW TO <b>ENABLE</b> /<b> DISABLE</b> THE TEXT BOX BY USING CODING THAT HAS BEEN CREATED IN SCREEN PAINTER WITH THE PROPERTY CONDITION "<b>NOT POSSIBALE</b> " / " <b>POSSIBLE</b>" IN THE LAYOUT IN SCREEN PAINTER AND I NEED TO ENABLE / DISABLE THAT TEXT BOX WHILE RUN TIME IN PAI IS SE38. I NEED THE CODING R REFER WITH EXAMPLE DO THE NEEDFUL.
HOW TO <b>ENABLE</b> /<b> DISABLE</b> THE TEXT BOX BY USING CODING THAT HAS BEEN CREATED IN SCREEN PAINTER WITH THE PROPERTY CONDITION "<b>NOT POSSIBALE</b> " / " <b>POSSIBLE</b>" IN THE LAYOUT IN SCREEN PAINTER AND I NEED TO ENABLE / DISABLE THAT TEXT BOX WHILE RUN TIME IN PAI IS SE38. I NEED THE CODING R REFER WITH EXAMPLE DO THE NEEDFUL.
2007 Jun 07 8:06 AM
Hi,
In the PAI event u write th code
LOOP AT SCREEN.
if screen-name = 'TEXTBOX'.
screen-active = 1 . "( 1-enable,0-disable)
modify screen.
ENDLOOP.
Reward points if it is helpful
Regards,
Sangeetha.a
2007 Jun 07 8:07 AM
Hi,
do in PAI
Loop at Screen
screen-fieldname1 = 'YourFieldName'.
screen-input = 0.
modify screen.
endloop.
Regards,
Usman Malik
2007 Jun 07 8:08 AM
Hi,
Sorry it is not in tha PAI..you have to write the code exactly where you want and when you want to do that
2007 Jun 07 8:24 AM
Hi Krishna
I think i already replied the same post previously to u..........
Here is ur previous link
ok check it again
<b><u>In Se51 after u enter the program name and specify a screen number then click onm the lay out editor radio button and then go to change mode there u double click on the box which u want to disable then right side u can find an box displaying the details of the particular box there u can use option disable and u can disable the related box</u></b>
or <b><i>use code to disable box</i></b>
LOOP AT SCREEN and ENDLOOP
check this sample code
LOOP AT SCREEN.
IF RADIO1 = 'X'
AND SCREEN-GROUP1 = 'D2'.
SCREEN-ACTIVE = '0'.
ENDIF.
IF RADIO2 = 'X'
AND SCREEN-GROUP1 = 'D1'.
SCREEN-ACTIVE = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.Reward if helpfull
Regards
Pavan
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |