Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can see the size of the database in Database properties, Info tab. But this size includes the size of design elements (forms, views, framesets, etc).

Does Lotus Notes provide a way to get only size of the documents in database excluding the size of design elements?

share|improve this question

Make a design-only copy of the database for reference and record it's size. Then subtract that from the size of the actual database. But note: your result will include the size of your view indexes, and it's not clear to me whether you do or don't want that.

share|improve this answer
    
I am looking for only size of documents. Also something Lotus Notes would provide out of box which my users can directly see. But I don't think its possible. – Naveen Jun 6 '13 at 5:58
    
Well, I think the idea is that size of documents isn't the only thing that matters. What users really see is two things: the size of documents only, or the size of documents + the view index data associated with those documents. – rhsatrhs Jun 6 '13 at 13:30

The NotesDocument object has a field called "Size" which will return the value in bytes of a particular documents size.

Link to Javascript call (which has links to LotusScript / Java).

http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/topic/com.ibm.designer.domino.api.doc/r_domino_Document_Size.html

Size is subjective though. While it will tell you the size of the document, if the attachments are compressed then it will report the compressed size. Also DAOS may be a factor as well.

share|improve this answer
    
Actually I am looking for a solution which does not involve any code to be written. Like in Info tab of Database properties it shows Disk space which includes size of documents and design elements. Is their any place where I can see just the size of all documents in database? – Naveen Jun 5 '13 at 12:09
1  
No, wothout programming this is not possible. For a one time job you could create a view (not to complex to do) showing all documents (without response hierarchy) and one column containing the document size (can be selected without writing code), with a total... This is the least complex solution I can think of. – Torsten Link Jun 5 '13 at 14:55

Why would you ever need to know that info? You can find it for individual docs through document properties, but I can't imagine any situation where you'd need to know it for all the documents. You could have an all documents view where one of the columns was doc.getSize().toFixed() and then sum them all up, but document size isn't useful to know for anything.

var doc:NotesDocument = currentDocument.getDocument();
return "The current document uses " + doc.getSize().toFixed() + " bytes"

Source: Lotus Domino Designer 8.5.3 docs at IBM Knowledge Center

share|improve this answer
    
If you are referring to Java syntax doc.getSize(), then it returns an int variable. What is the toFixed() method you are calling on int? – Naveen Sep 22 '15 at 15:32
    
IBM Knowledge Center had a bunch of examples and they use .toFixed in javascript examples because it converts it to text. For java you could just use doc.getSize(). Personally I'd probably use formula language and use @DocLength – Zach Sep 22 '15 at 15:57
    
Any reference links verifying your claim? – Naveen Sep 22 '15 at 15:58
    
Which claim don't you believe? – Zach Sep 22 '15 at 16:03
    
I am not aware of any JS syntax doc.getSize().toFixed() to get document size in Lotus Notes. I haven't come across a way to access the NotesDocument object in JS. If you have any examples prove otherwise then do let me know. It would be a learning for me. – Naveen Sep 22 '15 at 16:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.