How to display images by using URLs in Interactive Reporting
Hello everybody,
My client has the Hyperion System 9.3 suite.
We have a report in Interactive Reporting showing product data.
The source for the report is a relational database (SQL Server).
The data is grouped by product.
My client needs the product's picture (jpg) in the report.
The problem is that product images are not available in the relational database but via URL like this:
http://client_domanin//Hyperion/id_product.jpg
(the name of the image equals the id of the product).
I was thinking to solve this problem using Java Script.
I don't know Java Script and don't know how to 'integrate' the JavaScript code with Interactive Reporting.
How should the Java Script look like?
Any help will be extremely appreciated.
Thank you all!
Daniela
You might be able to do it if you are using the iHTML view of the Report not the Interactive Reporting Web Client (Plug-in)
I do not have a 9.x server available to test this so it is guess on how i did it once in a Proof of Concept.
In Results section Create a Computed Item that will be the HTML tag for the Graphic
the syntax would look something like below
'<IMG SRC = "http://client_domanin//Hyperion/" + id_product + ".jpg">'
WHERE id_product is a column in your Data.
Again this will not show a graphic when viewed with Interactive Reporting Web Client or Desktop Client.
Good Luck, hope this is helpful
Wayne
Similar Messages
-
How to display Image by using Array?
Hi all, I know to how to display the image in MXML by using
AS 3.0
like this:
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100" height="80" borderStyle="solid">
<mx:Script>
<![CDATA[
[Embed(source="logo.gif")]
[Bindable]
public var imgCls:Class;
]]>
</mx:Script>
<mx:Image source="{imgCls}"/>
<!--OR-->
<mx:Image source="@Embed('assets/Nokia_6630.png')"/>
</mx:Application>
But the thing is I am building a list for display the images,
the values is come from the Array. I am trying a different way for
display it but no working, here is my code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
public var PICTURE_ARRAY:Array = [{label:"FileA",
icon:"@Embed('upload/myjpg.jpg')"},
{label:"FileC", icon:"@Embed('upload/myjpg.jpg')"},
{label:"FileB", icon:"@Embed('upload/myjpg.jpg')"}]
]]>
</mx:Script>
<mx:Tile id="pictureSelection" height="180" width="500"
borderStyle="solid">
<mx:Repeater id="picRP"
dataProvider="{PICTURE_ARRAY}">
<mx:VBox horizontalAlign="center" verticalAlign="middle"
verticalGap="0" borderStyle="none" width="100" height="100">
<mx:Image width="80" height="80"
source="{picRP.currentItem.icon}"
toolTip="{picRP.currentItem.icon}"/>
<!--
I also tryed this as well:
set the icon value as picture location like: "A.jpg" or
"B.jpg"
then
<mx:Image width="80" height="80"
source="@Embed('upload/{picRP.currentItem.icon}')" />
-->
<mx:Label text="{picRP.currentItem.label}" width="100"
textAlign="center"/>
</mx:VBox>
</mx:Repeater>
</mx:Tile>
</mx:Application>
Can anyone tell how to display the array value into Image
tag? ThanksIn your data you have this:
{label:"FileC", icon:"@Embed('upload/myjpg.jpg')"},
change it to this:
{label:"FileC", icon:"upload/myjpg.jpg"}, // this is just the
filename, not embedded
In your Repeater you have this Image tag:
<mx:Image width="80" height="80"
source="{picRP.currentItem.icon}"
toolTip="{picRP.currentItem.icon}"/>
which is fine, except for the toolTip. The toolTip uses a
string, not an image. If you want to show an image in the toolTip,
you'll need to write your own toolTip class.
Now the source property of the image will be given the URL to
the image which will then be requested from the server and
downloaded at runtime - it is not embedded.
If you need to embed the images, then your dataProvider
should have the variable name associated with the embedded
image. -
How to display image in selection-screen of a report
Dear all ,
i want to show my image from url or from desktop to the report selection-screen . i have searched sdn and found some code . after applying it i am not able to display image in the selection-screen although it is displaying the box in which the image should appear . here i am sending my code plz verify where is the mistake .
REPORT ZPIC2.
DATA: docking TYPE REF TO cl_gui_docking_container,
picture_control_1 TYPE REF TO cl_gui_picture,
url(256) TYPE c .
PARAMETERS: A(4) DEFAULT '4' .
PARAMETERS: B(4) DEFAULT '5' .
AT SELECTION-SCREEN OUTPUT.
PERFORM show_pic.
**& Form show_pic
FORM show_pic.
CREATE OBJECT picture_control_1 EXPORTING parent = docking.
CHECK sy-subrc = 0.
CALL METHOD picture_control_1->set_3d_border
EXPORTING
border = 5.
CALL METHOD picture_control_1->set_display_mode
EXPORTING
display_mode = cl_gui_picture=>display_mode_stretch.
CALL METHOD picture_control_1->set_position
EXPORTING
height = 100
left = 150
top = 58
width = 350.
CALL METHOD picture_control_1->load_picture_from_url
EXPORTING
url = 'C:\abc.jpg' .
endif .
IF sy-subrc NE 0.
ENDIF.
ENDFORM.
CORECT ANSWERS WILL BE HIGHLY APPRECIATED AND SURELY REWARED .
THANKS ,
AMIT RANJANHi,
Try this code. hope it will work.
DATA: DOCKING TYPE REF TO CL_GUI_DOCKING_CONTAINER,
PICTURE_CONTROL_1 TYPE REF TO CL_GUI_PICTURE,
URL(256) TYPE C,
PIC_DATA TYPE TABLE OF W3MIME WITH HEADER LINE,
PIC_SIZE TYPE I.
SELECTION-SCREEN BEGIN OF BLOCK B1.
PARAMETERS: A(4) DEFAULT '4' .
PARAMETERS: B(4) DEFAULT '5' .
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN OUTPUT.
PERFORM SHOW_PIC.
*& Form SHOW_PIC
FORM SHOW_PIC .
CREATE OBJECT PICTURE_CONTROL_1
EXPORTING PARENT = DOCKING.
CHECK SY-SUBRC = 0.
CALL METHOD PICTURE_CONTROL_1->SET_3D_BORDER
EXPORTING
BORDER = 5.
CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
EXPORTING
DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_STRETCH.
CALL METHOD PICTURE_CONTROL_1->SET_POSITION
EXPORTING
HEIGHT = 200
LEFT = 100
TOP = 20
WIDTH = 400.
CHANGE POSITION AND SIZE ABOVE**************************
IF URL IS INITIAL.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
TYPE = 'image'
SUBTYPE = CNDP_SAP_TAB_UNKNOWN
SIZE = PIC_SIZE
LIFETIME = CNDP_LIFETIME_TRANSACTION
TABLES
DATA = PIC_DATA
CHANGING
URL = URL
EXCEPTIONS
OTHERS = 1.
ENDIF.
CALL METHOD PICTURE_CONTROL_1->LOAD_PICTURE_FROM_URL
EXPORTING
URL = 'file://D:\img.jpg'.
ENDFORM. " SHOW_PIC -
How to display images in a simple or alv report
Dear gurus ,
i want to create a classical or ALV Report showing material codes(mara-matnr) and their respective images .
how can i achieve it means where i will store the images and how i will fetch it in the report .Plz send any sample code for this . Full points will be awarded .
Thanks ,
Amit Ranjan .hi
please use the following procedures
Upload Logo for REUSE_ALV_COMMENTARY_WRITE
For those who wish to upload and use a picture in your ALV abap reports.
Steps for uploading Logo :-:
1. Goto the transaction OAER
2. Enter the class name as 'PICTURES'
3. Enter the class type as 'OT'
4. Enter the object key as the name of the logo you wish to give
5. Execute
6. Then in the new screen select Standard doc. types in bottom window
Click on the Screen icon
Now, it will ask for the file path where you have to upload the logo
7. Now you can use this logo in REUSE_ALV_COMMENTARY_WRITE
or
Import Logo and Background Picture for Reporting
In this step, you can import a customer-specific logo and a background picture into the R/3 System. These will be displayed in the header area of reports in HR Funds and Position Management.
From the SPRO:
HR Funds and Position Management --> Dialog Control --> Customize Reporting Interface --> Import Logo and Background Picture for Reporting.
Activities
1. Enter the Name of your logo/background picture as an object key in the initial screen.
2. Make sure that the class name is PICTURES, and the class type is OT.
3. Choose Execute.
4. Double-click the document type Picture on the Create tab page. A dialog box will appear in which you can enter the path in which the logo/background picture can be found.
5. Enter the path and choose Open. The logo will be uploaded into the current R/3 System. If the logo/background picture is to be transported into other systems as well, choose Transport.
6. Return to the initial screen and repeat the procedure after having entered the Name of your background picture as an object key.
Please note that the logo/background picture can only be displayed in ALV-based reports with an HTML header. Manually programmed reports such as business distribution plans are not based on the ALV.
If you have selected several initial objects, ALV-based reports in HR Funds and Position Management will automatically use a hiearchical-sequential display. A logo is not displayed here either. Note also that the logo cannot be printed (see print preview in program).
Make sure that the logo does not exceed a height of 100 pixels because it would mean that the header of the report will be scrollable.
reward points if useful,
Thanks,
Usha -
How to display image stored in DB in XML report.
Hi,
I am trying to display an Image uploaded by custom Form's attachment in XML report.
Can someone please share the steps or suggest a link...
Thanks in advance.
MadhavCheck this out:
http://blogs.oracle.com/xmlpublisher/2006/05/inserting_blobs_into_your_repo.html -
How to display images on my internal isight?
Hi,
I just bought the new iMac 2 gig dual. Running on 10.5.2.
I wanted to know how to display images on my screen during a video conference chat without resorting to holding up a print out to the camera? I need something where I can switch from video mode to image mode and show a single image at a time if I need to. All that while still talking of coarse. If it isn't possible with my iSight software, can you point me to other software I can download and still use my built in cam?
I hope I was clear enough in asking this.
Thanks
LibanWelcome to Apple Discussions, Liban
iChat can do what you want, but I do not know of any web-based video chat site that can.
Look for Help or Support information on the site you are using or ask the Webmaster if his site has the capability to do what you want.
EZ Jim
PowerBook 1.67 GHz w/Mac OS X (10.4.11) G5 DP 1.8 w/Mac OS X (10.5.2) External iSight -
Hi all,
How to display image from the database table in the adobe form by using web dynpro abap?
I want to display image in the adobe interactive form by using web dynpro abap.
Please help me.
Regards,
sriniHi Srini,
If you go through the article you might have seen the following piece of code
*** Send the values back to the node
lo_el_z_if_test_cv->set_static_attributes(
EXPORTING
static_attributes = ls_z_if_test_cv ).
" here ls_z_if_test_cv has the image in XSTRING format which has beeen retrived using METHOD get_bds_graphic_as_bmp of CLASS cl_ssf_xsf_utilities
" In your case you need to just use the select query n fetch it from your table; ( provided your image is store in XSTRING format )
How is your image stored in your database table ?
Regards,
Radhika. -
How to display images and information
how to display images and information(e.g. like questions) on a jsp page that stored in a database
Look As far as i can see....
Utlimately every file could be expressed as a bytes buffer.
so say if you have a bean called Choice Bean which is expressed as
public class ChoiceBean{
private String choiceid;
private String choicedesc;
private byte image[];
public void setChoiceId(String choiceid){
this.choiceid = choiceid;
public String getChoiceId(){
return this.choiceid;
public void setChoiceDesc(String choicedesc){
this.choicedesc = choicedesc;
public String getChoiceDesc(){
return this.choicedesc;
public void setImage(byte image[]){
this.image = image;
public byte[] getImage(){
return this.image;
}QuestionList.java:
===============
public class QuestionList{
private List<ChoiceBean> choicelist;
/*Other member variable declarations*/
public List<ChoiceBean> getChoiceList(){
/*Custom code where you may build the list by querying the DA layer*/
return this.choicelist;
public int search(String choiceid){
int index = -1;
for(int i =0 ; i < this.choicelist.size() ; i++){
ChoiceBean cb = this.choicelist.get(i);
if(cb.getChoiceId().equals(choiceid)){
index = i;
break;
return index;
/* Other member method declarations */
}and you are retreving List<ChoiceBean> from DB using your query & have created a session attribute / <jsp:useBean> named ChoiceList
NOTE: sometimes your application server can go out of bounds as you are consuming a lot of memory by creating an arraylist object.
use the following methodology to display images & choices
sample.jsp:
=========
<jsp:useBean id="QuestionList" class="com.qpa.dao.QuestionList" scope="session"/>
<TABLE>
<%
/* QuestionList.getChoiceList() is a method which fetches data from the DB & returns it in form of List<ChoiceBean> */
List<ChoiceBean> choicelist = QuestionList.getChoiceList();
for(int i =0 ; i < choicelist.size() ; i++){
%>
<TR>
<TD><%!=choicelist.get(i).getChoiceId()%></TD>
<!-- calling servlet which renders an images in JPG format based upon given choiceid(unique field) -->
<TD><IMAGE src="ImageServlet?choiceid=<%!=choicelist.get(i).getChoiceId()%>"/> </TD>
<TD><%!=choicelist.get(i).getChoiceDesc()%></TD>
</TR>
<%
%>
</TABLE>
<%
session.remove("QuestionList");
%>
NOTE: usage of JSTL or any other custom built tag-libraries makes life more simpler in the following case
ImageServlet.java:
===============
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
byte buffer[] = null;
HttpSession session = request.getSession(false);
/*getting the QuestionList from the session*/
QuestionList ql = null;
String choiceid = new String("");
try{
choiceid = request.getParameter("choiceid");
/*getting the QuestionList from the session*/
ql = (QuestionList) session.getAttribute("QuestionList");
} catch(Exception exp){
if(choiceid.equals("") == false && ql != null ){
List<ChoiceBean> clist = QuestionList.getChoiceList();
assuming that you have created a serach method which searches the entire choice list and would give you
the index of that object which is being refered by unique choiceid and returns -1 if not found
int index = QuestionList.search(choiceid);
if(index != -1){
ChoiceBean cb = clist.get(index);
buffer = cb.getImage();
if(buffer != null){
// assuming that we have stored images in JPEG format only
JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(new ByteArrayInputStream(buffer));
BufferedImage image =decoder.decodeAsBufferedImage();
response.setContentType("image/jpeg");
// Send back image
ServletOutputStream sos = response.getOutputStream();
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
encoder.encode(image);
} else {
response.setContentType("text/html");
response.getWriter().println("<b>Image data not found</b>");
}However,i still feel there are few loopholes with this approach where Application Server can eat up a lot of heap space which may result in outofmemorybound exception.
Hope this might help :)
REGARDS,
RaHuL -
How to read bytes(image) from a server ?how to display image after read byt
How to read bytes(image) from a server ?how to display image after reading bytes?
i have tried coding tis , but i couldnt get the image to be display:
BufferedInputStream in1=new BufferedInputStream(kkSocket.getInputStream());
int length1;
byte [] data=new byte[1048576];
if((length1=in1.read(data))!=-1){
System.out.println("???");
}System.out.println("length "+length1);
Integer inter=new Integer(length1);
byte d=inter.byteValue();didn't I tell you about using javax.imageio.ImageIO.read(InputStream) in another thread?
-
How to display a pdf using outlook
How to display a pdf using outlook
You would normally right click on the PDF and select to open it with Acrobat. You have to have Acrobat or Reader installed on the machine.
-
How to make image resizable using mouse ?
Hi,
I want to know about that how to resize image by using mouse in Java Canvas. I created some tools like line, free hand, eraser. And want to know how to make an image resizable in canvas by using mouse. An image is jpeg, png, or gif format. I want to make image stretch and shrink by using mouse.
Please help me..
Thnax in advance.
ManveerYou make a listener to handle the mouse event that you want to capture, then program the affect you want using the event as the trigger.
-
How can I enable session(using url) tracking in home page
i am developing bidding application. How can I enable session(using url) tracking in home page ?
for example :
http://mydomine.com/index.jsp;jsessionid=4A38A4496F6862681DFD09CD6D648485.tomcat75
please help me.Doubleposted. Please continue here: [http://forum.java.sun.com/thread.jspa?threadID=5308686&tstart=0]
In the future, do not use the back button to edit the message, but use the edit button instead. Otherwise you're reposting the form again. You should know that better as being a web developer. -
How to display today date using formcalc
Hi all,
how to display today date using formcalc, eg April 20, 2009?
ThanskksNum2Date(Date(), "DD/MMM/YYYY", "de_GB")
-
How to display multi line headings in procedural alv report
Hi experts,
How to display multi line heading in alv( procedural alv report) report.
some columns single line and some columns multi line in the same report.
ex:
solvent consumed solvent recovered
fresh | recovery recovery | spent batch no storage
I am using procedural alv .pls give me idea.Hi Ram,
Check the sample report [how to display multi line headings in procedural alv report|http://sample-code-abap.blogspot.com/2008/01/printing-multiple-line-header-and.html]
Thanks,
Duy -
How to display subtotals in separate column in alv report?
hi,
I am displayed the subtotals for QUantity field BDMNG in Reuse_alv_grid_display in the same column.
but I want to display subtotal in separate column.
How to display subtotals in separate column in alv report?
thanks®ards.
samba.kHi
As far as i know you can't do this,the option you have is to create one more column (subtotal) and populate it by manual calculation at every subtotal (not alv subtotal but yours) .
Best Regards
Yossi
Maybe you are looking for
-
Document type KR is not picking to Clear GL account with T-code F-03
Hi all, My client wants to clear GL account Cash-in-Transit which is open item managed. He has posted two items. One is with KR document type like Intercompnay adjustment account debit (40) and Cash-in-Transit account credit (50). Second item is with
-
How To Start With Pre-Recorded Audio?
I've assembled audio-only recordings of dialogue between one and three hours long. What I haven't yet done and need help with is how to incorporate photos. Those are photos of the analoque "snapshot" variety taken from home albums. Once they are scan
-
Hello All, I am planning on running a live stream of an App demo, and we would like to use the HDMI cable to connect the iPhone to our video switcher. My concern is with the HDCP on the HDMI port: Does the iPhone have HDCP continuously enabled, or
-
Broadband Use increase since upgrade to Youview
I recently upgraded from BT Vision to BT Youview, on an option 1 broadband package, and have noticed my broadband useage is more in the last 10 days, than it has been over the last 2 months. It looks as though I will exceed my 10G allowance this mont
-
SAP Questions for WM/LE certification
Hi SAP Gurus, Can any one please forward to me a list of questions for SAP certification in WM/LE ? Thanks for your help. Regards, Manoj