cancel
Showing results for 
Search instead for 
Did you mean: 

TableView Iterator /Bee

Former Member
0 Kudos

Hello Everybody,

I have the following Problem:

I would like to write into a cell a several lines.

How can I do it?

I think I have to implement the Method : if_htmlb_tableview_iterator~render_cell_start, but I don't now how.

Please help me.

Thank's in Advance.

Adid

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Tank’s for your Answer, but the Problem I want to render Something like <b>textEdit</b>, to write a text into a cell.

Exemple:

In the Blog /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator

Look at the Colomn <b>Seats.</b>

My Goal, I would like to custom a rendered <b>instead imputFields sommthing like TextEdit</b> (to write into the <u>a several lines</u>).

Tank’s in Advance.

adid.

athavanraja
Active Contributor
0 Kudos

in the IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START method you have to write code like below.

p_replacement_bee = CL_HTMLB_TEXTEDIT=>factory(

id = p_cell_id

text = wftext

width = '100%'

height = '100%' ) .

Regards

Raja

Former Member
0 Kudos

Thank you Raja,

I have Just one Question what is <b>wftext</b> ?

Regards

adid

athavanraja
Active Contributor
0 Kudos

its just a variable of type string, to set some initial value .

Regards

Raja

Former Member
0 Kudos

hallo Raja.

it works but i have allwas the same Problem. i cann just write in one line like this <b>----

abcd

-


</b>

but I need to write a text in several lines like This: <b> -


abcd

efg..

.....

-


</b>

cann you help me!!

METHOD if_htmlb_tableview_iterator~render_cell_start .

CASE p_column_key.

when 'Test'.

data: wftext Type String.

p_replacement_bee = CL_HTMLB_TEXTEDIT=>factory(

id = p_cell_id

text = wftext

width = '100%'

height = '100%' ).

encase.

endmethod.

athavanraja
Active Contributor
0 Kudos

check the factory method parameters of CL_HTMLB_TEXTEDIT from se24. you can set wrapping and more parameters.

Regards

Raja

Former Member
0 Kudos

Thank you Raja

Regards

adid

Answers (2)

Answers (2)

former_member181879
Active Contributor
0 Kudos

Try browsing this page in new <a href="https://wiki.sdn.sap.com/wiki/display/HOME/HTMLB">wiki</a>.

Former Member
0 Kudos

if you want to add text in a cell use the below sample code in that cell:

<htmlb:textView

text = "your text"

design = "<%=l_design%>"

textColor = "<%=l_color%>"

wrapping = "<%=cl_bsp_hap_document_cs=>c_true%>"

width = "20" />