Hello Everyone,
I have added a view as a assignment block in standard component, everything is working fine, the text gets added to the BTF editor, however, When i insert the image, it shows up as a empty box with nothing inside it.
Although this is working in the standard mail component, i have noticed that the link which gets created when clicking on HTML code, when an image is added as
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=content-type></HEAD>
<BODY>
<P>Test</P>
<P><IMG alt="" src="/sap/bc/contentserver/810?get&pVersion=0046&contRep=CRMFILESYSTEM&docId=535544E2AA367F60E10000000A3C2861&compId=manoj.jpg&accessMode=r&authId=CN%3DKCL&expiration=20140422112113&secKey=MIH3BgkqhkiG9w0BBwKggekwgeYCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGBxjCBwwIBATAZMA4xDDAKBgNVBAMTA0tDTAIHIBMREyBRBTAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTQwNDIyMDkyMTEzWjAjBgkqhkiG9w0BCQQxFgQUt2vLLx6bbf5mUpbt09CcyczIugYwCQYHKoZIzjgEAwQuMCwCFE53hCWxhYgv0N2ky80blV7wcjRBAhQBWV41%2B1Gu9UpJmFWRqn68C2YB9w%3D%3D"></P></BODY></HTML>
However, when I look at my code the link gets created like this
<P>lets add<STRONG> picture of <FONT color=#009900>Manoj. </FONT></STRONG></P>
<P><IMG alt=file://C:\Users\pradeep\Desktop\test.jpg></P>
<P> </P>
<P> </P>
<P> </P></BODY></HTML>
It seems like I am not able to add the image in the content server and fetch it again to display it in my view.
here is my HTML code in the view
<%@page language="ABAP" %>
<%@extension name="btf" prefix="btf" %>
<%@extension name="thtmlb" prefix="thtmlb" %>
<%@extension name="thtmlbx" prefix="thtmlbx" %>
<thtmlbx:btf id = "BTFEditor"
document = "<%= s_documentdata-btf_doc %>"
height = "400"
width = "95%"
onClientInsertImage = "InsertImage_BTFEditor(id);"
onClientInsertLink = "InsertLink_BTFEditor(id);"
sourceView = "<%= sourceview %>"
secureInsertImage = "X"
/>
So my question is, do we have to write separate code to add image, as i am set and getting the text successfully from the content server.
Could someone please throw a light on this and help with some code logic.
Regards,
Pradeep