Coding faster lookups in IBM Lotus Notes and Domino

Raphael Savir has compiled a list of tips and tricks on things around @dblookups etc. It’s published at IBM DeveloperWorks.Many of the tips was very basic, such as don’t do:

@if(@iserror(@dblookup(...);"ERROR";@dblookup(...));

Other things where real cool, for example, I have completely missed the beuty of @eval. in his article he gives an example on how to write better maintainable code:companyLookup := {@DbColumn(“Notes”; “”; “(Lookup-Companies)”; 1);};contactLookup := {@DbLookup(“Notes”; “”; “(Lookup-ContactsByCompany)”; CompanyName; “ContactName”);};@If(someCondition = 1; @Eval(companyLookup); @Eval(contactLookup))The article is well written and I can recommend it to all domino developers out there.

Leave a comment

Your comment