cancel
Showing results for 
Search instead for 
Did you mean: 

Text Direction Set LTR

Former Member
0 Kudos

Hi Experts,

I know there is a property that we can set the text direction to LTR or RTL.

Does anyone has the code that I can use to do the same purpose?

If yes, please provide and it will be greatly appreciated.

Thank YOU!!

SE

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

for Ui elements like Input Field there is also a property present for this ( I guess named as TextDirection ), instaed of modifying this in code you can set this property directly.

Check the same property for other UI elements

Regards

Manas Dua

saket_abhyankar
Active Participant
0 Kudos

I think this is possible in through dynamic programming. Following is the code for setting text direction of input field through code:



    data: lr_input_field type ref to CL_WD_INPUT_FIELD.

    call method cl_wd_input_field=>new_input_field
      exporting
        id         = lv_if_id
        bind_value = lv_bind_value
       TEXT_DIRECTION = CL_WD_INPUT_FIELD=>E_TEXT_DIRECTION-RTL
      receiving
        control    = lr_input_field.

Regards,

Saket.