A basic requirement in most implementations is displaying company logo. This article shows how to achieve it in Application Express.
Requirement:
Display Apps2Fusion logo on Person Details application http://apex.oracle.com/pls/apex/f?p=62577. To take step forward, I want to make the image clickable to redirect user to apps2fusion website in separate window.
Implementation:
Brief Steps are
- Upload company logo image in Shared Components > Images > Create button.
- Go to Shared Components > Definition (Under Application section). In Logo section, enter logo type as Image and logo as #WORKSPACE_IMAGES#a2f_logo_s.JPG. #WORKSPACE_IMAGES# is a substitution string which is replaced with actual location of image.
- To make logo clickable, enter logo type as Text and logo as
Why I switched to logo type as Text to implement clickable logo?
Lets see the detailed steps .
- Go to Shared Components > Images (Under Files section). This displays all the available images in application. Choose create to upload new image. Note that application field is optional.
- Go to Shared Components > Definition (Under Application section). For non-clickable logo, choose logo type as Image and logo as #WORKSPACE_IMAGES#a2f_logo_s.JPG. I've used logo attributes for setting alternate text and title. Alternate text (alt) is used when image cannot displayed.
- For clickable logo, choose logo type as Text and logo as . This HTML text is image tag wrapped around anchor tag with href and target attributes.
- Apply Changes and run the application.
Apps2Fusion logo is shown in top left portion of the application.
How #WORKSPACE_IMAGES# substitution string works?
Viewing page source is good way to check how substitution strings are replaced. In case of #WORKSPACE_IMAGES#a2f_logo_s.JPG substitution string, it is replaced with a function call wwv_flow_file_mgr.get_file?p_security_group_id=5937624817042064053&p_fname=a2f_logo_s.JPG
where p_security_group_id is workspace identifier. Package wwv_flow_file_mgr is in FLOWS_020100 which APEX 3.2 schema. wwv_flow_file_mgr.get_file fetches file from APEX_WORKSPACE_FILES table which contains images, css files and javascript files. Since APEX_WORKSPACE_FILES is one-stop table for above files, to reference css/javascript files in HTML code you can use same substitution string #WORKSPACES_IMAGES# like #WORKSPACE_IMAGES#custom.css or #WORKSPACE_IMAGES#customjs.js
What is difference between #WORKSPACE_IMAGES# and #APP_IMAGES# substitution strings?
APEX Workspace can contain one or more applications. If application field is left NULL when creating an image, image take global or workspace scope. It means it is not attached to any specific application.
#WORKSPACE_IMAGES# substitution string is used for accessing workspace and application images. It is replaced with wwv_flow_file_mgr.get_file?p_security_group_id=&p_fname=
#APP_IMAGES# substitution string is used for accessing only application images. It is replaced with wwv_flow_file_mgr.get_file?p_security_group_id=&p_flow_id=&p_fname=
Note the extra parameter p_flow_id added to same function call.
If image is workspace image, #APP_IMAGES# substitution string cannot be used.
What is difference between #WORKSPACE_IMAGES# substitution string and /i/ notation for accessing images?
/i/ notation can also be used for accessing images. /i/ points to physical directory on the server where images are located. Suppose if APEX3.2 is installed on windows, /i/ points to
Which notation to use? Personally I prefer #WORKSPACE_IMAGES# notation as I can upload images from APEX application which does not require access to server physical directories. I can also see the images in Shared Components > Images when they are uploaded from APEX application.
URL for the application:
My application can be accessed using the url http://apex.oracle.com/pls/apex/f?p=62577:1
Comments
advance thanks.
If you are talking about changing Oracle logo to your company logo in 11i, please follow instructions in metalink note 395663.1
Thank s
Kishore
I have concurrent program defined. I have added the debug message in the program to track the status. When I run this program, I couldn't see this message. Once this program is completed, I could see the debug messages.
When program is running, I want to see the debug messages. Can you please help me on this.
Regards
Saravanan.A
You may write your debug messages to custom error table and include it in autonomous transaction if you dont want to commit in your original program.
Kisho re
Th ank you very much.
naushad.
Jaganmohan Krishnamoorthy
REDKNEE India.
Finally, I could able to display logo in Apex 4.0 , after removing prefix and using #WORKSPACE_IMAG ES# substitution string.
Thanks .
Jaganmohan Krishnamoorthy
REDKNEE India.
But it is not working.
And what is this htlmdb in path of image?
Please explain in details.
and hossain,
If your problem is solved then you please help me.
I would be thankful to you.
regards,
http://paraorkut9.org/
custom logo design
1. I am not able to resize my logo to a small logo on top of the pages.
2. I am not able to arrange my pages for the regions to appear column-wise..i. e region for navigation bars to the left,center for main texts and lright column for announcements/a dverts for my intranet to look smart and organised.
3. Lastly, in my entry application screen, I am not able to press enter key so that it goes to the next field.
Kindly assist.
Thanks
James
my email is joluochhelb.co.ke
Jemo2009
Joined: Fri Jul 15, 2011 7:20 am
i just bookmarked your site and i will share it with others. :)
http://www.nuvodev.com/
regards...
Share d Components
User Interface Attributes
Logo
Please, Is there a way for the logo to be conditional that is - with a multilanguage site to display logo_en.jpg or logo_fr_jpg or logo_es.jpg depending on page language chosen?
I use the FSP_LANGUAGE_PR EFERENCE application level item to store the current language.
So I just named my logos en_logo.gif, fr_logo.gif es_logo.gif and then for the image used
#WORKSPACE_IMAGES#&FSP_LANGUAGE_PR EFERENCE._logo.gif
this is in regards to the user requirement where i have created a interactive report and deployed the page into ebs.
Now the user said that the report should run according to the user who login from ebs of that particular region.
my interactive report runs for all regions and i should not show all the regions to the particular user
Example:le ts say that a user from capetown has logged in from ebs. if he clicks the resposibility with the page it should display only the capetown details but not other regions
I want to add a image on home page. How do we achieve it?
Please assist me.
Regards,
Kinjal
Я не знаю, кто вы, но определенно вы идете к известному блоггеру, если
вы не уже;) Ура!
oft cases of equipment casualty that they can't win money regular though they agree
the back.
it on the theme of blogging. thanks.
speculative which web log weapons platform are you victimization for
this internet site? I’m acquiring FRS up of WordPress because
I’ve had problems with hackers and I’m looking at alternatives for some other chopine.
I would be amazing if you could repoint me in the counselling
of a upright political platform.
Give thanks you, I’ll attempt and ensure spinal column More ofttimes.
How frequently you update your website?
Thank you, I’ll try on and chip rear More oftentimes.
How frequently you update your website?
believe that this situation needs ALIR more care.
I the likes of to indite a small comment to endorse you.
I absolutely loved every little bit of it.
I have got you book marked to look at new stuff you post…
my web blog: best online casino apps (byzaixian.com: http://byzaixian.com/home.php?mod=space&uid=77417&do=profile&from=space)
Sir Thomas More aid.
as considerably as the capacity!
observe it up.
RSS feed for comments to this post