Oracle APEX: Scale image to screen - oracle

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.

Related

How to change size of pagination icons in angular-slickgrid

i have to reduce size of pagination icons and fonts in order to fit into a slickgrid
attached screenshot for ref-
enter image description here
Changing the CSS style of the Pagination buttons is not going to help much, it will barely give you back couple of pixels, if you want to do that then I added a couple more SASS variables if you want to play with them
with SASS, you can lower these 2 variables (defaults are shown below, for more take a look at all the SASS variables)
$pagination-button-height: 32px; // around 28px
$pagination-button-padding: 6px 12px; // around 4px 8px
Another thing you could maybe try is to change the English translation for "items per page" and remove the word "items" (via Translations (Wiki) or Locale File (Wiki) file depending on what you use).
{
"ITEMS_PER_PAGE": "items per page" // --> "per page"
}
The last option would be to create your own Custom Pagination but that would require much more effort but someone did just that and you can see it in this Example - Custom Pagination

Oracle Apex 5 interactive report blob image display

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; }

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;
}

Table Align Centre does not Align Centre

I'm building a simple table in CKEditor. If I select Left or Right align, it aligns in the expected side of the view when saved. However, when saved this fails if I select Centre align. It's obviously not the whole page because Centre Align text above and below will display Centre aligned. This issue only becomes apparent when "saved" ... (ie a centre aligned table will centre align in edit).
Can you suggest what's going on?
Thanks
How is the centering actually performed? If you have configured using the XHTML configuration, this sounds like a class issue - if not, it could be a CSS !important override rule.
I have CKE configured based on the XHTML example, so my CKE produces centering on table cells like this: <td class="JustifyCenter">Twilight Sparkle</td>. So, if you place the HTML generated by CKEditor in an external page, make sure that the JustifyCenter class actually defined in the parent page. Also in Developer tools that not only it the class rule exists, that it is actually correct and applies.
Also in your developer tools and check to see if your CSS style is actually working or is it being overridden. If you have a parent page CSS rule like td {text-align:left !important;} and CKE produces content like <td style="text-align:center">Fluttershy</td>, the parent page is overriding your inline CSS definition.
I'm only guessing here - it would help if you can you show us the final code as it's used when saved and also your CKEditor configuration.
the table align to center CKeditor will generate something like this, <table align="center">
but it is not working.
finally i found a solution by using CSS, here my code
table[align="center"] {
margin: 0 auto;
}

how to know when page breaks in DOMPDF

I am using DOMPDF library to generate invoices dynamically. My use-case scenario is to leave around 3 inches of space on top of each page. On the first page i created it using a blank div with appropriate height.
Now on second page, it doesn't take the required height from very beginning for obvious reasons. any suggestions?
Instead of spacer divs just set the page margins in css with:
#page { margin-top: 3in; }

Resources