1
votes

I want to rewrite the lotus notes workspace using xpages. So far i am successful but one feature is giving me quit a headache.

How can i access the database icon of a lotus notes application.

I tried to access: http://notespath.mydomain.com/$icon. That problem with that is that it is not using the login from the current session to access the database and retrieve the icon. Instead it tries to get it using the anonymous id. If the anonymous id has no access to the database i get a popup to login.

My question is: Is possible to do this with the user that is logged in to the xpage or is there is a way to export the database icon into a notes document.

3
I'm not sure, but, would it be possible to store your icons in another, more open database, that you can access anonymously and reference programmatically? - Aaron Brake
sure would be fine. the problem is that we have to export all the existing icons into this application - user2316219
I know it might be a pain, but could be a good time to modernize your application icons. - Aaron Brake

3 Answers

1
votes

Try following instructions here:

How to extract Lotus Notes database icon?

This should give you a method to get to the DXLExporter, and it looks like the icon is in the IconBitmap object. You're still going to get .ico files out though, which aren't ideal, but could be a good starting point for what you're trying to do here.

0
votes

As Aaron Brake commented, XPages engine cannot access old Domino URL format for icon. Also see this: Image URL when previewed in Notes and in Web Browser

In our applications we use dedicated 32x32 PNG image resource (img_DBIcon) which is used in XPages. Developers need to maintain this image resource.

0
votes

What´s about if you change your URL to a database icon??

Don´t use http://notespath.mydomain.com/$icon

Try http://notespath.mydomain.com/DB.nsf/$icon