kenikavanbis
Terugkerende gebruiker
- Lid geworden
- 22 mei 2007
- Berichten
- 2.122
Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
<?php
//Initiate Lotus Notes session
$session = new COM( "Lotus.NotesSession" );
$session->Initialize();
//Show the name of the current Notes user
print "Current user: " . $session->CommonUserName . "\n\n";
//Get database handle
$db = $session->getDatabase( "", "mailtest.nsf" );
//Get view handle using previously received database handle.
//Note that the reserved character in the view name must be \-escaped
$view = $db->getView( "(\$Drafts)" );
//Get first document in view using previously received view handle
$doc = $view->getFirstDocument();
//Loop until all documents in view are processed
while (is_object($doc)) {
//Get handle to a field called "Subject"
$field=$doc->GetFirstItem("Subject");
//Get text value of the field
$fieldvalue=$field->text;
//Show the value of the field
print "Subject: " . $fieldvalue . "\n";
//Get next document in the view
$doc = $view->getNextDocument($doc);
}
//Release the session object
$session = null;
?>
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.