In typical LotusScript shorthand notation, we access items on a document by simply referencing them like this: documentObject.ItemName(0). But how do you get fields with special characters like all the $ fields, such as "$Title" or "$UpdatedBy"? Here is what I found.
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
I have been looking for this feature for a long, long time. Not sure if I am the last to know about this or not, but here it is.
dim originatorOfThisDocument as string ' Fetch a back-end document object however you normally would set gLibCurrentNotesDocument = LibGetDocument( gLibCurrentDatabase, "vwDocID", someDocID ) ' I'm not adding the nice checking for valid objects, etc . . . . originatorOfThisDocument = gLibCurrentNotesDocument.~$UpdatedBy(0)
Notice the Tilde before the special character. That is the trick. No longer do you have to fetch items or GetItemValues.
So cool I had to pass it on.
Do you have comments on this tip? Let us know.
This tip was submitted to the SearchDomino.com tip exchange by member Steven Rieger. Please let others know how useful it is via the rating scale below. Do you have a useful Notes/Domino tip or code to share? Submit it to our monthly tip contest and you could win a prize and a spot in our Hall of Fame.