tag:blogger.com,1999:blog-8343334554022531069.post7163172951775449776..comments2023-10-14T06:02:41.216-07:00Comments on Everything goes Lotus: DBColumn might not return what you expectUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8343334554022531069.post-16270928164782303462011-05-30T01:00:44.937-07:002011-05-30T01:00:44.937-07:00There are several of the @Functions that work inco...There are several of the @Functions that work inconsistently. To make it easier to work with, I wrote a wrapper function a while back.<br /><br />If you wrap all the "problem" function calls with something like this, you don't have to test every call.<br /><br />http://dontpanic82.blogspot.com/2010/09/xpages-helper-function-for-inconsistent.htmlTommy Valandhttps://www.blogger.com/profile/11052104644034054473noreply@blogger.comtag:blogger.com,1999:blog-8343334554022531069.post-50950390126494577692011-05-25T07:20:44.881-07:002011-05-25T07:20:44.881-07:00Did't remember that this was already found.
So...Did't remember that this was already found.<br />So I reinvented. So said I didn't think of the great Cheetsheet instead.Fredrikhttps://www.blogger.com/profile/15853373054072865683noreply@blogger.comtag:blogger.com,1999:blog-8343334554022531069.post-2554797976542765442011-05-25T06:39:53.004-07:002011-05-25T06:39:53.004-07:00Another way... from the Xpages Cheatsheet @ xpage...Another way... from the Xpages Cheatsheet @ xpagescheetsheet.com is:<br /><br />var r = @DbLookup(...);<br />return ((r.constructor == Array) ? r : [r]);<br /><br />I think Jeremy Jodge originally came up with this.Davidhttps://www.blogger.com/profile/01616506111232734818noreply@blogger.com