Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Notes Dokument mit Anhang speichern

Empfohlene Antworten

Veröffentlicht

Hi!

Folgendes Problem:

Ich möchte gerne ein selbsterzeugtes Mailobjekt, in dem auch ein Dateianhang drin ist, in einer Notes Datenbank speichern.

Dafür wird die Datei in ein RichTextFeld-Objekt eingebettet und mit weggespeichert.

Nur leider ändert die NotesAPI anscheinend den Backslash des Dateipfades in einen Slash und somit wird die Datei nicht gefunden und es kommt zu einer NotesException!

Hier der betroffene Quellcode:

RichTextItem rti =

doc.createRichTextItem(

PostfachConfig.NOTES_FIELD_ATTACHMENT);

if (rti != null)

{

rti.addNewLine();

rti.appendText("");

rti.embedObject(

EmbeddedObject.EMBED_ATTACHMENT,

"",

m.getAttach().getFilename(),

m.getAttach().getName());

}

Als Fehler wird „Domino Exception 4225 null“ an der Stelle m.getAttach().getFilename(); ausgeworfen. Und als Text: „C:/test.txt not found“. JAA, test.txt ist auf C:\ vorhanden!

Also hat jemand einen Tipp wieso der Backslash zum Slash wird, oder woran es sonst liegt und wie ich es ändern muss??

Danke!!

Gruss

Jo

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.