Solved

Stylesheets: Notes item not found ...

Posted on 2003-11-28
8
525 Views
Last Modified: 2013-12-18
I defined a style sheet in my application (in the shared resources -> stylesheet section of the designer). I then have a form that has the head section referencing these style sheets as follows (This is what the "view source in browser shows me"):
<head>
....
<link rel="stylesheet" type="text/css" href="/mm/mmonline.nsf/style.css" media="all" />
<link rel="stylesheet" type="text/css" href="/mm/mmonline.nsf/printlayout.css" media="print" />
<link rel="stylesheet" media="screen" title="main" type="text/css" href="/mm/mmonline.nsf/screenlayout4.css" />
<link rel="alternate stylesheet" media="screen" title="optional" type="text/css" href="/mm/mmonline.nsf/screenlayout3.css" />
...
</head>

The path is correct to me but it does not seem to work and the error from the server logs is :
...Note item not found. However if this is running on local it works fine strangely to me. So is there something I need to make sure of on my server. (Domino 5.0.5 )

thanks
-jay
0
Comment
Question by:jdembare
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 31

Expert Comment

by:qwaletee
ID: 9837593
Try putting each of the stylesheet URLs in your browser address bar to see which one os causing the problem (you do have four of them after all).

Also, try making a new copy of the database, see if the copy has the problem.

And, try opening each style sheet, making an innocuous edit (add some white space), change the sheet's comment, and save the style sheet.
0
 
LVL 13

Expert Comment

by:CRAK
ID: 9839576
If you remove those lines, does the error dissapear? It could be a computation elsewhere that fails!
Or try to identify if all lines fail, or just a specific one.

This db, mmonline.nsf, is it the same as the one you have on local? Is it accessible for webusers (anonymous and/or authenticated)?
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9840793
It is your href path in the link tag which is messing this up. Make sure the mmonline.nsf is in mm dir and it is located below data directory of the server.

Also if the css files are within current db then reference it without any path.

~Hemanth
0
ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

 

Author Comment

by:jdembare
ID: 9850620
Thanks all for the comments, for some reason it seems that it was due to the domino server version coz i put the database on dominino 6.x server and it works fine. I guess it's because I working on notes 6 client but was running the application of domino 5.

-jay
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 125 total points
ID: 9851067
Yes, that would explain it.  R5 does not support style sheets.  R6 sets up the stylesheets the same way it sets up pages.  It creats a design elemnt, with flags C34Q.  But stylsheets have an additional flag, I think it is $.  R6 understands this, and lokos at it as a stylesheet instead of a page.  R5 just thinks it is a page.  To send page content, it needs the design fields (Note Items) named $Body and $HTMLCode.  Stylesheets don't have these fields; they have $FileData, which is a rich text field with he style shet file embedded in it.  So, when the R5 serevr attempted to display the "page," it complained about the missing Notes Item.

You can get around this!

Create a new page named style.css, and import/paste teh CSS file txt into it.  In Page properties, change ON WEB ACCESS from Notes type to HTML.  (Technically, you shoudl choose OTHER and type, I think, text/css, but HTML will work just as well inmy experience).
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9851080
You can overcome that easily by importing style sheet into imageresources section as .css file and used it both in R6 and R5.
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 9854854
What I done in R5 is to save css code into a page and save it as .css

That worked for me.

And if the code is in the same db, then no need to refer it with a path.

below is the code which I used.
in HTML HeadContent event of the form:
DBPath:=@ReplaceSubstring(@Subset(@DbName; -1);"\\" : " "; "/" : "+");
"<LINK rel=\'stylesheet\' type=\'text/css\' href=\'/"+DBPath+"/TestStyle.css\'>"

all the links on your page/form/view should not have <font> tags.
0
 

Author Comment

by:jdembare
ID: 9857025
Thanks  qwaletee, it worked perfectly. Must also give credit to madheeswar for being in the same line as q. HemanthaKumar, it seems like I couldn't simply import any other file that is not of type gif,jpg etc (basically) image format so got stack there otherwise I see the idea and would have been much neater. Thank guys

-jay
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question