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

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

  Все выпуски  

Бюллетень "Lotus Notes CodeStore" No 55 от 2008-07-28


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

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

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

comp.soft.prog.lotuscodesrore

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

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

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

Bonyfather:
Доброго времени суток, коллеги!

Если кто-нибудь знает, как можно извлечь на диск файл из ресурсов БД Notes
программно (Lotus Script[+API]), поделитесь, пожалуйста, кусочком кода.

Спасибо.
D!m@n:
Цитата(jmp @ 23:07:2008, 09:37 )
Да, похоже проблема решается только снятием пароля с сервера.

Не обязательно. Можно, например, написать программу, которая:
1. запускается вместе с сервером;
2. находит окно Lotus Domino;
3. имитирует нажатия клавиш в окне сервера.
Azat:
Добрый день!В Лотусе работаю пока мало. Подскажитке,пожалуйста, как сделать сортировку по полям в OpenOffice Calc. Методы найденные в инете, в частности такого вида
Dim aSortFields(8) As New com.sun.star.util.SortField
Dim aSortDesc(0) As New com.sun.star.beans.PropertyValue
не работают. С object тоже. Как решить задачу без их использования?!
Почему в Lotus не работает dim x as object и Dim aSortFields(8) As New com.sun.star.util.SortField ???

Код:
Sub ExportToCalc ( thisView As NotesView )
Dim thisDoc As NotesDocument
Dim i As Double
Dim mass()
Dim xlWbk As Variant

Set xlglob = CreateObject ( "com.sun.star.ServiceManager" )
Set Desktop = xlglob.createInstance("com.sun.star.frame.Desktop")
Set document = Desktop.LoadComponentFromURL("private:factory/scalc","_ blank",0,mass)
Set sheets=Document.getSheets()
Set xlWbk = sheets.getByIndex(0)
Set xlglob= Nothing

Set thisDoc = thisView.GetFirstDocument
If thisDoc Is Nothing Goto exit_sub
xlWbk.getCellRangeByName("A1:C1").CharWeight=150
xlWbk.getCellByPosition(0,0).string="Name"
xlWbk.getCellByPosition(1,0 ).string="Family"
xlWbk.getCellByPosition(2,0 ).string="Widht"
i = 2'start from 3 row
While Not thisDoc Is Nothing

FirstName$ = thisDoc.FirstName(0)
LastName$ = thisDoc.LastName(0)
Weight = thisDoc.weight(0)

'___ put values to the row
xlWbk.getCellByPosition(0,i ).string=FirstName$
xlWbk.getCellByPosition(1,i ).string=LastName$
xlWbk.getCellByPosition(2,i ).value=Weight
i = i + 1

Set thisDoc = thisView.GetNextDocument ( thisDoc )
xlWbk.Columns().OptimalWidth=True 'autoshirina

Wend
exit_sub:
Set xlWbk = Nothing
Call document.storeToURL("file:///c:/otchetInCalc.ods", mass())
Set xlglob = Nothing
Set document = Nothing
Set sheets = Nothing
Set desktop = Nothing

End Sub


Всех благодарю за ответы![/code]
HRovez:
В Группе компаний "БПЦ" открыта вакансия: Программист 1С(в помощь уже работающему программеру)

Нужен: молодой человек желательно с высшим образованием.
Желателен опыт работы по специальности.
Описание вакансии:
Программирование на встроенном языке 1С
Практическая помощь, консультирование и обучение пользователей компании при работе с 1С.
Знания: 1С v7.7 (Бухгалтерия, ЗиК) и 1С v8.0 (УПП).
MS SQL Server 7.0/2005
Офисные продукты и операционные системы компании Microsoft, продукты Lotus (не обязательно, но желательно). Доп. знание ПО приветствуется.

