Monday, January 28, 2008

Generate HTML for all fields


I used it for some years and only now I read some articles about several bugs which didn't see before. Probably because I've made not so difficult applications in web, but in any case I still like it.
It makes my life more simple!

several Domino->JS functions: StrLeft, StrRight, StrLeftBack, StrRightBack, StrMidleBack, StrMiddle

Here are a few JavaScript functions to mimic the @-function capabilities. I dont like to write every time my own functionals, just because they will be my and I will be proud for them. I don't like this :). I prefer to find some different solutions and take one that better (of course on my opinion)

function rightString(fullString, subString) {
if (fullString.indexOf(subString) == -1) {
return "";
}
else {
return (fullString.substring(fullString.indexOf(subString)+subString.length, fullString.length));
}
}

function leftString(fullString, subString) {
if (fullString.indexOf(subString) == -1) {
return "";
} else {
return (fullString.substring(0, fullString.indexOf(subString)));
}
}

You can find many other functions here site

Monday, January 21, 2008

Lotus Notes and SAP will join for Project Atlantic

This is an article from Ed Brill blog

The announcement I've been waiting months to talk about!


Today, IBM and SAP announced a joint product development, codenamed "Atlantic". From the press release:
Currently planned for inclusion in the first release of project "Atlantic" is support for SAP workflows, reporting and analytics, and the use of roles from within the Lotus Notes client. In addition, tools are planned to be included to provide the ability to extend and adapt these roles and capabilities, as well as leverage additional collaborative and offline capabilities inherent in Lotus Notes and Domino products. The initial release is planned to ship in the fourth quarter of 2008 and will be sold by both companies.

"SAP and IBM Lotus are strategic partners to The Coca-Cola Company," said Jean Michel-Ares, CIO, Coca-Cola Company. "Our IT goal is to help our people to be more responsive, productive and effective, and SAP and IBM Lotus have helped us get closer to that goal. The partnership between IBM Lotus, SAP and The Coca-Cola Company promises to deliver additional value to our associates and improve the tools they use every day."

Friday, January 18, 2008

how to don't save computed fields in document

this question was at ibm's forum, so I wish to refresh memory... don't forget about:

notesItem.SaveToDisk=false/true

by the way, and don't foget about this simple thing. How we can add authors or readers in documents.

notesItem.IsAuthors=true
notesItem.IsReaders=true

Thursday, January 17, 2008

approches to transmit parametres from conf.document

usually every application has at least one configuration document which contains some information about our application and of course you should to use these data in your application.

1. @DbLookUp and @DbColumn every time
first way is to create a view where you can find this document (@DBLookUp or @DbColumn)and receive needed data each time when you want, but it's very slowly way and stupid, because there are a lot of dblookup will be.
2. transmit Id of config doc
there is one another way which I prefer to use is to transmit the id of conifg documents (using @dblookup or other ways) and then each time when you need some data, you can use @getdocfield(id; fldName)
3. collect all data in 1 field in profile and then use this field
Another one good approach is to save all data in configuration document in one field, for example [fldName1]fldValue1:[fldName2]fldValue2:[fldName3]fldValue3 and so on, after that you can load this field using just 1 @dblookup and then parse it and receive this data. This method I used very often too, but now I switch to method #2.

ok, i know that we can you real profile documents, but i don't like to do it, and I'm not able to tell you why is it so :)
but any suggestion and new idea will be appreciate !