Also, in a database, one user is assigned in GroupA and GroupB. In GroupA the user has Reader access level, and in GroupB the user has Author access level. Which access level applies to this user?
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.
Yes, you can validate a Rich Text field with JavaScript and LotusScript. With LotusScript, you can use the FieldGetText method on the NotesUIDocument class to get a regular string to test. Here is a quick example of validating a Rich Text field with LotusScript:
Dim uiws As New NotesUIWorkspace,
uidoc As NotesUIDocument
Dim sRichText As String
Set uidoc = uiws.CurrentDocument
sRichText = uidoc.FieldGetText("rt")
' Sample Validation code
If sRichText = "" Then
Msgbox "please input rich text"
Else
Msgbox "the rich text entered is: " + sRichText
End If
And here is a similar example of JavaScript code to do the same thing, in this case using the DOM to access the value of a field named rt.
sRichText = document.
forms[0].rt.value
// Sample validation code
if (sRichText == "")
{
alert("Please input some rich text")
}
else
{
alert("the rich text you entered is: "
+ sRichText)
}
This was first published in October 2003