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

Text Editor -options

Former Member
0 Likes
358

Hi,

I have been using text editor control.

In this when we click load file button...an open prompt window appears..

there we will be finding Files of type... dropdown..containing values like text(.txt) file and All file types..

Is there any way to restrict this dropdown to single value..i mean to .txt file..should only be viewed omitting

All files option in dropdown..

i am using CL_GUI_TEXTEDIT..control...

Is there any option to do it...

Please Help me out.

Thanks & Regards,

Sandy.

2 REPLIES 2
Read only

Former Member
0 Likes
331

Hi Sandy,

I don't think there is any method for this. As the dialog box opened is depending on your OS.

But, you can cross check the uploaded file for " .txt " using CP (contains pattern) function of string.

DATA: xl type string.

xl = '*.txt'.

IF not P_FILE CP xl. "P_FILE is name of file you will get.

"Error"

ENDIF.

Sachin

Read only

0 Likes
331

Hi Sachin,

Thanks for your reply..

But i need option that it should not be displayed in popup itself. only single value should be appeared.