on 04-20-2009 5:50 AM
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.
Seems like that's the only way to do it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.