Question about displaying an image among columns in a report

Hi folks,
I've looked at examples that I've come across, but I guess I'm missing something. I have a PL/SQL procedure which returns a sql statement for a report. I want to display an image between two of the columns. I already have the images stored in APEX. Can someone please point me at what I'm doing wrong here?
SELECT id INTO file_id FROM APEX_APPLICATION_FILES
WHERE filename = 'Blue box.jpg';
q:=' select ';
q:=q||'current_status_cd,';
q:=q||'APEX_UTIL.GET_FILE(p_file_id => file_id,p_mime_type => ''image/jpeg'',p_inline => ''YES'') M,';
q:=q||'userid,';
q:=q||'usernum,';
q:=q||'lastname,';
q:=q||'firstname';
q:=q||' from some_table ';
return q;
Thanks very much,
-Adam
Edited by: avonnieda on Nov 11, 2008 12:28 PM

Hi Varad, thanks for your reply.
Since posting I tried that too, here is the code I'm using. It always results in a
failed to parse SQL query:
ORA-00936: missing expression
whenever I run the page. Any ideas? Here's the current code. If I remove the line that we're talking about, it runs fine.
q:=' select ';
q:=q||'current_status_cd,';
q:=q||'<img src="#APP_IMAGES#Bluebox.jpg"> image,';
q:=q||'userid,';
q:=q||'usernum,';
q:=q||'lastname,';
q:=q||'firstname';
q:=q||' from some_table ';
Thanks very much,
-Adam

