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 email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
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.