Home > Ask the Domino Experts > ARCHIVE: LotusScript and Web Development Questions & Answers > "Field or view column exceeds 32 Kb" errors from the @DBLookup formulas
Ask The Domino Expert: Questions & Answers
EMAIL THIS

"Field or view column exceeds 32 Kb" errors from the @DBLookup formulas

Todd Fuder EXPERT RESPONSE FROM: Todd Fuder

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 30 October 2002
I work with a large Notes application that uses @DBLookup formulas to generate selection lists in dialog box forms. These dialog boxes are used all over the place and currently, because of the growing amount of data in the application, users are getting "Field or view column exceeds 32 Kb" errors from the @DBLookup formulas. I have been working around these errors by cutting down the amount of information contained in the column that the @DBLookup formula returns, for example returning only the MATERIALID field (a unique 7 char field used by several classes of documents in my application) rather than a combination of the MATERIALID field and Description field. I would prefer not to do that, however. Is there a way of building a selection list in a dialog box form that can exceed the 32 Kb limit in an @DBLookup formula?

>
Actually, the limit is 64K, but on some systems, Lotus' Multi-Byte Character Set (LMBCS) causes the number of characters to be cut in half. Lucky you! Well, there's no direct way to remove this limitation, but there are a couple of work-arounds:
  1. Use an @Picklist, and show a view in your database. If you only need some data, make a special view for it. Whatever shows in the view will show in the picklist. Of special note, in R5 and higher, there's a new property "SingleCategory". If your view is categorized on the first column, and you set this property of the @Picklist equal to one of those category entries, then the Picklist box will ONLY show you the contents of that category! It won't even show you the category column - it just shows what's to the right of it. So you could have a view with all kinds of lookup information, sorted by "type", and categorized, then you can use the @Picklist to show the contents of the category you're interested in. A word on this, though: @Picklist has a 256K limit.
  2. More drastically, you could:
  • Create a form with an embedded view (with your choices in it)
  • Open the form with @DialogBox
  • Have the RegionDoubleClick event of the view write to the INI file the UNID of the record selected in the view
  • Upon closing the dialog box, read the INI file to get the UNID of the selected document
  • then go to that doc and get your value.

The advantage of this is that you have no worries about the size of what can show in the dialog box. The disadvantage is that it's a lot more work to make and a lot more that can fail.


@DBLookup advice

 Home: Introduction
 Tip 1: @DBLookup function for Web
 Tip 2: LotusScript equivalent of @DBLookup and @DBColumn
 Tip 3: Use scheduled agent to refresh all @DBLookup/computed values
 Tip 4: Error with @DBLookup command: 'Entry not found in index'
 Tip 5: JavaScript version of @DBLookup and @DBColumn
 Tip 6: Using Ajax as a replacement for @DBLookup
 Tip 7: Set up a help desk app with @DBLookup and @Columnlookup
 Tip 8: "Field or view column exceeds 32 Kb" errors using @DBLookup
 Tip 9: Workaround for @DBLookup error
 Tip 10: @DBLookup and @DBColumn for all browsers using Ajax


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
ARCHIVE: LotusScript and Web Development
Agent to open an Excel file and pass the URL on for a Web query?
WebQueryOpen/Save agent problem
Using the function @DialogBox in a Web application
Code for validation on a field
Displaying info. in the order it appeared in the view
Display from my Web page an an online link using Excel
Using @Unique
Creating a dynamic menu
Code used for the HTML head content section
Using VB script on a Web server and submitting online forms to a Lotus database

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Lotus Notes Domino on Blackberry and mobile devices
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts