cancel
Showing results for 
Search instead for 
Did you mean: 

Select range of text in input field

Former Member
0 Kudos

When using a text edit field, can you automatically select a range of text within the input field? I would like to have the entire contents of a text field selected when the row in the table is selected, but I can't find any API to do this...

Accepted Solutions (1)

Accepted Solutions (1)

bernd_speckmann
Contributor
0 Kudos

You would like to mark the text within the input field as selected text so that you can directly copy it for example with Ctrl+C ?

I think this is a browser function which you cannot control form the webdynpro.

Regards,

Bernd

Former Member
0 Kudos

You're close.

Default text has been assigned to a text field. When the user selects the row, I would like to automatically select the content of the text field so the user doesn't have to do it themselves. Yes, they can type Ctrl-A to select the entire field, but it's extra keystrokes that I would like to avoid.

However, I suspect that you're correct - this is a javascript function that I don't think Web Dynpro implements.

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi Ken

As I know WebDynpro's API (server side) does not provide anything for selecting a text. The maximum it can do is to request a focus for the input field. See requestFocus() function.

BR, Siarhei

Answers (0)