Wednesday, April 09, 2008

Which parameters we can use in a command line to start a Notes client?

1) We can specify the path to notes.ini file:
c:\Notes\Notes.exe =c:\Notes\Data\Notes.ini

2) Do you want to open special database?
c:\Notes\Notes.exe names.nsf
c:\Notes\Notes.exe open names.nsf
c:\Notes\Notes.exe Servername!!\Directory\DatabaseName.nsf

3) You can also specify a .NDL file (Notes doclink). It will permit you to open a specified note:
c:\Notes\Notes.exe doclink.ndl

4) Do you want to open special URL?
c:\Notes\Notes.exe http:\\www.lotus.com
c:\Notes\Notes.exe notes://servername/databaseName?OpenDatabase

5) Start with new email to?
c:\Notes\Notes.exe mailto:myemail@name.com

6) Other:
/EMBEDDING or -EMBEDDING - starts Lotus as an OLE Server
/AUTOMATION - starts Lotus in Minimized State
/kiosk - starts Notes without Menus (but to be honest in my case it shows only grey window, hope it is only in my case)
/DEBUGGER - starts the Notes Remote Agent Debugger
/DESIGN - starts Notes Designer
/MAIL open the default mail database on the Notes client
/ADMINONLY open Notes Admin

also you can see it here:
http://www-1.ibm.com/support/docview.wss?uid=swg21099846
http://www.nsftools.com/tips/NotesTips.htm

Friday, March 28, 2008

RE: Is PlanetLotus just crack for ASWs? -> system of rating?

I guess it is time to add rating system on "planet lotus". I'm absolutely agree with Ben. It would be very nice to have opportunity to vote for every article => +1 and -1. It would be very nice to see near every article two marks: one for current article and another one for average mark of all articles. for example:

article1 about bla bla bla (+2), (+7).
article2 about bla bla bla (-4), (-3).

Also, probably, would be nice in case if article has mark let's say -10 it has to disappear from planet lotus.

What do people think about this idea?


I will send my proposition to owner/developer of "planet of lotus". I believe that we will solve this.

Let's kill cheaters !
and save our time !

how to get google map ?

I guess that somebody already shown it earlier. But it is always good to refresh memory.

Address := "Paris";
url := "http://www.google.com/maps?f=q&hl=en&q="+Address;
@URLOpen(url);

Tuesday, March 25, 2008

select in views with date

Very often we need to use Dates in view's SELECT. Let's say that we should show documents which are older than current day. What do we usually do?

SELECT FldName = @Now
SELECT FldName = @TextToTime("Today")


I just want to refresh head and show another approach. We can use schedule agent on server and modify SELECT formula each day.

Dim s As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim dt As String

Set db = s.CurrentDatabase
dt = Join(Evaluate({@Text(@Today)}))
Set view = db.GetView("viewName")
view.SelectionFormula = {SELECT Form = "Form" & FldDate = (([} + dt + {]}


after that it will work faster and better. it's just only one another approach not more, but I like it )

Wednesday, March 12, 2008

Securety for different parts of document. 1-st approach.

Let's say we have one document and it contains couple different areas, for example 1 part of document contains information about salary of employee and another one contains information about family of employee. Of course, fields that contains information about salary have to be hide from all eyes except special role (Finance department). Information about employee's family also has to be hide from all except (HR department). Application should work in Lotus Notes client and in WEB also.
We can't just hide fields using "hide formula", because smart users can use next approach and they can found fields with salary. But it should be private information.
So, I propose next approach, we can create one main document and N response documents (it depends on how many areas you have). Each response document will contain information about special area and also will contain information about Readers, in our case it will be 2 documents - 1 for Salary information + Readers field = "Finance department" and another one for HR department. All others manipulations it is only game with QueryOpen and QuerySave event in Client and Web.

Simple chart :-).
What I did:
1) on QO event I put code that take all data from response documents and put to main document. It is very usefull to use NotesItem.SaveToDisk = false in QO event, because in this case you can forget about removing values in QS event from main document.
2) on QS event I put code which takes values from main document and put data back to response documents.

Probably it is not the best way but it works.

Any new idea would be appreciate ! ;-)