cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the size of the text box in "Notes"

Former Member
0 Kudos

Dear All,

I am trying to change the text box size of that is used in the Notes section. Currently the displayed size features 5 rows, I want to increase it.

I tried to increase the starting and ending Row numbers in the UI configuration, but it still stays the same size!

Anyone know how to resolve this problem, we really need it !

Thanks.

Best regards,

Rohit L.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Seems like that's the only way to do it.

gerd_hotz
Contributor
0 Kudos

Hello,

I've enhanced the ICCMP_BTTEXT like this:

<thtmlb:textArea id = "TextBox"

width = "98%"

text = "//BTText/Tdline"

rows = "20"

disabled = "<%= controller->IS_TEXTAREA_DISABLED( ) %>" />

but starting my web-ui I still cannot see 20 rows in my notes box.

Must I do anything to get this ?

Thanks Gerd

Former Member
0 Kudos

FYI: We were able to resolve the issue by changing the GETTER-method of the attribute LINES in the component GSTEXT:


method GET_P_LINES.

  CASE iv_property.
    WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
      rv_value = cl_bsp_dlc_view_descriptor=>FIELD_TYPE_TEXTAREA.
    WHEN if_bsp_wd_model_setter_getter=>fp_textarea_rows.
      rv_value = 16.
  ENDCASE.

endmethod.

-


Hi Gerd,

could you resolve your issue?

We try to do the same and just adding "rows" does not work for us either.

Thanks and regards,

Stefan

Edited by: Stefan Heitmann on Jul 13, 2010 1:04 PM

Answers (1)

Answers (1)

robert_kunstelj
Active Contributor
0 Kudos

1. Enhance the Standard Component ICCMP_BTTEXT and hence enhance the view TextView.htm

2. Go inside the code of TextView.htm. Inside this, you'll see few lines of code as:

<thtmlb:textArea id = "TextBox"

width = "98%"

text = "//BTText/Tdline"

disabled = "<%= controller->IS_TEXTAREA_DISABLED( ) %>" />

Replace this with:

<thtmlb:textArea id = "TextBox"

width = "98%"

text = "//BTText/Tdline"

rows = "20"

disabled = "<%= controller->IS_TEXTAREA_DISABLED( ) %>" />

So, just the addition of rows in the code does the trick and it also overwrites the hardcoded values of

rows for all text areas in UI as '5'. You can have any many number of rows as you want.

But remember, this change will reflect in all the places wherever any text box is displayed in UI.

Former Member
0 Kudos

Is there anyway to do it without changing all of the text boxes?

I need it to be about 50 rows in one place and just 5 in the others.

Thanks.

Best regards,

Rohit L.

robert_kunstelj
Active Contributor
0 Kudos

You can try it conditional by checking your component Uniquie ID in DO_INIT_CONTEXT method of

the view controller class and checking that value inside Textview.htm and make text area size

conditional as per your requirement. But I didn't tried this one.