Условия:
Офис рядом с метро "Курская", оформление по ТК РФ, "белая з.п.".
Уровень з.п. обсуждается при собеседовании.
На полный день, пятидневка.
E-mail for resume: shlenskov@bpc.ru
Всем привет! У меня такая проблема - есть 2 Domino сервера и я ни как не могу настроить перекрестную сертификацию между ними. В документах серверов (names.nsf) я добавил подключения к противоположному серверу, перекрестно заверил сертификат противоположного сервера. Смотрел отдельно в сертификатах, в категории Notes Cross Certificates присутствует перекрестный сертификат другого сервера. Выполняю trace - результатом работы является то, что он находит противоположный сервер, но говорит, что “Your public key was not found in the Notes and Address Book ”. Почему он не находит публичный ключ другого сервера?
Прошу помощи, собратья! Настраиваю клиентскую часть, одна база выдает такую ошибку при указании пути. Не знаю что делать, т.к. с Лотусом первый раз в жизни общаюсь. )
Доброго времени суток. Ситуация следующая; юзер открывая лотус, выскакивает ошибка: Server error: Your account is locked out; see you administrator to reset it В консоли следующее: date UserName/Country/Company from host [192.168.1.999:9999] failed to authenticate: Your account is locked out; see you administrator to reset it Как с этим бороться? 1. Где эта функция резета? никак найти не могу. 2. Как сменить пароль юзеру, через домино администратора? (не веб пароль) Заранее спасибо.
Здравствуйте. Возникла следующая проблем: необходимо сделать автоматическую нумерацию документов. Что бы при создании нового документа автоматически ему присваивался уникальный номер. Я сделал профильный документ, которой храни этот счетчик. При создании нового документа вытаскивается номер из профильного, записывается в документ, увеличивается на 1 и записывается обратно в профиль. Проблема возникла в том, что пользователи начали получать одинаковые номера с того номера который был записан в профиле на момент открытия ими лотуса. Похоже, что профильный документ кэшируется где то и при обращении к нему выдает данные из каша. Если клиенты лотуса перезапустить, то порядок номеров восстановится для пользователей, но они опять начнут получать одинаковые номера начиная с того номера который был записан в профиле на момент открытия. Как отключить кэширование профильного документа, что бы каждый запрос выполнялся непосредственно к документам на сервере, а не в кэше? Профильный документ единственный и по пользователям не разделен. Еще вопрос. Могут ли возникнуть коллизии в том случае, если 2 или больше пользователей одновременно попытаются обратиться к профильному документу? Получат ли они одинаковые номера и если да, то как этого избежать? Спасибо!
День добрый!!! Есть view и в качестве ресурса используется swf файл ... в нем есть 2 объекта ... 1 - прямоугольник 2 - круг(вписан в прямоугольник) При попытке растянуть swf с помощью stretches ... происодит искажение круга ..чего по сценарию происходить не должно ... Как сделать так, чтобы пропорции прямоугольника менялись в зависимости от width и height а круга оставались неизменными (т е не искажались его пропорции) или пропорционально увеличивался или уменьшался. Заранее спасибо!
Имеется форма для создания документов в базе. На основе этой формы сделан поиск документов через свойство БД - Search. Найденные документы складываются в Resultпутем putAllInFolder("Result"). Содержимое Result можно просмотреть через Outlines. Вопросы: 1. Как автоматом вывести на экран (установить фокус ?) на Result без необходимости выбора его из Outlines ? 2. Можно ли средствами LotusScript добавлять, удалять, форматировать, задавать формулы и т.д. для view(folder), удалять сами view и folder ? Необходимо для уменьшения количества view`ов и folder`ов.
Доброго времени суток! Возникла необходимость отображать данные из БД Lotus на портале SharePoint т.е. допустим в лотусовой базе помечаются для публикации какие то документы и они должны быть доступны авторизованным пользователям на портале SharePoint. Кто имеет подобный опыт интеграции и может поделиться информацией?
puks:
In order to be able to execute Domino 5.x as an NT Service, it is necessary to check the "Install Domino as an NT service" option during the install process.
To install Domino as an NT Service in R5 after the server has already been installed, rerun setup from the installation CD, select Custom Installation, and select the "Domino as a NT Service" option and complete the installation.

Вот про R5 _http://www-1.ibm.com/support/docview.wss?rs=0&uid=swg21089655
Вот про выше версиии _http://www-1.ibm.com/support/docview.wss?rs=463&context=SSKTMJ&dc=DB520&uid=swg21160554&loc=en_US&cs=UTF-8&lang=en&rss=ct463lotus
Интересные темы:
Список форумов:

Tips. Советы

I bet that title got your attention. You weirdo.

I'm sure we've all got words we seem to type consistently wrongly. For me it's the word busy (a word I've been using in emails more and more of late), which I always seem to type busty (maybe because of the proximity of the T to the Y on the keyboard). The result is emails that start something like:

Sorry about the late reply. I am very busty at the moment.

Luckily I manage to trap most of the typos as I very rarely send an email without re-reading it first (especially those of a business nature). Whenever I correct this typo I always chuckle to myself at the mental picture of having breasts so large it's hard to send emails.

Out of curiosity I just did a search on my sent items folder for "busty" and it's worrying how many times I've let the typo slip through. I just hope the people who received the email saw the funny side and/or knew it was a typo.

Another typo I seem to keep making is leaving the C out of onclick when adding JavaScript to HTML elements. Wondering why the event doesn't fire I return the HTML to see I've added an onlick event. That too makes me laugh to myself as I imagine somebody licking their screen (you have to find amusement somewhere when working alone for so long in an office).

