Отправляет email-рассылки с помощью сервиса Sendsay

Бюллетень "Lotus Notes CodeStore"

  Все выпуски  

Бюллетень "Lotus Notes CodeStore" No 107 от 2008-11-26


Рассылку ведет: Программист на Lotus NotesLotus CoderВыпуск No 107 от 2008-11-26
рассылка о программировании на Lotus Notes/Domino
Обсуждения на форумах, блогах. Примеры программного кода на LotusScript,@formula, Java

рассылка:выпускархивлентаблогсайт

Бюллетень "Lotus Notes CodeStore" Выпуск 13 от 21.04.2008

comp.soft.prog.lotuscodesrore

CodeStore. Примеры кодов

Еще примеры:
Больше кодов на сайтах:

Форумы.Свежи темы и обсуждения

С DECS и LEI все достаточно просто. Нужно в специальной базе администрирования установить связь с нужными базами далее создать документы активити в которых настроить маппинг полей реляционной базы и базы лотуса. DECS бесплатный сервис который сразу идет...
В Лотусе существует возможность импорта HTML файла в расширенное (RichText) поле.
...
Интересные темы:
Список форумов:

Tips. Советы

Prompted by Andy at Notes411.com I decided to revisit the colour-coded view trick and simplify it a little by using a column with a Programmatic Name. The formula for the column which sets the row's background-colour is now:

age:=$1;
factor:=20;
val:=@Text(@Min(@Round((1/(age/factor))*255);255));
"<tr style="\""background-color:rgb(255,"+val+","+val+");\">"

$1? This is the "programmatic name" of the first column in the view. This column is hidden, sorted descending and has a programmatic name of "$1". It's formula is:

1 + ((@Date([24/11/2008])-@Date(@Created))/(60*60*24));

The logic for working out the document's age is now in it's own column. So what we've done is taken the presentational code out of the nightly agent and put it back in a column of its own. This has the added benefit of simplifying the nightly agent, which is now:

Set folder = DEXT.Database.GetView("Demos.Colour.Graded")
folder.Columns(0).Formula = |1+((@Date([| + TodayDT.DateOnly + |])-@Created)/(60*60*24))|
Call folder.Refresh

Still not as simple as it could be though. What I'd have liked to have done is have a hidden column which is simply today's date. All the nightly code would need to do is update the date. All the "logic" would stay in the view itself.

The trouble is that, unless I'm sorely mistaken (and I hope I am), referring to columns by their programmatic name is a little buggy. If what you put in the column is anything like a date then you just won't be able to refer to it programmatically from another column. All very odd behaviour, so I gave up trying in the end.

The one big flaw in all this (apart from the need for a nightly agent!) is that it's only ever going to be accurate to the day. If you have a view where you want to differentiate between a document that is 12 hours old one that is 12 minutes old then it won't work.

When you want to get more accurate that days then you'll need to use LotusScript in the form of a WebQueryOpen agent. More on this next time...

Click here to post a response

I've never known Value Added Tax (VAT) here in the UK to be anything other than 17.5%. I always thought it was set in stone, never to change. Having just Googled it I see it changed from 15% to 17.5% in 1991, but has remained the same for the last 17 years.

Next month it is going to change back to 15% in an attempt to stimulate the economy (yeah right, like "Oooh, now that iPod is ?ú2 cheaper I think I will buy it after all").

When I saw this on the news last night the first thing that came to mind is how many places I've hard-coded the VAT rate as 17.5% and how I'm going to have to go about soft-coding it before the cut takes place.

I guess it just goes to show it is never ok to hard code something that is so obviously a variable. No matter how often it might change, chances are some day it will.

Lesson learnt.

Click here to post a response

We've done the research to present you with our top 10 Formula language tips for Lotus Notes Domino. Discover how to use Formula language code to modify Notes document item values, generate formatted sequence numbers, cull elements from a list and more. Refer to this collection of our 10 most popular tips as a source of inspiration when developing with Formula language.

I'll always be indebted to you guys for your help last year in getting my data back from an old laptop when it failed.

