Application Development and Automation 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: 
Read only

small issue with free text editor

Former Member
0 Likes
544

Hi all,

I have the container for free text.

I have the following code

tHE FOLLOWING CODE IN PBO OF SCREEN 500

IF SAVE EQ 'X'.

call METHOD EDITOR->SET_TOOLBAR_MODE

EXPORTING TOOLBAR_MODE = 0.

CALL METHOD EDITOR->SET_READONLY_MODE

EXPORTING

READONLY_MODE = 1.

ENDIF.

WHEN ENTER THE SCREEN 500 FOR THE FIRST TIME ,

I CAN SEE THE TOOL BAR AND ITS IN READ ONLY MODE.

WHEN I GO BACK AND AND COME BACK AGAIN WITH SAVE EQ 'X'.

I CANNOT SEE THE TOOL BAR AND ITS IN READ ONLY MODE.

uNTIL NOW ITS WORKING FINE .

when i go back and come again to screen 500 this time with save ne 'x'.

i still the editor with no tool bar and in read only mode though i want it to be in write mode with tool bar.

Please let me know IF IAM MISSING ANY THING

THANKS

Swathi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
518

You will have to set WRITE mode explicity when SAVE ne 'X'. I don't think you are doing that.

IF SAVE EQ 'X'.
call METHOD EDITOR->SET_TOOLBAR_MODE
EXPORTING TOOLBAR_MODE = 0.

CALL METHOD EDITOR->SET_READONLY_MODE
EXPORTING
READONLY_MODE = 1.

else.

call METHOD EDITOR->SET_TOOLBAR_MODE
EXPORTING TOOLBAR_MODE = 1.

CALL METHOD EDITOR->SET_READONLY_MODE
EXPORTING
READONLY_MODE = 0.

ENDIF.

Regards,

Ravi

note - Please mark all the helpful answers

Hi all,

I have the container for free text.

I have the following code

tHE FOLLOWING CODE IN PBO OF SCREEN 500

IF SAVE EQ 'X'.

call METHOD EDITOR->SET_TOOLBAR_MODE

EXPORTING TOOLBAR_MODE = 0.

CALL METHOD EDITOR->SET_READONLY_MODE

EXPORTING

READONLY_MODE = 1.

ENDIF.

WHEN ENTER THE SCREEN 500 FOR THE FIRST TIME ,

I CAN SEE THE TOOL BAR AND ITS IN READ ONLY MODE.

WHEN I GO BACK AND AND COME BACK AGAIN WITH SAVE EQ 'X'.

I CANNOT SEE THE TOOL BAR AND ITS IN READ ONLY MODE.

uNTIL NOW ITS WORKING FINE .

when i go back and come again to screen 500 this time with save ne 'x'.

i still the editor with no tool bar and in read only mode though i want it to be in write mode with tool bar.

Please let me know IF IAM MISSING ANY THING

THANKS

Swathi

3 REPLIES 3
Read only

Former Member
0 Likes
519

You will have to set WRITE mode explicity when SAVE ne 'X'. I don't think you are doing that.

IF SAVE EQ 'X'.
call METHOD EDITOR->SET_TOOLBAR_MODE
EXPORTING TOOLBAR_MODE = 0.

CALL METHOD EDITOR->SET_READONLY_MODE
EXPORTING
READONLY_MODE = 1.

else.

call METHOD EDITOR->SET_TOOLBAR_MODE
EXPORTING TOOLBAR_MODE = 1.

CALL METHOD EDITOR->SET_READONLY_MODE
EXPORTING
READONLY_MODE = 0.

ENDIF.

Regards,

Ravi

note - Please mark all the helpful answers

Read only

Former Member
0 Likes
518

Hi,

IF SAVE EQ 'X'.

call METHOD EDITOR->SET_TOOLBAR_MODE

EXPORTING TOOLBAR_MODE = 0.

CALL METHOD EDITOR->SET_READONLY_MODE

EXPORTING

READONLY_MODE = 1.

else.

call METHOD EDITOR->SET_TOOLBAR_MODE

EXPORTING TOOLBAR_MODE = 1.

CALL METHOD EDITOR->SET_READONLY_MODE

EXPORTING

READONLY_MODE = 0.

ENDIF.

This should solve your problem

Award points if helpful

Thanks

venki

Read only

0 Likes
518

Hi Thanks

Problem solved.

Awared points to both