Similar Messages

  • Question about displaying data

    Based on the search criteria I need to show some info. with check box on each item, but it might retrun upto fifty items (between 1 to 50 items). Should I create checkbox/output text dynamically or how do I handle this scenario? In the jspx how do I loop it and display? Thank you.

    hi user13094256
    See my reply in your other forum thread with the same question
    at Question about displaying data
    regards
    Jan Vervecken

  • 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&regards.
    samba.k

    Hi
    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

  • How to display more than 60 columns in a report

    I have a table defined as follows
    id
    column_name
    column_value
    data sample
    id col_name column_value
    1 col1 val1
    1 col2 val2
    1 col3 val3
    2 col1 val1
    2 col2 val2
    2 col3 val3
    now I want to display the data in a report as follows
    id col1 col2 col3
    1 val1 val2 val3
    2 val1 val2 val3
    I was able to generate output using pivots [http://technology.amis.nl/blog/1197/pivot-dynamic-data]
    the problem is that I can have more that 60 columns retrieved in each row, the pivot solution will retrieve them correctly but I can't display more than 60 columns in apex reports, why this restriction in apex, any solution

    Hello:
    In the Source section of the report definition choose 'Use Generic Column Names (parse query at runtime only)' and then specify a suitable value for 'Maximum number of generic report columns:'
    Varad

  • Question about displaying image with JLabel

    Hi
    I need to display an image. The image is determined by the user at run time, so the dimension of the image is unknown. Is it possible for JLabel to stretch the image so the whole image(instead of only part of it) will always fits into a certain dimension?
    thanks.

    For this you need to create a custom class that extends ImageIcon
    and define the methods there.
    see Java Tutorial for it.
    For eg., to scale an image , you can use
    JLabel label = new JLabel();
    Image img = new ImageIcon("Pics/Ash.jpg").getImage();
    int width = img.getWidth(null);
    int height = img.getHeight(null);
    //This would scale the Image by 200%
    Image bimg = image.getScaledInstance(width*2, height*2, Image.SCALE_SMOOTH);
    label.setIcon(new ImageIcon(bimg));
    //There is also another way
    //Use drawImage and use BufferedImage
    BufferedImage buff = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
    Graphics g = buff.getGraphics();
    //Scale the Image to 200%
    g.drawImage(img, 0, 0, width*2, height*2,  null);
    lable.setIcon(new  ImageIcon(buff));Hope you get the idea!!

  • Question about ZEN 4 imaging

    We are using ZENWorks 4 imaging (with IR5) and have been using the documents about automating the imaging process. The question that I have is when the workstation it reimaged and reboots, ZENWorks agent comes up with the windows that indicates that it is making changes to the computer and states not to log in till the machine reboots. I believe it is taking the ZIS information and putting this information back into the workstation. (workstation name etc). On windows 2000 the machine reboots without any problems when this process is complete. With Windows XP the machine does not seem to reboot. If the workstation is manually rebooted everything works fine. I have found that if the workstation is left for about 10 minutes, it will actually reboot on its own. Is there a way to have this reboot occur more quickly?

    Didn't know that this could be done. Where do I make those changes.
    Thanks.
    Brian
    >>> Marcus Breiden<[email protected]> 03-Aug-05 8:30:24 AM >>>
    On Wed, 03 Aug 2005 10:53:30 GMT, Brian wrote:
    > Is there a way to have this reboot occur more quickly?
    yes... you could disable the feature that you are directly able to login
    without pressing ctrl-alt-del
    on the other side I just had wks this week who rebooted itself without this
    directly...
    Marcus Breiden
    Please change -- to - to mail me.
    The content of this mail is my private and personal opinion.
    http://www.edu-magic.net

  • Simple question about displaying a BufferedImage in Swing

    I have a program that is working on medium-sized BufferedImages (600x600 or so). I really just need to display them. Right now, I'm doing:
    panel.add(new JLabel(new ImageIcon(bufferedImage)));
    It works, of course, but is this the right way to do it? Or is there some better way to express that?
    Thanks

    I guess I associate "icons" with actions, or links to things, or some kind of UI component, rather than just a way to display an image. But it's fine, I'll use it.
    Thanks

  • [Forum FAQ] How to display an image from Http response in Reporting Services?

    Question:
    There is a kind of scenario that users want to display an image which is from URL. In Reporting Services, if the URL points to an image file, we can directly display it by typing the URL in embedded image. However, some URLs are just sending Http requests
    to server side, then redirect to another position and the server will return the image. For these kind of URLs, Reporting Services can’t directly render the image from Http response.
    Answer:
    To achieve this goal, we can add custom code into the report. Pass the URL as argument into our custom function so that we can create HttpRequest and get the HttpResponse. Then we can use custom function to return the Bytes() from the HttpResponse and render
    it into an image in report.
    Ps: In Reporting Services, it only support drawing Bytes() array into image, so we need to have our custom function return Bytes array.
    Add the assembly and custom code into the report.
    Public shared Function GetImageFromByte(Byval URL as String) As byte() 
                    Dim photo as System.Drawing.Image 
             Dim Request As System.Net.HttpWebRequest 
           Dim Response As System.Net.HttpWebResponse 
                  Request = System.Net.WebRequest.Create(URL)         
                     Response = CType(Request.GetResponse, System.Net.WebResponse) 
                 If Request.HaveResponse Then  
                      If Response.StatusCode = Net.HttpStatusCode.OK Then                    
                           photo = System.Drawing.Image.FromStream(Response.GetResponseStream) 
                     End If 
                 End If 
                  Dim ms AS System.IO.MemoryStream = new System.IO.MemoryStream() 
                 photo.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg) 
                    Dim imagedata as byte()  
                    imagedata = ms.GetBuffer()  
                    return imagedata
    End Function
    Grant the permission for assemblies. 
    Go to: 
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\RSpreviewPolicy.config 
    C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\rssrvpolicy.config
    Give “FullTrust” for Report_Expressions_Default_Permissions.
    Insert an image into report. 
    Expression:
    =Code.GetImageFromByte("https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcSrVwPoAtlcA2A3KaiAJi-XjS4icr1QUnKYr7uzpX3IL3g2GPisAQ")
    The Result looks below:
    Applies to:
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Reporting Services 2014
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    >
    Hi, I'd like to display a dynamic image from the web inside a JLabel or any other swing component it could work in. I've been looking on the Swing tutorials and others forums, all I can have is that a JLabel can load an Icon object, defined by an image URL, but can this URL be like "http://xxxxx/image.jpg" somehow or can it only be a local image URL?>
    I do not know why you start talking about an image on the web then go on to show concerns about whether it will work for a 'local' URL.
    But perhaps this answer will cover the possibilities.
    So long as you can from an URL to the image, and the bytes are available for download (e.g. some web sites wrap a direct call to an image in HTML that embeds the image), the URL based icon constructors will successfully load it.
    It does not matter if that URL points to
    - a web site,
    - a local server ('localhost'),
    - an URL representation of a File on the local file system, or
    - it is inside a Jar file that is on the application's run-time classpath.
    How you go about forming a valid URL to a 'local resources' (or indeed what you regard as local resources) is another matter, depending on the form of the project, and how the resources are stored (see list above).
    Probably the main reason that examples use images at a hard coded URL on the net is that it makes an 'image example' self contained. As soon as we compile and run it, we can see the result. I have posted a few examples like that on these forums.
    Edit 1:
    BTW - Welcome to the Sun forums
    Edited by: AndrewThompson64 on Apr 21, 2009 12:15 PM

  • Question about setting Rows to "All" for defualt Interactive Report

    I have a default report with 2 user requirements that I have some questions about.
    1. The report in the data sould be 90 days old.
    2. The report show "All" rows.
    First to set the date I have this page process:
    apex_util.ir_clear(p_page_id => 2);
    apex_util.ir_filter(p_page_id=>2,
    p_report_column=>'REQUISITION_DATE',
    p_operator_abbr=>'GTE',
    p_filter_value=>SYSDATE - 90);
    I also set the rows to "All" and save the report to be the default. However I think when the "apex_util.ir_clear(p_page_id => 2)" is executed it clears someting and my report opens with rows set to "15".
    Any ideas on this or even a better way to do it?

    the following link may help...
    It says that the ir_clear "Clears any report filters including default filters"
    apex_util.ir_* documentation - where to find them?
    Gus..

  • Question about changing ID3 images

    Hey everyone. I recently changed my podcast artwork. I use Powerpress, so changing the MAIN artwork was quite easy. So for this question, I am referencing only the individual art that is displayed with each individual episode.
    I know that for iTunes to recognize a change in episode artwork, that it cannot have the same name as the previous. The new artwork embedded does have a new name but is it the artwork that needs a different name, or the entire mp3 that needs a new name? Once artwork becomes embedded as ID3 I'm not sure if it loses its name altogether. So I need to know specifically what needs a new name for iTunes to update my episode art? Pic name or mp3 name?
    Thanks for your time!

    Thanks for the response Roger.
    So just to be clear, I have changed the images embedded in my MP3s. I then re-uploaded them to Libsyn using the replace function. So I now have MP3s with the exact same name as before, but with a new image embedded. Are you saying iTunes will see the image change in each episode even though the name of my MP3 is exactly the same?
    So far, iTunes has immediately updated my main podcast image but all my individual episodes still have the old image.
    You can probably see what I'm talking about by searching iTunes for Netflix Junkies. You'll see that 'episodes' has different artwork than 'podcasts' in the search results. Do I just need to wait it out? Or rename my mp3s?
    Keep in mind, there is another podcast with the same name no artwork. This is not my podcast but someone else's.
    Thanks again!

  • To display an image on column

    Hi experts,
    I have a Report based on sql query, and one of column has the value, 'RED'. I would like to display a red icon instead of the string value.
    Does anyone have idea to implement this?
    Thanks in advance,
    Rui

    Hi Paul,
    Thank you for the help. I actually tried the same query before posting the question, but the image unfortunately was not appeared on the column :-(
    I am using Application Express 3.1.0.00.32 on 11g db, and the query is below:
    select     "NAME" as "NAME",
         "ID" as "ID" ,
    (select count(*) from softproj_tasks proj where proj.project_id = p.id and ACTUAL_COMPLETE is null) projects,
    (select count(*) from softproj_features f where f.project_id = p.id) features,
    (select count(*) from softproj_milestones m where m.project_id = p.id and ACTUAL_DATE is null) milestones,
    (select count(*) from softproj_links x where x.project_id = p.id) links,
    (select count(*) from softproj_releases x where project_ID = p.id) release,
    project_status,
    default_release_id,
    DECODE(PROJECT_PROGRESS,'RED','<img_src="#WORKSPACE_IMAGES#red01.gif"/>',
    'GREEN','<img_src="#WORKSPACE_IMAGES#green01.gif"/>',
    'YELLOW','<img_src="#WORKSPACE_IMAGES#yellow01.gif"/>') image_value
    from     softproj_projects p
    where (:P24_SEARCH is null or instr(upper(name),upper(:P24_SEARCH))>0) and
    (nvl(:P24_SHOW,'ALL')='ALL' or nvl(project_status,'ACTIVE') = 'ACTIVE')
    And html source is displayed as follows:
    <td headers="IMAGE_VALUE" class="t13data" style="background:#dddddd;"><img_src="wwv_flow_file_mgr.get_file?p_security_group_id=987715809494418&p_fname=red01.gif"/>
    Anything wrong above???
    Thanks,
    Rui

  • Question about creating and updating new columns in a table

    Hi, I have a couple of questions that would love some answers to
    Please bear in min that questions relate to datawarehouse / Just large tables with say about 50 million records
    1) How do you create new columns in a big table
    2) how do you update the new columns
    3) would you create an index on a column in a table with 200m rows when the only two possible values are stored in the column (e.g.Y, N) - give your resason
    my aswers to these would be
    1) simple alter table ...
    2) simple update statements
    3) No need to create an index
    I might be wrong on these in the context of datawarehouse
    cheers
    css_jay99

    If the number of Y vs. N is about 50/50, you only have to parse through 50% of the
    overall amount of columns.Fnord. If the ratio of Y to N was 1:20 then the index would be useful for searching for values of Y only. Or if the column is nullable and the bulk of the entries were null then it might be useful. But a 50/50 split? FTS is much more effective.
    So, it does depend on the data distribution, but in most cases such an index would never be used (or should never be used).
    Cheers, APC

  • Question about printing an image/control Using Report Generator

    The attached VI is an example of creating a report from a control or image. My problem is that when the control (xy graph) gets too large in the vertical direction it clips the image but, the horizontal is scaled to the width of the report. 
    First question is why does it scale in the horizontal and not the vertical? See the Test.pdf for what I am talking about. 
    Second, is it possible to control this behavior (edit/create an alternate for the Append Control Image to report or the Report VI's)?
    I have found many work around but ultimately it comes back to; why automatically scale one direction but not the other?
    For this application I don't mind that the graph is scaled down in the horizontal I just wish it would do the same thing in the vertical axis (I don't even want it to be a 1 to 1 zoom ratio, just fill the avalible report space).
    Thoughts?
    Attachments:
    Print XY Graph TEST.vi ‏55 KB
    Test.pdf ‏217 KB

    I agree all of the workarounds have limitations. One workaround, that I'm not sure if you have tried yet is change the numeric constant from 50 to 20 (I attached a picture showing which constant I am talking about). This seems to fix the issue just because the image never becomes larger than the report page itself.
    Let me know if that option creates any problems for you as well.
    Kevin S
    Applications Engineer
    National Instruments
    Attachments:
    Block Diagram.PNG ‏29 KB

  • Question about adjusting an image to compensate for an alpha black overlay

    I don't know how accurate that title/question is but please hear me out and I'l explain it as best I can.
    There is a touchscreen monitor in my car.
    It allows custom background wallpapers to be loaded via USB.
    The touchscreen automatically adds what would appear to be about a 25% alpha black layer in FRONT of the image so the touchscreen controls and icons are clearly visible.
    The problem is, I don't know what values I'm supposed to adjust on my image in order to get it to look the same way it does on my computer screen.
    Would you adjust the brightness?  Contrast?  Tint?  A combination of all of them?
    Or is this simply not possible because the ~25% alpha black tint is placed OVER the wallpaper?
    I'd really appreciate some advice.  I don't mind tinkering with the values and using trial and error but I don't want to waste my time if this simply isn't possible.

    Just so it's clear, you're not going to be able to "brighten it up" so it looks just like the original - at least not completely so.  An image can only be as bright as bright white.  If that has been reduced by an overlay, you're not going to be able to make the original image "brighter than white" so as to compensate.  Maybe someday, when HDR image formats are common...
    The car is darkening the image on purpose in order to make the locations of the controls more obvious.  I can't imagine why you'd want such a busy image as a background, since it makes the actual controls difficult to find.
    I read an article today that says that testing has shown that automotive touch screens distract drivers as much as a 0.08 blood alcohol level.  And you're wanting to make it more difficult to find those controls.
    Whatever you do, please be careful.
    -Noel

  • Satellite A100-599 - question about display driver update

    Hi,
    I have a Satellite A100-599 with a NVIDIA 7600go graphic card and I have Bioshock like most of you the game crashes because of some problems with the graphic card drivers, no pb...in the meantime NVIDIA released some new patches to the Forceware and after I rechecked the Toshiba driver support database I saw a new release in the Display driver list for WinXp.
    One of them seems to be from 13/09/2007. I downloaded the drivers, installed them and after I checked the driver details in the Device manager list and to my surprise the details said the drivers are from 2006. I reinstalled the drivers and the same thing appeared. I checked the XML that was in the drivers archive and surprise ...the drivers are really the old ones from 2006. So my question is this: Do you have any Display Drivers for my model that work for Bioshock :D
    Regards,Marian

    I dont know if WE have. I think it would be took some long time to ask every single user: hey, do you have some drivers for blackmodjo? Ah, come on, please. Just a little bit of them... ;)
    No, I have a better idea. Its like cooking a meal. The ingredients: DriverCleaner Pro and the website www.laptopvideo2go.com and .... ta ta ta TAAAA a lot of patience
    To get some good "bio"shocked meal just follow this receipt:
    Go to
    http://www.laptopvideo2go.com/
    read before you do anything (YES, even before you continue BREATHING) the FAQ-section on that site (RECOMMENDEDRECOMMENDEDRECOMMENDED)
    and then download the drivers. Do it, yes...
    Then download drivercleaner by searching for it on www.google.com and THEN, read their Manual before doing anything else (Ok, you can continue breathing..)
    After reading their manual you will something like:
    1. Starting program, doing something, restarting machine
    2. starting in safe mode, starting that program, removing..yadayadayada
    3. Installing new driver
    3. Playing Bioshock
    4...
    5..no..6. Thanking me and giving me your first born.. ;)
    So, by cutting away around 40% of my humoristic stuff and following the constructive technical instructions from me you will be able to play bioshock.
    Greets :)

Maybe you are looking for

  • How can i get an audible account

    I downloaded an audible book from amazon and want to transfer it to my itunes library but it is asking me for my 'audible username and password'. I then type in my itunes username and password and it says invalid username or password. What do I need

  • Question re Create PDF from Word doc

    Hi I am trying to create a pdf from a Word document (Word 2007, Acrobat 8 Professional), and am having lots of trouble with images,fonts and document overhead. With the fonts, i generate the PDF by saying Create Pdf from the plugin in Word. I specify

  • Problem in printing the box in scripts

    Hi all,          I have created a box in main window. i have to create one horizontal line and four vertical lines in that box. for that on i have written the code as given below.But here the problem is it draw only one vertical line but i need four

  • Pueden decirme para que se utiliza writing waverform data to file

    me encontre con un pdf que habla acerca de filtros y menciona mucho writing waverform data to file  y especificamente no se para que se utiliza podrian ayudarme ezplicandome su uso y en donde lo puedo conseguir?. muchas gracias.

  • Replace osx with window

    Could I replace osx with window in a Mac mini with Fusion drive?