Domino 9 und frühere Versionen > ND8: Entwicklung
Webseite im Notes Dokument?
Bruce Willis:
Hallo,
(wie) kann man eine Webseite in einem RT-Feld ablegen, so dass diese sich beim Öffnen des Notes Dokuments oder per Button aktualisiert angezeigt wird?
Gruß
Leo
pram:
Du könntest probieren, im QueryOpen dir den Inhalt der Webseite mittels db.GetDocumentByURL zu holen und dann ins gewünschte Richtextitem zu kopieren.
Alternativ könntest du auch versuchen, als HTML <IFrame src="...."> einzubinden (Durchgangshtml/ ggf. über MIME-Items)
Ich befürchte aber, das Notes IFrames nicht kann.
Gruß
Roland
umi:
Hallo
Soweit ich das gesehen habe wird dies mit 8.5.4 möglich sein... evtl...
Bruce Willis:
--- Zitat von: pram am 05.09.12 - 13:59:55 ---Du könntest probieren, im QueryOpen dir den Inhalt der Webseite mittels db.GetDocumentByURL zu holen und dann ins gewünschte Richtextitem zu kopieren...
--- Ende Zitat ---
Hallo Roland,
vielen Dank für die schnelle Antwort!
Funktioniert einwandfrei.
Kann man evtl. noch LoginName und Passwort mitgeben?
Gruß
Leo
--- Code: ---Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
Dim session As New NotesSession
Dim ws As New NotesUIWorkspace
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Dim doc As NotesDocument
Set doc = Source.Document
Dim MyDoc As New NotesDocument(db)
Set MyDoc = db.GetDocumentByURL _
("http://atnotes.de/index.php/topic,54901.msg354263.html#msg354263")
MyDoc.Form = "TestFormURL"
MyDoc.Subject = Now
Call MyDoc.Save(True,True)
Dim item As NotesItem
Set item = MyDoc.GetFirstItem( "Body" )
Call doc.CopyItem( item, "Body" )
End Sub
--- Ende Code ---
pram:
Hallo Leo
--- Zitat von: Bruce Willis am 05.09.12 - 23:32:26 ---Kann man evtl. noch LoginName und Passwort mitgeben?
--- Ende Zitat ---
Gugst du in die Hilfe von GetDocumentByUrl... ;)
MyDoc würde ich übrigens nicht speichern und auf manchen Servern/DBs funktioniert auch GetDocumentByUrl nicht. (wenn der Web retiever Prozess nicht aktiv ist)
-> Hier musst du dann eine lokale DB verwenden, z.B. die Cache.ndk o.a.
Gruß
Roland
Navigation
[0] Themen-Index
[#] Nächste Seite
Zur normalen Ansicht wechseln