onlick="alert('Stop licking the screen you weirdo!')"

Any of you lot have any funny typos you keep making?

Click here to post a response

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

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

Author: Mick Moignard
Tags: NotesDocument Dirty
Idea:
I would like to be able to ask a NotesDocument if it is clean or dirty, so that in complex code I can see if has been changed and determjine whether to save.  Such as
 
If NotesDocument.IsDirty then NotesDocument.Save True, False
 
This is why I want this change:  This piece of code is nasty,and it's a known one that if you save a document twice in quick succession, the second change may not cluster-replicate
'get the claim and check if this bill billed the setup charge: if so, remove it. Ditto if it was the Final bill
Dim claim As NotesDocument
Dim ClaimChanged As Boolean
On Error 4091 Resume Next
Set claim = bill.ParentDatabase.GetDocumentByUNID(bill.ParentDocumentUNID)
If claim Is Nothing Then
Messagebox "Cannot find the parent claim of this bill; this is a serious error. Please report it",48,"System Error: Claim not found"
Exit Sub
Else
If claim.setupbilled(0) = bill.billcode(0) Then 'the claim setup was billed on this bill, so clear it
claim.setupbilled = ""
Call claim.save(True, False)
End If
If claim.FinalBill(0) = bill.billcode(0) Then 'the claim setup was billed on this bill, so clear it
claim.FinalBill = ""
Call claim.save(True, False)
End If
End If
 
But this is also rather nasty ( a fragment of above)
Dim ClaimChanged As Boolean
If claim.setupbilled(0) = bill.billcode(0) Then
claim.setupbilled = ""
claimchanged = True
End If
If claim.FinalBill(0) = bill.billcode(0) Then
Claim.FinalBill = ""
claimchanged = True
End If
If claimchanged Then Call claim.save(True, False)
 
When what I'd really like to be able to do is this:
If claim.setupbilled(0) = bill.billcode(0) Then
claim.setupbilled = ""
End If
If claim.FinalBill(0) = bill.billcode(0) Then
Claim.FinalBill = ""
End If
If claim.isdirty Then Call claim.save(True, False)
 

Author: Peter Presnell
Tags: lotusscript java
Idea:
I would like to see the choice of programming Notes applications with either LotusScript or Java become more one of personal preference rather than significant differences in functional capabilities.  To achieve this we need to enhance the LotusScript language to provide some of the things Java can already do (e.g. polymorphism) and allow Java code to be used in places in which it is presently only possible to use LotusScript (e.g. UI events).  This would mirror what MicroSoft have done with .Net development in which programmers can develop an application using VB.Net (LotusScript), J# (Java) or C# with minimal difference in what the application can do in either language.  We shouldn't need to have to program in both languages nor be restricted with what we can do by virtue of using the programming language of choice.

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

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

When you attempt to save, edit, open, or view an attachment in Lotus Notes, an error displays. The error starts with the text, "Attachment has been modified or corrupted since signed!", but varies depending on the attachment action executed.
Your Lotus Domino server is running normally when the router crashes on a MIME to CD conversion of a mail message. After the server is recycled, this same mail message is successfully processed and delivered by router.
Scheduled replication is not occurring between Lotus Domino 6.0.2 and 7.0.1 servers.
In Lotus Notes, when you launch a NotesLink to a document containing a PostOpen LotusScript event or when a PostOpen event contains a loop, the script appears to run before the document is loaded.
Beginning with Lotus Notes 5.0, an additional class and two methods were added to the LotusScript language to allow for the manipulation of paragraph styles within a Rich Text field. The new class is NotesRichTextParagraphStyle and the new methods are CreateRichTextParagraphStyle and AppendParagraphStyle.
In Lotus Domino, you are the administrator of a secondary directory and you receive an error message when deleting users in that directory using the AdminP process.
A Domino® server crash occurs when attempting to convert certain malformed messages from MIME to CD format. This has been observed in the Router task, as well as addin tasks such as BES (Blackberry Enterprise Server) and NNTask (Norton Antivirus).
In Lotus Notes, you attempt to delete a calendar document from your mail file by highlighting it and using the Delete key. The document is not deleted and increases in size, typically by 8 bytes. If you repeatedly attempt to delete the same document, the document size increases every time by 8 bytes.
The Domino server crashes with a Panic error "LookupHandle: null handle". This problem may occur when using the LotusScript StampAll function.
In Lotus Domino, you have two clustered servers. When you try to create a replica on a cluster member using an AdminP request, the 'Accelerated Create Replica' request is failing with an error message.
Также почитатай:
Найти документацию можно на сайтах:

В избранное