cancel
Showing results for 
Search instead for 
Did you mean: 

Rich Text Area in BSP

Former Member
0 Kudos
201

Hello,

I need a rich text area in BSP. Is there any tag available in BSP to render a Rich Text area or is there any work around available to render a normal text area as a rich text area.

Thanks and regards,

Murli Rao

Accepted Solutions (1)

Accepted Solutions (1)

eddy_declercq
Active Contributor
0 Kudos

Hi,

Have a look at the BTF editor

See also

/people/thomas.jung3/blog/2004/12/15/bsp-developers-journal-part-xvi--using-the-btf-editor

/people/thomas.jung3/blog/2005/04/21/bsp-btf-editor-example-non-model-view-controller

/people/eddy.declercq/blog/2005/03/07/netscape-from-alcatraz

/people/thomas.jung3/blog/2005/04/25/btf-in-the-real-world

Eddy

Answers (2)

Answers (2)

Former Member
0 Kudos

hi

try Following application simple one for Rich text area via BTF editor:

take look at the classes used. just work it out and then go for the other complex e.g.

in page layout

-


<%@page language="abap" %>

<%@extension name="htmlb" prefix="htmlb" %>

<htmlb:content design="design2003" >

<htmlb:page title="test page " >

<htmlb:form encodingType="multipart/form-data" >

<%@extension name="btf" prefix="btf" %>

<btf:editor id = "btf1"

document = "<%= documentdata-btf_doc %>"

onClientInsertImage = "InsertImage_BTFEditor(id)"

onClientInsertLink = "InsertLink"

/>

</htmlb:form>

</htmlb:page>

</htmlb:content>

-


inside onCreate

-


data: CATA_ID like SY-TABIX.

DATA: l_text TYPE xstring.

DATA: btf TYPE REF TO if_btf.

cata_id = sy-tabix.

btf = cl_btf=>get_reference( ).

TRY.

document = btf->create_document( sy-langu ).

ENDTRY.

documentdata-doc = cata_id.

documentdata-name = 'Demo BTF-Dokument'.

documentdata-btf_doc = document.

documentdata-btf_doc->get_content( IMPORTING text = l_text

encoding =

documentdata-encoding

language =

documentdata-language ).

-


page attributes

-


document type ref to IF_BTF_DOCUMENT

documentdata type BTFDOCUMENTDATA

sourceview type string

-


hope this will help you,

regards,

Hemendra

eddy_declercq
Active Contributor
0 Kudos

Hi,

Pls don't forget to reward points and close the question if you find the answers useful.

Eddy

GSL_NARAYANA
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Murli Rao,

You can use the BTF (Business Text Framework).

find the following sample BSP application "BTF_EXT_DEMO"

Regards,

Lakshminarayana