Oracle Apex 5 interactive report blob image display - image

I am Having a apex application already available in Oracle APEX 4. Which is working fine.
Now i am trying to migrate to the same apex application to APEX 5.
After migrating some of the functionalities working fine in Apex 4 are not working in apex 5 like
Displaying Blob images from a DB Table as Icon in interactive report in apex 5.
I am using the below query to display image in interactive report
select
apex_util.get_blob_file_src('P16_IMAGE', image_id) as icon_image from image_table
inside my application under the list view i am getting a URL generated by the apex_util.get_blob_file_src when i try to access the below link i am getting the error in the browser
http://server-info/apex/apex_util.get_blob_file?a=107&s=3797597566580&p=16&d=299222323103903080&i=299221224544903071&p_pk1=621333&p_pk2=&p_ck=P7Pek2qEnfoo5FBbvmqn4SQ-ymA&p_content_disposition=inline
Error from the Browser :
Not found
The requested URL /apex/apex_util.get_blob_file was not found on this server
please let me know whether any specific settings need to be done for the Apex 5 Interactive report to display icon image.

Two things, Inside the region definition, Embed the function call within an image tag to display it as an image on the interactive report.
SELECT '<img src="'||APEX_UTIL.GET_BLOB_FILE_SRC('P16_IMAGE',image_id,null,'inline')
||'" height="100" width="140"/>' as IMAGE_DISPLAY FROM IMAGE_TABLE
This would enable you to control the width and size of the images as well.
Secondly, on the report attributes, make sure to have the display type as "Standard Report Column".

It is faster to use RESTful services where you reference the img URL in the IR column HTML expression. e.g.,
Check this:
http://krisrice.blogspot.ae/2013/07/using-restful-to-deliver-images-for-apex.html
Even if you want to stick to GET_BLOB, it is recommended to remove all HTML tags from the SQL query to the column HTML expression.

Simplest way to show Blob Image in Interactive Report.
Set the Static ID of Blob "PIC_ID" and Copy following in Inline CSS
td[headers="PIC_ID"] img { display: block; width: 40px; border: 1px solid #999; padding: 4px; background: #f6f6f6; }

Related

Oracle APEX: Scale image to screen

I would like to scale an image that is saved in Shared Components so that the right side of it is exactly on the right end of the screen.
How is that possible?
I am using Oracle APEX 5.1.
I am assuming you are displaying the image in a Display Image page item.
In the item properties, under Advanced, set the Custom Attributes property to:
style="width: 100%"
This screenshot shows two Display Image items based on the same small picture (held as a static application file). The second has the style property:
See my demo page on apex.oracle.com
Alternatively, this could be done using CSS defined in a file or in page inline CSS like this:
#P123_MY_IMAGE_ITEM {
width: 100%;
}
Or you could set the item's CSS Classes property to e.g. "full-width" and define the CSS as:
.full-width {
width: 100%;
}
This is probably the best option if you will do this to many images.

Panel tabbed layout in ADF

I have created a .jsf page containing one panel tabbed component. The outcome is attached .
Could anyone please tell me how to customise the panel tabbed to get the following structure? i need to increase the width of show detail items in the tabbed layout(Only the headers are needed))
You'll need to use CSS to customize the look-and-feel of your page.
You could do this by either using the style property or you could build an ADF skin.
See Oracle's documentation:
http://docs.oracle.com/cd/E16764_01/web.1111/b31973/af_skin.htm
I assume you know how to create ADF Skin. You can use this css to increase tabWidth of panelTabbed
af|panelTabbed::tab-content {
width: 200px;
}

How to Vary the width of Interactive Report Column in Oracle Apex 5

I have one simple Interactive report build in Apex 5.0. Its just simple plain statement pulling the data from table.
I need to adjust the size of each column in the so that data properly appears in the report.
Right now what is happening is that i have column called customer which contains customer name. Now name is 30 to 40 characters long and in the report it is getting broken down in two lines.
I tried using the following but there is no effect of this. Could you please help me to fix this. I have 30 columns in the report.
#apexir_NAME{width: 200px;}
You should try this using Column Formatting and set HTML Expression value like this
<div style="display:block; width:200px">#COLUMN_NAME_OF_REPORT#</div>
for example:
<div style="display:block; width:200px">#DEPT_ID#</div>
To change interactive column width:
Add static id to interactive report eg. myReport
Add static id for column in report eg. myColumn1
Add to inline css of page below code:
myReport td[headers=myColumn1]{ width:100px; }
Note: before myReport td put #
Use min-width instead. You could use either of the following:
#apexir_NAME {min-width:200px;}
or
th#NAME {min-width:200px;}
To set all of them at once, you could try something like this:
table.apexir_WORKSHEET_DATA th {min-width:200px;}

Oracle apex alternating colors in report table

Is there a way in Oracle Apex to have report tables have a different color for every other row? For example, like this. Colors would alternate for readability (the user would better know which line he/she is reading).
You can always include CSS in you oracle apex application. To show you how simple it can be done. See sample here
Easy Way
Edit your page
In CSS -> Inline section enter code:
table.apexir_WORKSHEET_DATA tr.odd td {
background-color: #def !important;
border-bottom: 1px solid #cef !important;
}
Now you can take it to new level adding custom css to you application. See here how to.

How to disable inner-outline on selected table cell in Firefox

Using Firefox on OSX when I cmd+click on a table cell I get an blue inner outline.
I searched for a way to disable this behavior on my web application but didn't found anything.
I tried to capture the onclick or set the CSS outline to 0px to no avail.
I also looked at MDC Mozilla CSS extension but many are undocumented.
Is there a way to remove this inner outlinein a given HTML doc?
You must set CSS property -moz-user-select to none of the container table element.
table {
-moz-user-select: none;
}
This will not only disable cell selection but will also unable you to select text inside the table.

Resources