getProfileDocCollection (NotesDatabase - JavaScript)

Retrieves the profile documents associated with a profile form.

Defined in

NotesDatabase

Syntax

getProfileDocCollection(profileName:string) : NotesDocumentCollection
Parameter Description
profileName The name or an alias of the profile form.
Return value Description
DocumentCollection The profile documents. No profile documents results in an empty collection.

Examples

This button gets all the email profile documents in the current database.
var dc:NotesDocumentCollection = database.getProfileDocCollection("email");
if (dc.getCount() > 0) {
	requestScope.status = "emails:";
	var doc:NotesDocument = dc.getFirstDocument();
	while (doc != null) {
		requestScope.status += "\n" + doc.getItemValueString("email");
		var tmpdoc = dc.getNextDocument();
		doc.recycle();
		doc = tmpdoc;
	}
} else {
	requestScope.status = "No emails";
}