Sie können mich buchen für:
Individuelle Schulungen für XPages, JavaScript und Appcelerator Titanium Software-Entwicklung für IBM XPages, Appcelerator Titanium (Mobile Apps iPhone, iPad, Android, Blackberry 10), Mobile Web und IBM Notes
PageIcon in Composite Application: where is the mistake?
Julian Buss, May 31st, 2010 11:22:19
Tags:  composite applications 
I want to change the page icon (com.ibm.portal.PageIcon) in a composite application. But. It. Simply. Does. Not. Work.

Here are the steps, please enlighten me what's wrong:

1.) In 8.5.1: opened composite application editor, opened page properties, opened icon selector, icon icon list is being read and... nothing. No entry in the list, I cannot select an icon (yes, there is a PNG-icon in the app!).

2.) in 8.5.2 I don't have the CA editor installed, so I opened the XML directly. Searching for "PageIcon" revealed the following entry somewhere in the XML:

"com.ibm.portal.PageIcon">
               "" xsi:type="base:String"/>

 
I took the equivalent entry from another application and changed it to:

"com.ibm.portal.PageIcon">
               


No luck, Icon didn't changed.

3.) Then I looked for the section in the XML describing the page the application starts with. I found it and added

"com.ibm.portal.PageIcon">
             "nrpc:///C1256E980026EBBC/icon?file=youatnotes%5Cdevelopment%5Ccrm%5Cproduct%5Ccasetracker.nsf&name=ca_applogo.png" xsi:type="base:String"/>              


Again, no luck.

4.) I changed the URL in the property to:

"com.ibm.portal.PageIcon">
             "nrpc:///[rep_id]/ca_applogo.png?OpenImageResource" xsi:type="base:String"/>              


or

"com.ibm.portal.PageIcon">
             "notes:///[rep_id]/ca_applogo.png?OpenImageResource" xsi:type="base:String"/>              


Both without luck.

Please can someone share the missing link with me?


UPDATE 1. july 2010: I nailed it down. The icon selection dialog in the composit application editor works when I remove all image resources except one. In the app there are about 300 image resources, so it seems that the icon dialog has a problem with that amount of images. I made a reproducible case and sent it to IBM.
Comments (4) | Permanent Link

Comments:
1) PageIcon in Composite Application: where is the mistake?
Alex Bartels 18.05.2011 15:16:35

Hi Julian,

It's just one year ago. I think I have a solution for you. Try this (only the name of the image resource):

"com.ibm.portal.PageIcon">

"ca_applogo.png" xsi:type="base:String"/>

Regards

Alex

2) PageIcon in Composite Application: where is the mistake?
Julian Buss 19.05.2011 09:06:20

thanks, Alex :-)

3) PageIcon in Composite Application: where is the mistake?
Dev 06.03.2013 07:19:35

Hi,

Could you please help me with the pageicon issue. I have a form which I display on the right hand sidebar and needed a pageicon to display, however nothing seems to work for me.

4) PageIcon in Composite Application: where is the mistake?
Dev 06.03.2013 07:37:58

Hi Julian,

This is my code. Please help.

<base:nls-string xml:lang="en">My Links</base:nls-string>

</title>

<description/>

<preference name="com.ibm.portal.PageIcon">

<base:value value="tab_calendar_16.png" xsi:type="base:String"/>

</preference>

Add a comment
Subject:
   
Name:
Mail:
Web:
 
Comment:  (No HTML - URLs with leading http://)
 
remember me?   
You can hire me.
See my Linkedin profile for details.

Thanks for reading and have a nice time here!

Please note my Apps for iPhone and iPad: NotesBook: takes your Lotus Notes Notebook (Journal) to your iPhone and iPad xpageswiki.com: huge XPages Tips & Tricks collection for iPhone and iPad