'completed' bar image on a report
hi,
I have got a report based on an sql query and I need an image within the report to display the completed percentage.
This image will consist of a bar and a number 0-100 the length of bar will corespond to the number.
any ideas?
Thanks
Tom
Hi Tom,
You have quite a number of available options:
1 - An image for each percent
2 - One image and specify the width according to the percent
3 - A DIV tag with a coloured background and specifying the width according to the percent
Personally, I'd go for (3) as it's easier to implement and could, if you so chose, have different coloured backgrounds according to a percent range. If you want to do something like this, then:
1 - Create a derived column
2 - Set the source to something like:
<DIV style="width:#percent#px;background-color:#colour#">&nbsp;</DIV>
Regards
Andy
Similar Messages
-
How to insert a conditional image into a report
Hi
I am fairly new to HTML DB, but I have managed to create my first application.
I need a little help with one report.
One of the columns in the report contains Y, N or R. The customer wants me to display a different coloured image depending on the value (ie a red button for N, green for Y or amber for R).
I have can add a static image to a report via "Column Formatting" -> "HTML Expression", but I have no idea how to make it conditional.
Any ideas?
Many thanks in advance.
RakGreat, that works!!!!
Thanks very much.
For completeness (incase anyone else reads this), there was one typo, in your solution, you omitted the opening '<' in the image source HTML tag
select loanno, itemid,
decode (returned, 'N', '<img src="#IMAGE_PREFIX#bullet_red.gif" border="0" alt="Loaned">',
'Y', '<img src="#IMAGE_PREFIX#bullet_green.gif" border="0" alt="In Library">',
'R', '<img src="#IMAGE_PREFIX#bullet_orange.gif" border="0" alt="Returned">'
) as status
from loans
Thanks for your help,...
Rak -
Showing dynamic and unknown number of images in SSRS report
I am using SSRS 2008. I need to display an unknown number of unspecified images on the report.
Basically I have a webpage, where the user selects a specific ID (ex. 24) from a dropdown and then click "View Report".
The report should then display any images, associated with that ID. The only thing I know about the images, is the path to where the images are stored. The path is kept in a database, so I should be able to retrieve the path ok.
But then how do i get the report to display the images, when I do not know the name or number of images?
Please help.Hi dukie4lif,
According to your description, you have a report to display images selected by users. Now your issue is, the users select a specific ID to get images, but you only have the path of images stored in your database. Is my understanding correct?
For your requirement, if the users want to get images by selecting a specific ID, this ID must be stored in database and associated with the path of those images. Otherwise the database can never query any records with this ID if it doesn’t have any ID stored.
Now we need to go to your database, create one more table or add one more column in the table which have your path stored to store those IDs, and let them associated with those path. Use a parameter in this report for users selecting IDs. Then your goal will
be achieved.
Reference:
Report Parameters (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou (Pactera) -
Hi all,
I have a table, Standard_Products, and i want to show an image in my report along with some other data.
I am using file browser to import the images at the moment.
Please advise what to do - at the moment the column is showing "Datatype" instead of the image itself.
Thanks,
RobTake a look at: http://htmldb.oracle.com/pls/otn/f?p=18326:54:2841216309756218::::P54_ID:268
Mike -
Hi,
I want to create Badges from employee table (ID, NAME, JOB_TITLE, PHOTO). I downloaded and installed a demo application "USING DYNAMIC IMAGES IN PDF REPORT". It works fine with smale images < 20K. I'm getting the following error for images > 20K :
"ORA-06502: PL/SQL: numeric or value error: raw variable length too long"
it seems like a buffer problem.
could you pls help to solve this problem
Thanks,
RibhiHi Carsten
That was exactly* I was looking for. Maybe I should Google more in German ;-)
The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
After moving the image inside the group....it works great!
(One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
@Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
The way I use it now (very similar to Carsten's description) there is no limit....
Thank you all!
Roel -
How can I import an image in a report and see it in a RTF
generated file? If I follow the help of the Report Builder 6i,
and after resizing the image, there are always problems in
MSWord - either the image has another size, or it is in some
other place of the report. If I generate the same report into a
PDF it is running well...
Thanks.Hi,
Please refer this link.
I guess you have to place image into two location. Please refer the location path the below link then try to use same syntax
http://satyaobieesolutions.blogspot.in/2012/08/fmap-in-obiee-10g-obiee-11g-using-fmap.html
Thanks,
satya
Edited by: Satya Ranki Reddy on Sep 3, 2012 4:48 PM
Edited by: Satya Ranki Reddy on Sep 3, 2012 4:50 PM -
Hi,
I'm working with obiee 11.1.1.6.1 and I need to add images in a report column.
I tried to follow the advices of Gerard for formulas as in
http://gerardnico.com/wiki/dat/obiee/image
but I don't see the images. I used the formula
'<img src="dir/dir/.../myimage.gif">' with data format HTML.
What wrong? Thank for your help.
maxb (Italy)Hi,
Please refer this link.
I guess you have to place image into two location. Please refer the location path the below link then try to use same syntax
http://satyaobieesolutions.blogspot.in/2012/08/fmap-in-obiee-10g-obiee-11g-using-fmap.html
Thanks,
satya
Edited by: Satya Ranki Reddy on Sep 3, 2012 4:48 PM
Edited by: Satya Ranki Reddy on Sep 3, 2012 4:50 PM -
I have an scan image in my report. I can see the image in the Layout editor but when the report runs all that comes out is a blank piece of paper. The image does not print.
The version of reports is 2.5. Does anyone have any idea why the image does not print.
Thank You
JKHi
If you are using a scan image (which is a bit map)in rep 2.5 and run them through oracle applications 11 and below you may have do lot of system level programming to support bit map images, because oracle apps 11 and below are charter based they do not support bit map. There may be a work around I had been trying for the past 2 years. But with apps 11i and rep6i this is possible.
null -
I have created two related Blurb books in Lightroom 5 (Volumes 1 and 2) but my balance of page numbers is off. So I'd like to take some pages out of one book (complete with images) and paste them into the other. Is this possible?
Can you zip up a few of your GoPro images, upload them to dropbox.com and post a share link, here, so others can experiment with them, or do you mean this issue is global to all camera models?
-
How to insert a dynamic image in a report
Hi,
I want to insert the image of a student in a report toghether with all other student's data. The image's file name is in a field of the students' table and the file is stored in a directory of the web application. I am using Visual studio 2010 and the reports are prepared with Crystal Reports 2008 (full product). At design time, when I try to insert an image on the report, it immediately asks for an image file on the computer, so I cant figure out how to insert an image whose path and file name come from a data source.
Thank youHi Don,
As I said, when I insert any field in the report, say for instance the Student ID, and then link it to a database field containing the name of the image file to display (I have to concatenate the path to this file name as well), it first shows the report with the Student ID. If I click on it, because of the hyperlink defined at design time, it opens the file (an image in this case) in Internet Explorer, not on the report.
The same happens if I put an image as an object on the report at design time. In this case as soon as I put the image object on the report it forces me to select an initial image to show on the report. Anyway, I define an hyperlink for this image, pointing it to the image file of the Student, using the database field containing the image file name. When I show the report I see the initial image I was forced to use and when I click it, the hyperlink takes me to the right student image, but even in this case it shows me the right image opening an Internet Explorer session and not on the report. On the report the initial image is still there and never changes.
What I actually need is a way to put the student's image on the report as soon as it shows the other student's data, as the name, age, ***, and so on, without having to click somewhere to show the student's image.
Thanks -
How to attach an image in xls report
Hi, does anyone knows how to insert an image in excel report?..
We'd been working this for so long and it seems that the report cannot locate/render the image properly ..
I hope someone can give me some tips and help..
Thanks ..
--original sql code TEXT format
OWA_UTIL.MIME_HEADER('application/vnd.ms-excel', TRUE, 'MaGiC_KeY');
HTP.P('Content-Disposition: attachment; filename="' || V_RPT_TITLE_NO_SPACE || '.xls"');
OWA_UTIL.HTTP_HEADER_CLOSE;
--end of original sql code
--begin DEV mode Insert Image - Logo
--OWA_UTIL.MIME_HEADER('application/vnd.ms-excel', TRUE, 'MaGiC_KeY');
owa_util.mime_header( 'application/octet-stream', FALSE );
htp.p('Content-Type: application/ms-excel');
HTP.P('Content-Type: multipart/related; boundary="----=_NextPart_01CA74F8.C8882F00"');
HTP.P('------=_NextPart_01CA74F8.C8882F00');
htp.p('Content-Disposition: attachment; filename="filename.xls"');
-owa_util.http_header_close;
--end DEV mode
base64 code (image)
HTP.P('------=_NextPart_01CA74F8.C8882F00
Content-Location: file:image001.jpg
Content-Transfer-Encoding: base64
Content-Type: image/jpeg
/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAUAAA/+4ADkFkb2JlAGTAAAAAAf/b
AIQAAgICAgICAgICAgMCAgIDBAMCAgMEBQQEBAQEBQYFBQUFBQUGBgcHCAcHBg.....')Two thoughts.
The first is to ask Microsoft since it is their software.
The second is to throw Excel away and get a real report writer like Business Objects or Cognos or one of the many report creating projects Oracle provides.
Excel, by definition, is a violation of audit trail rules. -
How to display an image in a report ?
I put the following code into the PLSQL - section <after header is shown>:
declare
v_str varchar2(2000);
v_rowid varchar2(200);
begin
select ROWID into v_rowid from mytable where id=1;
v_str:=htf.img(curl=>'http://rdspc23/pls/portal30/PORTAL30.wwa_app_module.file_download?p_block=DEFAULT&p_object=BILD&p_source='| |PORTAL30.wwv_htf.url_encode(v_rowid));
htp.p(v_str);
end;
(This code is extracted from a form and inserted in my report.)
If the image is in the browser-cache i can see the image and everything works properly. If the image is not in cache then there is only a broken link.
When i try the link in a separate browser window the folloing error message appears:
No data returned from stored procedure
The PL/SQL gateway invoked a stored procedure as part of processing the URL but the procedure returned no data.
What can i do to insert an image in a report.
Are there any documentation for the plsql-packages which portal is using ?I tried it doing it this way and it worked -
1. copy the image into the directory aliased in 9iAS configuration file as '/images/'.
2. In the PL/SQL code section after header, I write the following code -
begin
htp.p('<img src="/images/pobexp.gif"/>');
end; -
Thumbnail images in crystal report XI R2
Please help on how to show thumbnail images in crystal report XI R2 using Oracle datbase.We are storing the images in database using image location ex:http:
..jpg and not the image itself.Crystal does not have the bility to use thunbnails. But that would be a great enhancement. I'll add it to the Enhancement request database.
-
Displaying image in abap report
Hi Everyone.
I need to display an image in a simple ABAP report giving the filepath of the image.
Can anyone suggest me how to do it???
Is there any FM for that, i need some solution.
Kindly help.
Thanks
Regards
NaveenI need to give the path of the image in the report itself and then while executing i must get the image in the output screen...
Giving path is a must.... -
Hi All,
I want add image in ABAP Report.
Please let me know how it can be done?
Regards,
Jagdish MoreHi Jagdish,
to upload the image follow these steps.
1. Upload image in web repository.
Go to Transaction SMW0 to upload the image in SAP web Repository. elect second radiobutton u201DBinary data for WebRFC applicationsu201D and click on find.
2. Click on Execute.
3. Click on Create and give the obj.name and description and click on import.
once the image gets uploaded.in your program do the following
1. Create a Screen.Go to Layout and create Custom Control.I have named it as u2018CONTAINERu2019.
2. Declare container(Custom Control name),picture(child of Container) and url in Top of the program.
data container type ref to cl_gui_custom_container.
data picture type ref to cl_gui_picture.
data url(256).
3. Now create the object Container and Picture.
create object container
exporting container_name = 'CONTAINER'.//name of the custom control
create object picture
exporting parent = container
exceptions error = 1.
4. Now we have to load the picture from the database which we have uploaded. For this we need to declare the following:-
data query_table like w3query occurs 1 with header line.
data html_table like w3html occurs 1.
data return_code like w3param-ret_code.
data content_type like w3param-cont_type.
data content_length like w3param-cont_len.
data pic_data like w3mime occurs 0.
data pic_size type i.
5. Refresh the Query table and give the name of Query table as u2018_OBJECT_ID_u2019 and value as the name of logo/Image which u have uploaded.Append the value in the Query Table.
refresh query_table.
query_table-name = '_OBJECT_ID'.
query_table-value = 'ZLOGO.GIF'."name of logo
append query_table.
6. Now call the function WWW_GET_MIME_OBJECT to get the logo/image which u have uploaded and call the function DP_CREATE_URL to create the url where the image is present.
call function 'WWW_GET_MIME_OBJECT'
tables
query_string = query_table
html = html_table
mime = pic_data
changing
return_code = return_code
content_type = content_type
content_length = content_length
exceptions
object_not_found = 1
parameter_not_found = 2
others = 3.
if sy-subrc = 0.
pic_size = content_length.
endif.
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.
7. Finally we have to upload the image from the URL, this can be done by calling the method: picture->load_picture_from_url
call method picture->load_picture_from_url
exporting
url = url.
Now Save,Activate and Execute the Program , Image/Logo got successfully uploaded.
I have already done this program and uploaded the image...
this will surely help you
Thanks and regards,
Tanmaya
Maybe you are looking for
-
Mystery of mysteries. Can't get rid of "Glossary" text on Favorites tab.
I consider myself relatively well-versed in chm file compiling and chm related issues, but this one has me stumped... System Specs; RH 9 now (initial English help in background below was compiled using RH 7) Windows 7 64-bit First, the background --
-
I check the Send Crash Report box, but it won't take... the next time I look, the box has become unchecked.
-
The new Places feature doesn't seem to allow you to custom label locations. It seems entirely dependent on what Google decides to call your "place." For example, I ate at a certain restaurant, and my search for the location brings it up. However, whe
-
Hi, I'm using XI to request a non-xml third party webservice. This webservice requires a normal https POST with a parameter called "p". This allows for a simple form on a browser to be able to use it. When the request is done by a regular browser lik
-
How to make a Corkscrew-like line
Does anyone know of a tutorial on how to create a decent corkscrew-like curly line? I've been wracking my brain trying to find a good way to do it in Illustrator, but haven't been able to do anything clean. It feels like there's probably something ob