Sunday, September 21, 2008

easy way to debug schedule agents

If you have problems with debugging formula's schedule agents (they run on server) you can send an email to yourself directly in this agent with debugging data.

Look at this simple code in schedule agent. Would you like to check which value contain strC ? no problem, send an email yourself...

strA := "ABC";
strB := "DEF";
strC := strA + strB;

@MailSend("your are";"";""; "debug strC"; ""; "strC = " + strC)

Saturday, September 20, 2008

Platform Stats: Unable to obtain performance data. Please check Microsoft MSDN on how to enable performance data collection


I had this alarm on my home server (OS - XP, Domino 6.5.1IF1) where I made some testing. If somebody has the same thing then here you will find why it is so and how to disable this alarm.

why is it?
because you are running Domino on an unsupported OS (as clearly stated in the Platform requirements in the documentation/release notes).

XP is not supported, and there are known issues with it.
Supported Windows-based OSes for the Server are NT, 2000 and 2003. Not XP.

How to disable this alarm / notification?
Put this line in notes.ini platform_statistics_disabled=1 on Lotus Domino server.

Wednesday, September 17, 2008

File - Tools : Additional options

Today I found one trick, during loading View "This view is being update... and so on" if we click at menu File and then Tools, we will see two additional options: [Cleanup Separators] and [Debugging Dashboard]. I don't know if it useful, but at least something new :)
Here is a screen with two additional options.

Tuesday, September 16, 2008

how we can remove temporary fields from document

Set a computed field in the bottom of the form with next formula:

@If(@IsDocBeingSaved; @Success; @Return(""));
@SetField("Field1"; @DeleteField);
@SetField("Field2"; @Unavailable);
@DeleteField

It is very simple and useful solutions as for me and to be honest I did not find any better way

Thursday, August 28, 2008

Redirect in WebQueryOpen

It looks like very simple task - redirect to another element in WebQueryOpen , but when I tried to do it it did not work ! I mean in WQO JavaScript does not work well (or probably at all).
So I found good solution for me, and I would like to share it:

We have to take current document and then change the value in $$HTMLHeader.