Knowing how it feels to think you've lost cherished digital memories of your children I'm currently trying to recover files from a friend's hard drive. It's an external USB-type disk. When I said I'd try for them I kind of promised it would be recoverable. I assumed it would be a data problem such as a bad sector and I'd easily recover the data using BartPE, which saved my bacon last year.

As soon as I turned the drive on I realised it was worse than a data problem. Things just didn't sound right at all.

In trying to get to the bottom of things I removed the disk form its housing and plugged it in to an old server I've got knocking about. Here's what it sounds like during boot-up:

 

Notice the screen at the end of the video. Looking at the screen it appears that the Secondary Master disk is recognised and named in the list of drives but then comes the message:

"Secondary master hard disk fail"

So far I've not managed to get past this point or tried booting from BartPE. For now I wanted your opinion on the outlook for this drive. Is it good? I really want to help my friend regain "most of the videos" of his 3 year old son.

Click here to post a response

Еще советы:
Смотри советы на сайтах:

Блоги. Что обсуждают и пишут

Еще записи:
Интересные блоги специалистов:

Статьи и Документация

What are the switches and options that can be used when running the convert command ("load convert -") in Lotus Notes/Lotus Domino and what output do they generate?
The Lotus Domino 8 Java console abnormally terminates when a user logs out of the operating system.
Using Lotus Domino 7.0.2 Administrator client, you notice the Server Tasks view displays a hexadecimal task ID. This issue is now fixed.
This white paper defines the IBM Unified Communications and Collaboration (IBM UC2) vision of making it easy for you to find, reach, and collaborate with others through a unified user experience. This strategy is implemented by means of the IBM Lotus Sametime Unified Telephony (SUT) software offering that is designed to make it easy for you to access and manage telephone communications from inside the Lotus Sametime or Lotus Notes client. We examine the rich set of SUT features and provide an in-depth technical analysis on how you can add SUT to existing heterogeneous PBX environments without having to replace legacy telephony equipment. Due to the variation of possible deployment options, we cover each scenario from a high level, focusing on how each decision affects the enterprise, down to the individual call flows. This paper provides supplementary information to other published IBM documents that further describe Lotus Sametime and the IBM UC2 vision.
In Lotus Notes, when opening a view on a Lotus Domino server running a 7.0.2 release, the characters in a column display additional garbage characters between the expected characters.
The Attachment Icon column cannot be sorted in the Lotus Notes/Lotus Domino mail8.ntf template.
LotusScript code that calls either the RenameWebUser method or the RenameNotesUser method (both of the NotesAdministrationProcess class) returns an error in Lotus Notes/Lotus Domino.
Mail quota warning message still appears after cleaning up mail file and the file size is below the warning threshold.
In Lotus Notes, in some cases, the CurrentDocument property (of the NotesUIWorkspace class) returns a handle to an unexpected version of the document. For example, when opening more than one DialogBox in succession in a section of the code, in the second dialog box, the CurrentDocument property returns a handle to the underlying main document, not the DialogBox in-memory document.
Your Domino servers are unable to replicate or route mail between server and receiving the error "Router: Unable to open mailbox file <Server Name> mail.box: You are not authorized to use the server on remote server".
You receive the error "You are not authorized to access the server" trying to access a Domino server. You were able to access the same server the previous day.
File transfer and screen capture icons are not available in the Sametime client that is embedded in the Lotus Notes 8 client.
This article introduces the concept and usage of Notes® My Widgets. Through several examples, it shows you how to create Notes widgets from different kinds of resources in IBM® Lotus® Notes® 8.0.1. Finally, it depicts the process that you can use to build a sample composite application leveraging Notes widgets.
This document describes what a Roaming Notes Client User is, how it is implemented, and some of the more frequently asked questions about it.
An attempt to recall a message does not yield successful results. The resulting error is "Recall was not allowed". Proper access and configuration settings are enabled to ensure message recall.
Также почитатай:
Найти документацию можно на сайтах:

В избранное