cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with pasting text in web dynpro view using formatted text edit

Former Member
0 Kudos

Hi Folks,

I have got a new requirement i.e user want to paste some text content into web dynpro view.We should display the content as it is after paste in the view .I have gone through the UI elements Formatted Text edit view and Office control.

Formatted Text edit will support few HTML tags like bold,italic and header... but we dont know what type of content user will paste in the view.It may have tables and so on.So the format is getting disturb when the content have other than plain text.

Office control is supporting what we expected.But here we have another problem i.e If I open with the word document.It has Menu,clip board.. every thing.That we can not disable.How we can disable the Menu bar and other things in Word document.

Is there any other way to accept the format what user has entered.Please suggest me.

Thanks in Advance

Suman

Edited by: suman kumar chinnam on Jun 25, 2009 2:38 PM

Edited by: suman kumar chinnam on Jun 25, 2009 2:41 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I don't know of any such API that would allow you to control with toolbar options are displayed in the in-place word. You can check the online help and the samples listed:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d1/af8841349e1909e10000000a155106/frameset.htm

Samples are in package SIOS.

I also checked the expert mode settings:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/8e/128b41b4b3b55fe10000000a1550b0/frameset.htm

and the interfaces listeted there, but didn't see any such methods.

Former Member
0 Kudos

Hi Thomas,

Thanks for your reply. I also know we can not control the tool bar of Word from web dynpro.I am asking for any other alternative or procedure like using Adobe flex ...etc. If I use office control we are giving the access to user to change the format of the content.I dont want that .I want to show as it he had pasted.

Please suggest me .

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

There is no UI element that is delivered by SAP that would allow for such a thing. You mentioned Flex. I suppose if you are on NetWeaver 7.01 and want to use FlashIslands, you could build something in Flex that does what you want. A partially disabled version of the RichTextEdit control in Flex. Not sure how you can tell the difference between a cut and paste and regular editing however. But this really becomes a Flex Component design and development issue and outside the scope of what I can help you with.

Former Member
0 Kudos

Hi Thomas,

Yes we are using Netweaver 7.01.Can you give more clear information on how to proceed with FlashIslands or Flex and one morething id if we use Flex in our application does it run in portal too.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Yes, FlashIslands is of course supported in the portal as well. I can't give you guidance on how to build a Flex component to meet your requirement because that is completely out of the scope of what I can cover. I can only advise on how to integrate said flex application into Web Dynpro. For general information about FlashIslands integration there are many materials available on SDN. Check out tutorials here for instance:

https://wiki.sdn.sap.com/wiki/display/EmTech/SAPRichIslandsforAdobe+Flash