Showing posts with label lotus features. Show all posts
Showing posts with label lotus features. Show all posts

Thursday, January 10, 2008

OpenView & RestrictToCategory & StartKey

today i found this stupid? bug.
i had a view that has 1 column as category and second as sorted namelist and some other columns... what i wanted was to take one category and then using StartKey shown only what i wanted... but it didn't work :) . i looked at ibm's forum regarding it and found a lot of posts about this bug...
So don't use this RestrictCategory with StartKey, but i read that it also doesn't work with many other parametres.

Enjoy Lotus !

Monday, January 07, 2008

perfect article about evaluate

Would you like to write fewer lines of code? Let Domino do some of your work for you? I doubt you answered no, but if you have, what the heck -- read on to see what you'll be missing! We're going to show you how to use the LotusScript Evaluate statement to easily include short and powerful formula language constructs within your LotusScript code. You'll save a lot of headache, and as much as twenty lines of code at a time! A single Evaluate statement can often replace many lines of complicated script, and in some cases, can do what is nearly impossible in native LotusScript... full article about evaluate

now I will twice think what is better to use LS of @.

Friday, December 21, 2007

Windows 95 or Windows NT

I was surprised when my friend shown me this in "help" ! I gave respect to Lotus after that.

This example compiles and runs in either Windows 3.1, Windows NT, or Windows 95. Depending on whether the application is compiled and run under 16-bit Windows (Windows 3.1) or 32-bit Windows (Windows 95 or Windows NT), you should declare and use an appropriate Windows handle variable and the appropriate version of two Windows API functions.

GetActiveWindow returns the handle (an Integer in 16-bit Windows, a Long in 32-bit Windows) of the currently active window. GetWindowText returns the text in the window title bar.

Dim winTitle As String * 80
%If WIN16 ' 16-bit Windows
Dim activeWin As Integer ' Window handles are Integer.
Declare Function GetActiveWindow% Lib "User" ()
Declare Function GetWindowText% Lib "User" _
(ByVal hWnd%, ByVal lpstr$, ByVal i%)
%ElseIf WIN32 ' 32-bit Windows
Dim activeWin As Long ' Window handles are Long.
Declare Function GetActiveWindow& Lib "User32" ()
Declare Function GetWindowText% Lib "User32" _
Alias "GetWindowTextA" _
(ByVal hWnd&, ByVal lpstr$, ByVal i&)
%End If
' Print the name of the currently active window.
activeWin = GetActiveWindow() ' Returns an Integer or a Long.
Call GetWindowText(ActiveWin, winTitle$, 80)
Print winTitle$

Tuesday, December 18, 2007

$V2AttachmentOptions

We can hide attachments using $V2AttachmentOptions field with Computed for Display type

What I usually do is set its value using the next formula:
@If(@IsDocBeingEdited; "1"; "0")

It will help to hide/show attachments in form.

p.s. dont forget about Computed for display

Monday, December 17, 2007

crooser on openntf

I downloaded my crosser, which I did one year ago, to openntf (the biggest freeware lotus notes' portal in the world). I did it because I want to know what people think about it :) . maybe they will give me a push to next step. I wanted to do it from Summer 2007, but always forgot about it. Now the problem is solved.

will wait for any responces.

ooops, here is a link to my project on openntf

Monday, September 03, 2007

Enable or Disable agent without Lotus Notes Designer

You can hide/show button with this formula for [Role] which you want

agentName := "AgentName";
@if( @IsAgentEnabled(agentName) = "0"; @Command([AgentEnableDisable]; agentName; "1");
""

This code will enable anget.

You could do this in lotusscript but why would you if there are @functions available?

If you add buttons that also display the agent's lastrun time this could be used to view a status of all relevant agents.

originally from http://www.notesninjas.com/

Enable agent

When creating templates for users, they need to sign the agents. This is the easiest way of getting the agent enabled.

In the [Admin] read only set up area put in a button with code:

agentName:="AgentName";
@if( @IsAgentEnabled(ag)="0"; @Command( [AgentEnableDisable] ; ag ; "1");
""

This will enable it, you can even have a form with saveoptions="0" which displays the status of each relevant agent in computed for display fields when composed.

You could do this in lotusscript but why would you if there are @functions available?

If you add buttons that also display the agent's lastrun time this could be used to view a status of all relevant agents.

Tuesday, July 24, 2007

DesignNoInitialInfobox

All Lotus Notes developers know that when we open the design's document of view or agent, the properties dialog is opening too. But I dont like this feature, really, I hate it. Actually why in views and agents only? why not in forms too?
To disable this properties dialog you should add variable to notes.ini DesignNoInitialInfobox=1 . try it and you like it :)

Tuesday, March 20, 2007

sync Domino and Exchange

I have gotten opportunity to work in team that develop "Exchange 12". The PM of this team proposed me to explore possibility sync. Domino with Exchange via Notes API, and if it would possible make a prototype. This really interesting area, I think about this before... I read many forums and articles in this area, and to tell the true I did not find right way. By the way I find only one good "article" on IBM's forum
http://www-10.lotus.com/ldd/eiforum.nsf/DateAllThreadedweb/dff1c3fd43ff6057852572970000dc69?OpenDocument