Skip to Content
avatar image
Former Member

TextEdit Field cursor placement

Hello Experts,

How to set or move the cursor position manually inside the TextEdit UI element ? current issue what we are facing is "We have a TextEdit and we set the focus on click of button which sets text to the TextEdit UI Element but immediately after this the cursor moving to start of the TextEdit".

Regards,

Sanjay.

Add comment
10|10000 characters needed characters exceeded

  • Hi Sanjay,

    We are also facing the same issue .we tried to use Input field instead of text edit but in that condition on request focus
    full text present in TextEdit is Selected only.

    Kindly let me know if something worked for the same.

    Thanks in advance.
    Viplove Diwan

  • Get RSS Feed

2 Answers

  • Apr 17 at 10:50 AM

    Hi Sanjay,

    Is the TextEdit field a WebDynpro Unified Rendering element? Are you on the latest patches for the Unified Rendering Framework?

    Best regards,

    Nick

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 17 at 12:00 PM

    Hi Sanjay,

    if I understand right you would like to set the cursor to a specific position inside a TextEdit.

    I am not sure this is possible. I also played around with this using the same workaround by setting the focus (with requestFocus()) and setting a test text, but the cursor is always at the beginning of the TextEdit.

    Cheers,

    Ervin

    Add comment
    10|10000 characters needed characters exceeded