I know it's been awhile since I've written, but today I've been working on an extender class for a Notes Field. Now, I'm still relatively new to creating classes and all this might not really be all that good, not sure really. But this class is called the DominoField class and adds some properties which I think would be useful. If you can think of anything that I'm missing, got obviously wrong or you think would be cool, let me know and I'll add it.
Now looking at this I don't think I'm actually extending the Notes field class. I think this is just a way to capture more information about a field. I couldn't find any documentation on extending a base Lotus Notes class but I am still looking. I tried inheiriting from the Field class but it never would compile and would actually crash my client, so you may not be able to inherit from an included base class. Then again, it could be that I just didn't know what I was doing
But some of the properties we've got here are:
- fieldLabel - This allows you to define a label for the field for friendly validation, or whenever you need to present a field name to the end user
- fieldModifier - This will store who the last person to modify the document was. If the value of the field has changed it will display the current user, else it'll show the last entry in the NotesDocument.Authors property
- fieldName - This will return the name of the field
- fieldValue - This will return the current value of the field
- oldValue - This will return the value of the field when the DominoField class was initialized
Like I said, I don't think this is really extending the Field class but adding some useful functionality none-the-less. You can find the .lss file over in the
downloads section, enjoy