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

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

  Все выпуски  

LO49639: OSBBLOCKADDR: BAD BBLOCK HANDLE


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

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

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

comp.soft.prog.lotuscodesrore

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

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

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

Что есть:
1) клиент Lotus Notes 8.5.1
2) положенный log4j и commons-logging в каталог клиента
3) "пустой" Java-агент

код в агенте очень простой:

public class JavaAgent extends AgentBase {
    protected Logger LOG = Logger.getLogger(getClass());

    public void NotesMain() {

        try {
            Session session = getSession();
            AgentContext agentContext = session.getAgentContext();
            LOG.info("test");
....


сам log4j.properties приложен к агенту как ресурс
log4j.rootLogger=DEBUG,stdout,file
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p,%d{dd MMM yyyy HH:mm:ss,SSS},[%c],%m%n
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.file=test.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.conversionPattern=%d{ABSOLUTE} %5p %t %c{1}:%M:%L - %m%n


собственно, на консоли вывода нету (которая Java Debug Console), в файле console.log нет и самого файла test.log тоже не удаётся найти sad.gif
В свойствах базы, в группе полей: Replicate unread marks поставить галочку в поле Clustered servers only
Что значит русификатор? для чего?
Если нужна русская версия клиента, то ее можно скачать с сайта IBM из Passport Advantag
Интересные темы:
Список форумов:

Tips. Советы

Marc Champoux was upgrading some Notes clients when he got the following error message: Cannot upgrade AllClient installation to Notes client. The upgrade you are attempting is not supported. He not only figured out what the error meant and how to fix it. He's posted a LotusScript button you can use.

Read | Permalink
Bruce Elgort is trying to build a list of social software apps that work with Notes and Domino. He has a partial list, but he's sure he's missed some and would like your help.

Read | Permalink
Stephan Wissel says once you have enough RAM on your desktop, there are still a couple of things you can do to speed up your Notes client running on Linux.

Read | Permalink


WHAT'S THE MOST COST-EFFECTIVE & RESPECTED TRAINING RESOURCE FOR LOTUS PROFESSIONALS?
Visit THE VIEW Online Knowledgebase at www.eview.com.

Tony Austin says NotesTracker 5.2, not just the documentation, is now available for you to download. He's posted some screenshots to show you the updates.

Read | Permalink
Marc Champoux is having some serious difficulties with his upgrade to Notes 8.5.1. It seems the SURunAsWizard has a known problem with Vista and Win7 that's scheduled to be fixed in 8.5.2. Marc would like your help in filing enough PMRs to make sure the fix is on top of the queue.

Read | Permalink

Mitch Cohen wants you to remember there are limits, and surprises, to using Notes Shared Login and Notes Client Single Logon features. He gives a basic explanation of the features and provides links to several other documents.

Read | Permalink
While Chris Toohey says the Business Solutions Catalog is not yet an in-client app, he provides instructions on setting up a filtered RSS feed to get a list of available apps that interest you.

Read | Permalink


NEW COURSE - LEARN XPAGE DEVELOPMENT!
Learn how to develop XPages with TLCC's new course, Developing XPages using Domino Designer 8.5. Learn XPages at your own pace and at your place. An expert instructor is a click away if you need help. Not just a collection of sample exercises, Developing XPages Using Domino Designer 8.5 is a complete and comprehensive course that will give you a thorough understanding of this exciting new technology in Domino.

Click here for more information and to try a complimentary demo course!

Out of the box SharePoint displays basic revision history on List Items, which looks a bit like this:

image

It tells you who created it along with who last modified it. Useful information but not always enough. Sometimes you want a full list of the names and dates of all revisions.

Sometimes you want to go further still and track changes in the value of a specific field too. The "status" field, let's say. This might look something like the image below, where the Revisions section of the Item lists all changes along with (if applicable) what the value of the Status field was before and after.

image

In most technologies this is quite a basic task. With SharePoint, unless I'm missing something, this was anything but simple.

What I'll describe here is how I went about adding the above Revisions section to a List Item.

Disclaimer: I'm not suggesting this is the only way or the best way to achieve this. I'm a noob at SharePoint and learning as I go. Feel free to use this approach or to point me in the right direction.

How?

First thing we need is a new type of Field. From within a WSPBuilder project in Visual Studio add a new "Custom Field Type" as below:

image 

After you click the Add button an XML file should appear. Make the changes highlighted below:

image

We changed the parent type of this field to "Note" which means it will act like a large multiline field with no restriction on text size.

Now, in the project structure there should be a folder called 12\template\controntemplates. The folder should have a file in it called RevisionHistoryFieldEditor.ascx. Edit this file to get rid of/replace (or hide) the example DropDown it contains. Once you're done, build the WPS package and deploy it, using the right click options of the WSPBuilder project.

Back in the SharePoint web site go to Site Settings and find the Content Type you want to add this field to. Open the Content Type and in the Columns section find the link to "Add from new site column". The page that follows lets you add a new Column and should list our new field type, as highlighted below:

image

Once you're done on that page you should see this new field on any Items based on the Content Type you added it to.

There you go - that's the easy part done!

Now we need to start logging the revisions to this field. To do this we'll use an Event Handler. Start by creating a new one, like so:

image

This will add a new folder containing the XML to describe this feature along with a folder containing the .CS file with the code for the handler.

In the newly-created XML file call elements.xml change it to look like this:

image

The handler now knows to only listed for events triggered by an item being updated.

Now, open the .CS file that shares the same name as the Event Handler you created. Find the ItemUpdating function and replace it with this code:

public override void ItemUpdating(SPItemEventProperties properties)
{ try { SPList list = properties.OpenWeb().Lists[properties.ListId]; SPListItem item = list.GetItemById(properties.ListItemId); if (item.Fields.ContainsField("StepStatus")){ //Must be the type of Item we're interested in!? string changeLog = "Revised by " + properties.UserDisplayName + " on " + DateTime.Now.ToString()+"."; //BeforeProperties doesn't work for Lists! WTF!! if (properties.ListItem["StepStatus"[!=null && (properties.ListItem["StepStatus"].ToString() != properties.AfterProperties["StepStatus"].ToString())) { changeLog += " Status changed from " + properties.ListItem["StepStatus"].ToString() + " to " + properties.AfterProperties["StepStatus"].ToString() + "."; } properties.AfterProperties["StepRevision"] =  ((item.Fields.ContainsField("Revisions"))?properties.ListItem["Revisions"]:"")  + changeLog + "\n"; } } catch (Exception e) { properties.ErrorMessage = e.StackTrace; properties.Status = SPEventReceiverStatus.CancelWithError; properties.Cancel = true; }
}

What this does is look for changes to the type of list Item we're interested in and then appends a change log to the field with the name by which we called the field we added earlier.

With the code in place you need to build the WSP project, deploy it and then enable the new feature in the site admin area.

Summary

Believe it or not I've made this sound easier than it actually is! In reality it's a bit trickier as you need to deploy, build and debug the feature. However, what I've outlined above is what I believe to be a half decent solution to this problem. Whether there's a better one I don't know. Trust me when I say I had a good hard look for one before I started down the DIY route.

Click here to post a response

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

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

Author: Doctor API
Tags: image resource editing
Idea:
Sometimes an image resource needs to be edited. It would be great to edit the image in the designer itself instead of deleting/uploading it. Maybe it can launch MSPaint to edit it and when Paint is closed it is automatically uploaded.

Author: Patrick Kwinten
Tags: letterhead icon emoticon out-of-office mood stamp
Idea:
My partner works for the same company I do and she went recently on maternity leave. I was a bit curious what she wrote in her out of office message.
 
When I sent her an short message to check the response I only got returned a flat text message.
 
Then this idea came up. For a normal message (memo) you are able to select an icon as Mood stamp for your out of office message?
 
After all, we are all humans.
 
Possible default icons could be:
 
suitcase (travel)
baby (maternity leave)
buddha statue (sabbatical)
...

Author: Patrick Kwinten
Tags: dojo widget controls drag-and-drop
Idea:
I tend to forget the goodies that are available in Dojo in the form of widgets (accordian, tooltip, splitcontainer, slider, title pane, fish eye..).
 
If the would be made available as a control panel and configurable when we drag and drop them into the design pane people would more use them or they would be better understood.

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

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

Server crashed on updall task with following fatal crash stack:-
In Lotus Domino, transaction logging and Domino Attachment and Object Service (DAOS) are enabled. However, every day the server hangs with the following error message; "Recovery Manager: Log file is full", necessitating a restart of the server.
You migrate your server from Lotus Domino 8.0.x to an 8.5.1 version. Once you start the server after the migration, no XPages application runs.
RSS feeds do not update correctly in Notes. The date format is incorrect.
Notes Shared Login feature in 8.5 presents new issues such as windows password prompts when logging out, cannot copy IDs to another PC, cannot copy ID from ID vault, broken synchronization with Internet Password, only one NSL Notes ID can be used on a PC.
A Notes 8 user has several feeds configured with the feed reader (located on the new Notes 8 sidebar). The user has noticed, after some time, that their read feeds has been marked as unread and they would like to know how to proceed with troubleshooting this issue.
The Domino server crashes when attempting to allocate a handle for the call SyncUnread(). The problem appears to be an issue during replication and reading replication tables.
In an email you have received, if you want to see the routing information, full name of the sender, and which options (such as return receipt) the sender selected, then you can view the delivery information for that email. For emails from Notes addresses To view the delivery information, open ...
Также почитатай:
Найти документацию можно на сайтах:

В избранное