Domino 9 und frühere Versionen > Entwicklung
Anzeige von Bildern in Ansicht
gulp:
Hallo Ihr Lieben,
ich habe eine Datenbank, in der zu jedem Dokument ein Bild gespeichert wird (entweder als Anhang oder eingebettet). Diese Dokumente werden in einer Ansicht angezeigt und dabei soll in der 1. Spalte, das Bild dargestellt werden. Ich habe schon herausgefunden, daß es über Bildressourcen funktionieren könnte, aber die können nur vom Designer erstellt werden.
Hat jemand eine andere Idee?
Danke
gulp
Rob Green:
Hallo,
das habe ich in searchdomino gefunden. Hört sich gut an...
Now forward don't worry that how to display image in the View column.Just go
through the steps I have explained and apply it on u'r application where u had
left as this functionality is not supported on Notes.It is only Scripting which
make it to possible to happen.
Code
1.In the PostSave Event of the form gets the RichText Item and
sets the IsSummary Value to true (normally false with RichText Items).
Here in the example the form contain the rich text field name "Picture"
Sub Postsave(Source As Notesuidocument)
Dim doc As NotesDocument
Dim item As NotesItem
Set doc = Source.Document
Set item = doc.GetFirstItem("Picture")
item.IsSummary = True
Call doc.Save(False,True)
End Sub
2.Compose the Form.
3.Insert a image resource in a rich text field.
(U can do it from the menu as create/Image Resouce)
4.Save the document.
5. Now Create a view for the specific form and map the Rich text field
"Picture" to the
first column and don't forget to tick the column property "Display value as
Icons".
6.Now u can view u'r image in the first column of the view.
http://searchdomino.techtarget.com/tip/1,289483,sid4_gci490396,00.html
harkpabst_meliantrop:
:o Wenn das geht, ist das ja der Hammer!
Wieso weiß ich davon nichts? Das wird heute gleich ausprobiert.
Falls es wirklich nur mit Image Resources geht, dürfte es keine simple Lösung für das Anlegen durch Benutzer geben. Evtl. könnte das XML-Toolkit helfen, um die Bilder über den (sicher nicht sehr performanten) Umweg über einen XML-Export/Import einzufügen. Hier gibt es einen Artikel, wie man sowas sogar aus dem Browser machen könnte ...
Interessantes Thema.
edit: Lesbarkeit verbessert, hihihi
Axel:
Hi,
das hatten wir schon mal. Guckst du hier http://217.160.137.156/html/cgi-bin/yabb/YaBB.pl?board=002-3;action=display;num=1011190796
Axel
harkpabst_meliantrop:
Ja, da das ganze offentkundig ja wirklich nur mit Image Ressourcen funktioniert, ist es vielleicht doch nicht der Oberhammer.
Als Designer hat man keine Möglichkeit, die Ressource in ein RTF zu bekommen, als Benutzer sollte man normalerweise keinen editierenden Zugriff auf die Gestaltungselemente haben.
Naja ...
--E<:|
Navigation
[0] Themen-Index
[#] Nächste Seite
Zur normalen Ansicht wechseln