How to display embedded image & text in content presenter web template
We have a requirement to display both text and embedded image together like in WYSIWYG editor in Webcenter spaces. The content has to be dynamic and is context sensitive so that users in the same role can edit and publish the content. The users who are in different role would see different piece of content.
To achieve this use case, i think Content Presenter enabled with Site studio is the best choice. I have created element and region definitions with WYSIWYG and region templates in site studio. Created contributor data file in UCM. Content Presenter in webcenter is configured with that region definition and the region template etc.
At design time, the contributor data file is edited and some image / text is added in WYSIWYG editor.. But however at runtime view, i could see only the text added in WYSIWYG editor and the file name of the image embedded....Any one successfully used Content Presenter with Site studio???
Regards
Prasath.C
Hi
I'm using the site studio tags in jdev. My code is the following one and I have the same result I see the the html tags instead a formatted text.
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:dt="http://xmlns.oracle.com/webcenter/content/templates"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:trh="http://myfaces.apache.org/trinidad/html">
<dt:contentTemplateDef var="node">
<af:panelGroupLayout layout="vertical" id="pgl3">
<af:panelGroupLayout layout="horizontal" valign="top" inlineStyle="background-color:#FFF; padding:10px;" id="pgl4">
<af:spacer width="10px;" id="s1" inlineStyle="background-color:#DDD; color:white;"/>
<af:panelGroupLayout layout="vertical" id="pgl1" valign="top">
<af:outputText value="#{node.propertyMap['RD_RICH_TEXT:text1'].asTextHtml}"
id="ot2" styleClass="bodytext"/>
</af:panelGroupLayout>
</af:panelGroupLayout>
</af:panelGroupLayout>
</dt:contentTemplateDef>
</jsp:root>
Similar Messages
-
How to display all the surveys using content query web part
Can you please tell me how to display all the surveys using content query web part in more details? I also created a subsite and multiple surveys in that site. Then, I inserted a Content Query Web Part and select the List Type to be "Survey",
however, it returned nothing. Did I miss anything?Hi,
OOTB Survey List does not contain any
Content Types and it has the following structure:
Response entry is represented by
List Item
Response entry consist of questions and answers, where Question correspond to
Field and Answer to Item value respectively.
For querying Survey List via CQWP the following properties could be used
BaseType
<Lists BaseType="4">
ServerTemplate
<Lists ServerTemplate="102">
Example
To retrieve all the responses from Survey lists, specify List Type property as shown on picture
Reference:
http://stackoverflow.com/questions/17280778/display-all-surveys-using-content-query-web-part
Best Regards,
Eric
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to display trafic light red/yellow/green in web template
Hi All,
I would like to implement a traffic light display within BW web templates.
Please clarify how I can implement this.
Thanks
KarenHi,
Please check :
Displaying traffic light in a web template.
Display traffic lights for KPIs in a web-template (using thresholds)
-Vikram -
Urgent question..how to display 2D image/text on Canvas(Java3D)?
I am developing a first-person action game and want to add a box which show the value(eg,what weapon you are carrying,any value) on the canvas like CS,but I dont know how to set it up.I want to know how to create it?
Hey,
I'm new to java3d, but I'm pretty sure that you can draw 2D strings/images on top of a Canvas3D. Just make a custom Canvas3D class, then in that class implement postRender(), and in there you can do all your 2D displaying.
For example, this is what I did to display some information and graphics above the Canvas3D in my program:
public class CustomCanvas3D extends Canvas3D
public CustomCanvas3D(GraphicsConfiguration gcIn)
super(gcIn);
public void postRender()
J3DGraphics2D g = getGraphics2D();
Image crosshair = this.getToolkit().createImage("crosshair.png");
MediaTracker mt = new MediaTracker(this);
mt.addImage(crosshair, 0);
try
mt.waitForAll();
catch (InterruptedException e)
e.printStackTrace(System.out);
g.drawImage(crosshair, 200, 200, this);
g.setColor(Color.orange);
g.drawString(player.getVitalInformation(), 100, 100);
g.flush(true);
Hope that helped,
James Attenborough -
How to Display an Image on my FORM
Good Day!
I would like to ask some help from you guys with my problem on how to display an image on my form. I would like to display my uploaded image on my form but instead of an image, the get_blob_file is showing. By the way, I'm using Apex 4.1
I downloaded the Order Entry Sample Application and followed the Page 6, the Product Details. I even made snapshots of each details from Page Rendering to Page Processing in order not to miss a thing.
At the moment, I was able to upload or store the image on my created Oracle table and also able to retrieve it on the Download Link Text with Content Disposition value of Inline, provided by APEX Settings. If I invoke the Download link beside the file browser, a page with the image will be shown, below is the address:
http://127.0.0.1:8080/apex/apex_util.get_blob_file?a=200&s=339877802936975&p=230&d=7107921433296839&i=7107601420296838&p_pk1=54&p_pk2=&p_ck=7D6512D967336C4B94258EEA3CDF1BE6&p_content_disposition=inline
However, instead of showing the image on a region, below is the one showing on my Form:
<img src="apex_util.get_blob_file?a=200&s=339877802936975&p=230&d=7107921433296839&i=7107601420296838&p_pk1=54&p_pk2=&p_ck=7D6512D967336C4B94258EEA3CDF1BE6" />
As you can see the parameter values are the same but I know I missed something that's why I'm here :)
I would highly appreciate all the help you can provide and many thanks in advance.
I tried to change gear by making an html region of type PL/SQL (anonymous block) and a procedure but still no image :(
Below are the scripts.
declare
cursor cur is
select *
from wsemployee
where empid = :P230_EMPID;
begin
for rec in cur
loop
IF rec.mime_type is not null or rec.mime_type != '' THEN
htp.p( '<img src="my_image_display?p_image_id='||NVL(rec.empid,0)||'" height="'||100||'"/>' );
else
htp.p( 'No Image ');
END IF;
htp.p( ' ');
end loop;
end;
PROCEDURE
create or replace PROCEDURE my_image_display( p_image_id IN NUMBER)
AS
l_mime VARCHAR2 (255);
l_length NUMBER;
l_file_name VARCHAR2 (2000);
lob_loc BLOB;
BEGIN
SELECT MIME_TYPE, PHOTO_BLOB_CONTENT, PHOTO_FILENAME,DBMS_LOB.GETLENGTH(photo_blob_content)
INTO l_mime,lob_loc,l_file_name,l_length
FROM wsemployee
WHERE empid = p_image_id;
-- set up HTTP header
-- use an NVL around the mime type and
-- if it is a null set it to application/octect
-- application/octect may launch a download window from windows
owa_util.mime_header( nvl(l_mime,'application/octet'), FALSE );
-- set the size so the browser knows how much to download
htp.p('Content-length: ' || l_length);
-- the filename will be used by the browser if the users does a save as
htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(l_file_name,instr(l_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
-- close the headers
owa_util.http_header_close;
-- download the BLOB
wpg_docload.download_file( Lob_loc );
END my_image_display;
Edited by: user13831927 on Dec 22, 2012 3:24 PMHi Ying,
you can add a UDF to the table spp2 with a programm
but the table is not yet listed in the 'Manage User Fields' form.
there's no way to "enable" it - sorry -
Messenger Express 6 Unable to display embedded images
Hi
Messenger Expresss seems tob unable to display embedded images (gif or jpeg) in the form cid:image.gif and some hosted images. In reference to the the cid:image.gif , when I open the email get an error from the browser that states "Warning: the application cid must be lauched to view this file." or something close to that. It gives me a choice of opening "cid" or canceling. There is also a check box "remember my choice for all files." which I choose and then I get an email full of broken image links.
I've tried this in Firefox and IE the routine is a bit different but the result is the same. No images displayed.
I also used a netflix email I recieved.. some of the images displayed some did not. The ones that did display were from www.netflix.com some of the others hosted on an image server somewhere in the netflix namespace did not.
I'm at a loss. If anyone can shed some light on this I'd be very thankful
ErikI was speaking about what client created the original mail messate.
The "error message" isn't very useful. Is the mail message itself is badly formed, then the problem lies with the client that created it.
You should be able to tell from the headers of the message.
If you have the message file on disk, examine it with a text editor. "Message file on disk" means the original file, as stored on the server as a xxx.msg file, not what any client might save to a local disk.
When we work these kinds of things as tech support cases, we start out with this file.
I have no idea what gmail does, so that's not really relevant.
Your IMAP client may be better at displaying badly formed messages than webmail is. -
Mail 5.2 doesn't display embedded images
Mail 5.2 (OS 10.7.4) no longer displays embedded images. This happened after I installed an AirportExtreme wireless router. I can send images as attachments, but received mail with images displays blue box with ?. Using "download image" has no effect. Mail/preferences/ has " Display remote images in HTML messages" checked. The answers to similar questions don't seem to apply, or I just don't understand them. Can anyone advise me?
johngar wrote:
I have tried forwarding the incoming message from my iPhone, which does display the images correcty, and from another account on my desktop. In both cases the thumbnails contain only "?" and "download image" does not work.
Ignoring the forwarded message from the iphone, is the message you forwarded from another account also a message that was originated on your iphone?
The mail program on the iPhone, which is supposedly the same as the mail program on my desktop, displays the thumbnails correctly and they expand to give the full size image. I take this to mean that the fault is not with the source of the images. I don't know how to imbed images, as opposed to attachments, in my e-mail, so I can't produce my own example.
What makes you think the mac mail program and the iphone mail program are the same program? I don't think that.
The reason I wanted you to send a message to yourself on your mac using the mac mail was I wanted to get the iphone out of the equation. If you cannot embed images in the mail message that is because all image, etc. are handled as enlosures due to the way the mail protocol works. Perhaps that is why messages from the iphone appear the way you are seeing them, i.e, there's no way to embed an image and the iphone mail is not converting it to an enclosure.
If you are going to test from an iphone try sending the image as an enclosure and see if mail can handle that. -
How to display a image in webdynpro view using a bytearry
Hi Frndz..
How to display an image in a view using webdynpro java ..i have bytearry object in context ..like
*byte[] img = wdContext.nodeYywwwdataImport_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();*_
by using this i need to show image in view..
Kindly help me ....
Thankas in Advance
Regards
RajeshHi,
byte[] img = wdContext.nodeYywwwdata_Import_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();
use this code to create resource and you need to set this value to the context created to display the image suppose in the image UI and set the source property with this attribute:-
IWDResource res=WDResourceFactory.createCachedResource(b,"MyImage",WDWebResourceType.JPG_IMAGE);
IPrivateAppView.IVn_ImageTabElement imageEle=wdContext.createVn_ImageTabElement();
imageEle .setVa_Name(res.toString());
wdContext.nodeVn_ImageTab().addElement(imageEle);
Hope this may help you.
Deepak -
How to display an Image which is on Panel behind JScrollPane - Please Help
Hiii All,
How to display an Image which is on Panel behind JScrollPane. I have set the setOpaque() method of JScrollPane to false still when i run the program the JScrollPane is set as Opaque.. Can some one please help me in this...
Thanks,
Piushyou need to set both
scrollPane.setOpaque(false);
scrollPane.getViewport().setOpaque(false); -
Mail not displaying embedded images
A few weeks ago, Mail suddenly stopped displaying embedded images in email messages - newsletters, product announcements, etc. The Viewing Preference is still set for "Display remote images in HTML messages," yet all I see are place holders. In my Junk folder, if I click on Load Images in the Junk banner, it refuses to load those images. They simply remain as place holders.
Anyone else experiencing this problem? Suggestions?
PowerBook G4 Mac OS X (10.4.8) Using Mail v. 2.1Hi gumnutnijna,
Does this only happen when using your GMail account? Do you have any other accounts set up on your BlackBerry smartphone to test with? Also, to confirm, are the messages still in your GMail account inbox on your computer?
Thanks.
-CptS
Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)! -
How to Display 'purchase order text' in MM03 using report program
Hi Friends,
Can anybody suggest me how to display 'purchase order text' in MM03 using report program.
'Purchase order text' tab displays purchase long text of particular material .
I coded as:
SET PARAMETER ID 'MXX' FIELD 'E'.
SET PARAMETER ID 'MAT' FIELD k_final-matnr.
SET PARAMETER ID 'WRK' FIELD k_final-werks.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
It displays Purchasing tab other than Purchase Order Text tab of MM03.
Please suggest me how can i solve this.
Is there any parameter id to set values for Purchase Order text tab>
Madhu Mano Chitra wrote:
> I want how to navigate to MM03 'Purchase Order text' tab/ view using ABAP code.
> could any suggest me
You can call a transaction and pass it a BDC table that tells it where you want it to go. You have to work out for yourself what to put into the BDC table. The code below works for tcode CATSSHOW.
DATA: bdcdata_wa TYPE bdcdata,
bdcdata_tab TYPE TABLE OF bdcdata.
DATA opt TYPE ctu_params.
CLEAR bdcdata_wa.
bdcdata_wa-program = 'CATSSHOW'.
bdcdata_wa-dynpro = '1000'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'SO_STATU-LOW'.
bdcdata_wa-fval = '20'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'ANDZEIT'.
bdcdata_wa-fval = SPACE.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'PAST'.
bdcdata_wa-fval = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
IF p_selscr = SPACE.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_OKCODE'.
bdcdata_wa-fval = '=ONLI'.
APPEND bdcdata_wa TO bdcdata_tab.
ENDIF.
opt-dismode = 'E'.
opt-defsize = 'X'.
CALL TRANSACTION 'CAPP' USING bdcdata_tab OPTIONS FROM opt. -
How to display the image which in KM folder using url iview
Hi Friends
How to display the image, which is under KM folder structur using the url iview.
i trying using url iview url as \document\testfolder\abc.jpg as url for the iview.
but its now working .. so please help me how to slove this problem
If is not the correct way then please suggest me best way to achive this.
Thanks
MukeshHi Mukesh,
I think this may work,
1, Create a HTML Layout.
You can put your image wherever u want with HTML Codes.
Check this, [Article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3915a890-0201-0010-4981-ad7b18146f81] & [Help|http://help.sap.com/saphelp_nw04/helpdata/en/cc/00c93e9b2c3d67e10000000a114084/frameset.htm]
With this, u can use the standard KM commands also.
2, U need to use KM Navigation iView for this rather than KM Doc iView.
3, In the Nav iView, u can use &rndLayoutSet=nameOfUrHTMLLayout to force the view with this new layout.
Regards
BP -
How to display an image in an alv grid in each corresponding row?
Hi,
please tell me how to display an image in an alv grid in each corresponding row, like;;
tony 23 newyork <image>
Mkitharyan 63 washington <image>
NOT BY HOTSPOTS/URL.you can put image in each cell you want:
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_alv( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
lo_INTERFACECONTROLLER = wd_this->wd_cpifc_alv( ).
DATA lo_value TYPE ref to cl_salv_wd_config_table.
lo_value = lo_interfacecontroller->get_model( ).
data col type ref to CL_SALV_WD_COLUMN.
col = lo_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'IMAGE' ).
data image type ref to cl_salv_wd_uie_image.
CREATE OBJECT image.
image->SET_SOURCE_FIELDNAME( 'IMAGE' ).
COL->SET_CELL_EDITOR( image ). -
How to display an image, which is stored in a database?
Hi All,
I would like to display an image with Web Dynpro.
I already know how to display an image which is stored in the path src/mimes/Components/...
But does anybody knows, how to display an image which is stored in a database (e.g. MaxDB)as a datatype of binary?
Thanks in advance!
Regards,
SilviaHallo John,
yes, you can use the Image UI element.
Further you have to create a String for the URL. Implement like as follows:
IWDCachedWebResource cachedResource = null;
String imgUrl = null;
WDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateXYView.IXYElement.PIC_DB);
IWDModifiableBinaryType binaryType =
(IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
binaryType.setMimeType(WDWebResourceType.JPG_IMAGE);//Example *.jpg
WDWebResourceType type = binaryType.getMimeType();
byte[] file = wdContext.currentXYElement().getPicDB();
if (file != null)
cachedResource = WDWebResource.getWebResource(file, type);
try
imgUrl = cachedResource.getURL();
catch (WDURLException e)
IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
msgMgr.reportException(e.getLocalizedMessage(), true);
I hope it will help you.
Regards,
Silvia -
How to freeze the report header row in the web template SAP BI 7.0?
Hello,
Can somebody tell me how to freeze the report header row in the web template SAP BI 7.0 (key fiigures1, 2,3)?
key figure1 key figure2 key figure3
20 30 40
30 80 90
ThanksHi,
You can refer the following threads...
Re: Create Scrollable Table Body in WAD - Locking Table Column and Header
Freeze Data Columns in WAD
This will help you!
Rgds,
Murali
Maybe you are looking for
-
When I try to open a link from an email it gives me a choice to open but when I choose open it won't! I used to be able to click right on a store or anything and it would open connect to the store. Very strange
-
Media Encoder CS6 not working with Premiere
Hi I have been merrily editing a lager job in Adobe Premiere CS6 and then queuing the time lines to export in media encoder CS6 done the entire job everything rendered fine then Bam all of a sudden when I try and render I get all the audio a couple o
-
UEFI Bios or latest bios gtx 770 TF 2G OC
S/N : 602-V282-20SB1305076182 TF GTX 770 2G GD5 GAMING GPU-Z 80.04.B4.00.2F (P2005-0000) anyone help me to find latest bios or uefi bios for this vga? thx in advance
-
Loading .obj model file to applet returns AccessControlException
I examined other applets where this code seems to work. Yet, I can't get it to function properly within my code. URL fileURL = null; try { fileURL = new URL( getDocumentBase(), "test.obj"); } catch (Exception e) {
-
SPED output type doesn't appear when goods issue done
I have made goods transfer from one storage to another via two-steps procedure. Both storages have WM. So I create UB order (Me21n) -> outbound delivery -> transfer order. Then I approve the transfer order and the goods issue is done automatically. I