6098 comments
2357 subscribers
6263 on Twitter
Subscribe! Feed reader E-mail

Custom fields in Lotus Notes / Domino? You may need to set the SUMMARY field flag

It took me a few hours to figure out that I needed the SUMMARY field flag, so I thought I’d save you the struggle if you ever need to create a view with custom columns.

I was trying to create a view that showed the custom fields I’d added to an RSVP message: RSVPCampaign, RSVPCode, and other details. I had created a Lotus Notes button that sent me an e-mail with the information in hidden fields. I successfully processed the extra fields using a LotusScript agent. I wanted to create a view that showed the results so that I didn’t have to keep clicking on the button and checking my mail. Using a view would make it easier for me to share these tools with other people, because I figured out how to create a button that creates a view.

I couldn’t figure out how to get my custom fields to display, though. They showed up in @DocFields, but @IsAvailable(RSVPCampaign) was always false.

I read about all of the functions in the Formula language. I experimented with @GetField, field names, and other ways to access data. I dug through documentation and websites (most of which assumed people already knew things like this). Frustrated, I opened the properties dialog and started systematically going through the fields on my RSVP messages.

It took me several passes to notice that the regular fields had “Field Flags: SUMMARY” and my custom fields didn’t.

After some quick searching, I realized that I needed to set the summary field flag. So I rewrote my RSVP mailing function to include lines like this:

Dim item As NotesItem
Set item = New NotesItem(doc, "RSVPCode", code) item.IsSummary = True

I tested my new RSVP mailing button, and my view worked!

So if you’re stumped because your custom fields don’t work in view selection formulas or in column formulas, set the summary flag on the field when you set the field, and you should be good to go.

I wonder how I could’ve learned that faster. Reading other people’s source code would help. Forums are useful, too. Part of it involves picking up the jargon so that I know how to phrase my searches. Anyway, I fixed it! =D

Short URL: http://sachachua.com/blog/p/7190
  • http://www.trajano.net/ Archimedes Trajano

    Use Document Library as your learning database, I found that it was the simplest that you can use aside from Blank that gives some form of useful examples. That’s what I did back when I was in Notes development phase back in Notes 4 and 5, but I don’t think it has changed much since then in terms of complexity.

On This Day...

  • 2013: Emacs, drawing, and blogging: Week ending May 17, 2013 — I spent four hours on Friday drawing this beginners’ one-page guide to Emacs, and people really liked it. =) It’ll [...]
  • 2012: Taking stock of the way I take notes — One of my friends was surprised that I use both Evernote and Microsoft OneNote. Many people are fervently in love [...]
  • 2011: Ordered a Kindle with free 3G — After much consideration (and you know how I analyze my decisions), I ordered the 6″ Kindle with free 3G and [...]
  • 2008: But how do you know what to draw? — But how do you know what to draw? You don’t know until you start drawing.
  • 2008: Weekly review: Week ending May 18 — Wow. What a week. Every week helps me understand a little more about life and what I love to do, [...]
  • 2007: Technical interview — I’m going for a technical interview with IBM Global Business Services later. I’ve written up a technical resume, and I’m relieved [...]
  • 2007: Events in the Philippines? — I’m going to be in the Philippines for two weeks starting Monday, and I’d love to find out what events or [...]
  • 2006: Video sharing — Now I need to figure out how to get all this data off my system. I should share my videos [...]
  • 2006: Finding geeks — I don’t know why people complain about not being able to find talent. ;) I run across so many interesting people [...]
  • 2006: Bestest research lab evar — My research supervisor and my labmates are totally awesome. They listened to me freak out about impending doom and told me [...]
  • 2006: I am so dead — My mind’s just blanking out. There’s no way I’m going to finish a credible draft of this paper within the next [...]
  • 2006: Must not panic — I have a few hours to read tons of papers on innovation diffusion, social network analysis, and other fun stuff. Ack. [...]
  • 2006: Working at the lab versus working at home — It’s drizzling and gray outside, which makes staying here and working on my paper more attractive than trekking over to the [...]
  • 2006: Research paper cramming — My research supervisor has just strongly hinted that it would be a good idea to get some kind of draft in [...]
  • 2006: Why I don’t have to make my website pretty — Feedburner statistics show that out of 225 blog readers in the past 24 hours, only 12 of them actually visit [...]
  • 2006: Woohoo! Free Skype to US and Canada! — As part of a research study for Bell Canada, I get free VOIP calls to US and Canada. However, that [...]
  • 2006: Web alerts, pubsub, and other cool tools — One of the coolest things about blogs is that they can get indexed almost immediately after they’re posted. Services such as [...]
  • 2006: Traditional clothes — I like wearing outfits inspired by traditional Filipino costumes. I love wearing my malongs, for example. I want more Filipina flair! =) On [...]
  • 2006: Awww… — =) I’ll hack my T-shirts but not my hair or skin – no bleaching or dyeing or tattooing or whatever. ]] Random Japanese [...]
  • 2006: Barcamp explained — Joey de Villa has an excellent blog post explaining BarCamp. Check it out. On Technorati: barcamp Random Japanese sentence: 私は犬の方が猫より好きです。なぜなら、前者の方が後者より忠実ですから。 I like dogs [...]
  • 2006: Thunderstorm — Squishing through the thunderstorm in my soaked red sneakers, hearing droplets drum the samba on my umbrella, feeling the humid air [...]
  • 2006: Moleskine — I gave away a Moleskine today to Gabriel Mansour, one of the students I’d met at Mesh. He’s been enthusiastically going [...]
  • 2005: Task management with Emacs: Text files — With the wealth of code available for Emacs and the ease of customization it provides, you’re certain to find a task [...]
  • 2004: Words to review for the GRE — chary cautious wary cloture closing device (in Parliament) to end a debate by voting coeval of the same period coexisting countervail counterbalance desuetude cessation of use disuse edacious voracious devouring encomium warm or [...]
  • 2004: My schedule now — M CS21A-B 8:30 9:30 F-227 (lecture) M CS110-A 10:30 |11:30 CTC215 M CS21A-G 11:30 |12:30 F-228 (mis) M CS139.3 1:30 4:30 W CS21A-B 8:30 9:30 F-227 (lecture) W CS110-A 10:30 |11:30 CTC215 W CS21A-G 11:30 |12:30 F-228 (mis) W CS139.3 1:30 2:30 . F CS21A-B 7:30 9:30 F-227 (lab) F CS110-A 10:30 |11:30 CTC215 F CS21A-G 11:30 |12:30 F-228 (mis) F CS139.3 1:30 2:30 . F CS21A-A 2:30 4:30 F-227 (lab for Dr. Sarmenta) T CS110-B 7:30 9:00 F-227 H CS110-B 7:30 9:00 F-227 I’m trying to see [...]
  • 2004: Sony Vaio U70 — http://www.dynamism.com/u70/ Ooooh, pretty…
  • 2004: Thoughts on natural language processing and possible research — Hmm, needs more thought. Wearable computing application: memory augmentation (personal information management, elderly) problems facing wearable computing (re information extraction/retrieval): - SPEECH-DRIVEN IMPLICIT QUERIES. A [...]
  • 2004: Donna Haraway’s “A Cyborg Manifesto: Science, Technology, and Socialist-Feminism in the Late Twentieth Century” — Simians, Cyborgs and Women: The Reinvention of Nature (New York; Routledge, 1991), pp.149-181. I don’t understand most of this yet. Haraway_CyborgManifesto.html

Get the highlights as a PDF!

Stories from my Twenties: Highlights from a Decade of Blogging

Free sample!