Mysterious NotesForm.Fields results

In the ASND Export Facility I have on OpenNTF, I use the Fields property of the NotesForm class to generate a list of fields that you can export from a selected database.  My assumption was that this property would return an array of all the names of the fields that were on the form.  This worked as expected until I got a bug report recently from a user who indicated that there were fields missing when you tried to export Contacts from a Personal Address Book.  For some reason, the Birthday field, along with a number of other fields, don't show up in the array returned by the Fields property.  I can't figure out any reason why they fields won't show up in the list.

Does anyone have any idea as to why certain fields don't show up in the fields array?  If I come up an answer, I will be sure to post it here.  Any help would be greatly appreciated.

<< Previous Document / Next Document >>
  • 1) found out why... - Charles Robinson
    Created 7/24/2007 9:57:50 AM email | website

    It's because it's set to use a Calendar/Time Control. If you change it to a Notes style control it does show up. Native OS style controls do appear in the Fields array. I'm not sure if this is a bug or "working as designed". I didn't test using a NotesNoteCollection with SelectAllDesignElements, but I have a hunch that doesn't pick up fields.


Discussion for this entry is now closed.