Thursday, December 28, 2006

Thanks to "@Eval"

Hi there,

It was still now a big problem for me to write a code validation on all the 25 fields, now "@Eval" made my work very simple. Let me explain you the excellent new feature of R6 "@Eval" function.

Have a ComputedForDisplay Fields with the below code as a default value, name the field as "dEval".

"@If(@ThisValue=\"\";@Failure(\"Please enter \" + @Leftback (@ThisName;2) + \" value\");@Success)"

Says for example if we have 25 fields which has be checked for NULL validation. Field names as follows

Name1TX, Name2TX,Name3TX ..... Name25TX.

Copy the below code in "Input Validation" section of the field as,

@Eval (dEval) that's it. Copy paste the same in all 25 fields. Validation job is done.

@Eval is very usefull in lot of places, if we are writing the same set of code in more that 1 field we can use this "@Eval" function.

Best Regards
Karthik

Tuesday, December 26, 2006

Sign your Lotus Notes database with 3 lines of code

Hi All,

It was always an big issue to sign our Lotus Notes / Domino database with Admin or Server ID. Here comes the solution, no need of your Admin or Server ID to sign your agents, just a 3 lines of lotus script code will do that for us.

Create an agent and paste the code below

Sub Initialize
Dim session As New Notessession
Dim db As Notesdatabase
Set db = session.Currentdatabase
Call db.sign(DBSIGN_DOC_ALL)
End Sub

The agent will sign the database with the ID of the user who signed the agent. Then, you might ask "if the agent is signing with the Admin ID, what's the point?" Admin can use the Lotus Administrator to do it , but what about the developers who don't have access?

Thanks
Karthik

After a long weekend

Hi there,

After a long weekend back to office. Hope you all enjoyed Christmas with your family. I am starting my Blog with lot of new Domino Tips.

Happy New Year
Karthik

Thursday, December 21, 2006

Javascript on Form not working

Hi all,

I was hiting myself after wasting 3 hours in finding the issue. Let me explain you what the issue is all about.

I was asked to write a Javascript code which will be called on click of a Submit button. I checked the button, it was already calling a function so I thought I will append the code to the existing function. I wrote my code, but my code was no way executing.

Problem started here, I searched in the team studio configurator and got the functions with the same function name in lot of places, say for eg the code was there in the form JS Header, in the Subform JS Header and in the Page also, so I don't know which function will trigger, as usual :-) I started giving alert in each function to check which function the Submit button is calling. I got the result :-( non of the functions, non of my alerts triggered.

At last I found it in the Form, the code which I wrote was in the Java Script of the client not the web. Our previous developer copied the same code both in Web and Client and atlast he changed the option to client which I didn't notice. Good that I found in 3 hours not in 3 days :).
Hope you will check when you JS is not working in JS Header on web.

Thanks
Karthik

Tuesday, December 19, 2006

Next release of Lotus Notes - “Hannover” Feature of Lotus Notes

The code name for the next release of Lotus Notes called as "Hannover", it has new look and new capabilities, it's the feature of Lotus Notes.

Let's make the name clear - Many are refering this a Domino Next and many as Domino 8. The official name of the next release of Domino 8 and the code name is "Hannover".

Lotus Notes: A core element of the IBM Workplace family

For over two years now, IBM has been delivering on an expanded vision for collaboration and improving the way people work. The IBM Workplace family of products and solutions is an aggressive extension of Lotus Notes, Domino and IBM WebSphere Portal technologies into a broad and modern family of software infrastructure, based on the IBM Software Group stack, and business solutions for horizontal and vertical business challenges. Lotus Notes and its upcoming "Hannover" release maintain a key role as the premier rich client experience for this family of software infrastructure products and solutions. The technical foundations of "Hannover" extend the ability of Lotus Notes to run existing and new applications and technologies from this exciting family and will further extend the business value our customers are receiving for their strategic investments in Lotus Notes.

Beta 1 is released by IBM for customers and partners.

Five minutes demo on "Hannover" - http://per.lausten.dk/blog/2006/06/demo-of-hannover-future-of-lotus-notes.html

My favorite Ed Brill Blog says more on Hannover - http://www.edbrill.com/ebrill/edbrill.nsf/dx/hannover----announcing-the-next-post-7.0-version-of-lotus-notes?opendocument&comments