Das Notes Forum
Domino 9 und frühere Versionen => Entwicklung => Thema gestartet von: sotonic am 14.01.04 - 11:06:16
-
Hallo Forum,
ich habe hier ein "altes" Formular, welches über eine Schaltfläche mit @mailsend die eingegebenen Daten an eine bestimmte Adresse versendet.
Jetzt soll es möglich gemacht werden das im Bemerkungsfeld (Typ Text) auch ein Attachment angehängt werden kann.
Soweit ich weiss geht das nicht mit @mailsend wenn dieser in einer Schaltfläche verwendet wird......habs probiert, Bemerkungsfeld auf Rich Text gesetzt damit ich Anhänge rein bekomme=Feld wird nicht übertragen!
Her mit eueren Ansätzen!
Ich hoffe es gibt welche ;-)
-
der inhalt von richtext-felder wird erst beim speichern angelegt.
-
Danke für den Reply
d.h. ich müsste das Dokument erst speichern & dann würde der Rich Text Inhalt auch per @mailsend gehen?
Ich habe hinter dem Formular aber keine DB = wie speichern?
-
Huch? Ohne DB gibt es aber kein Dokument
-
Tja, da ist das Problem halt wieder...
Über das Formular soll halt nur eine Mail erzeugt werden...nur jetzt halt mit Anhang
-
... dann musst du das mit LS machen...
ata
-
...und da fehlt bei mir etwas der Background.
Ein Ansatz (welche Scriptbefehle) würde mich etwas weiterbringen.
Kann dann die Designer Hilfe und mein Trainingsbuch quälen.
Etwas fertiges zum reindenken wäre mir allerdings lieber
-
... in aller Kürze...
NotesDocument
NotesRichTextItem
NotesEmbeddedObject
ata
-
Tja, das ist für mich zu knapp.
Trotzdem Danke!
ES GIBT ALSO KEINE MÖGLICHKEIT EIN ATTACHMENT IN FORMELSPRACHE ÜBER EINEN BUTTON ZU VERSENDEN!
Gibt es denn eine Möglichkeit mit einem Formelbefehl ein LS auszuführen?
Sonst müsste ich ja die bisher realisierten Features mit LS neu machen.....
-
Hallo,
falls ich dich richtig verstanden habe, dann kannst du einen Aktionsbutton erstellen. Dort kannst du auswählen welche art du
möchtest. Formel oder LS.
NotesNewbie
-
Warum geht eigentlich MailSend nicht ???
@MailSend( sendTo ; copyTo ; blindCopyTo ; subject ; remark ; bodyFields ; [ flags ] )
Parameters
sendTo
Text or text list. The primary recipient(s) of the mail memo.
copyTo
Text or text list. Optional. The copy recipient(s) of the mail memo.
blindCopyTo
Text or text list. Optional. The blind copy recipient(s) of the mail memo.
subject
Text. Optional. The text you want displayed in the Subject field. This is equivalent to the Subject field on a mail memo; the message is displayed in the Subject column in the views in the recipients' mail databases.
remark
Text. Optional. Any text you want at the beginning of the body field of the memo.
bodyFields
Text. The names of one or more fields from the current document that you want included in the mail memo. The fields must be of type text or text list, and are appended to the memo in the order in which you list them. (You can store @Text of a numeric field in a variable and use the variable name as a field name.) Enclose each field name in quotation marks. If you want to list multiple fields, use the list format: "description":"issues":"resolution." If you store the name of the field in a variable, omit the quotation marks here.
When you use the [IncludeDocLink] flag (described below) to include a link to the current document, you should set the bodyFields parameter to null (""). If Notes/Domino cannot locate a field by name, it uses the string literal instead.
[ flags ]
Keyword. One or more flags indicating the priority and security of the memo. If you specify multiple flags, format them as a list, as in [SIGN]:[PRIORITYHIGH]:[RETURNRECEIPT]. Enclose each flag in square brackets, as shown.
The available flags are:
[SIGN]
Electronically sign the memo when mailing it, using information from the user's ID. Signing does not occur unless you include this flag. This flag cannot be used in Web applications.
[ENCRYPT]
Encrypt the document using the recipient's public key, so that only the recipient whose private key matches can read the document. Encryption does not occur unless you include this flag. This flag cannot be used in Web applications.
[PRIORITYHIGH]
Immediately routes the message to the nexthop server, as defined by the combination of Mail Connection records and server records. If a phone call has to be made in order to route the message, then the call is placed immediately, regardless of the schedule set in the Remote Connection record. If you omit this flag, the priority defaults to Normal.
[PRIORITYNORMAL]
Routes the message to the nexthop server based on the schedule defined in the Mail Connect records. If the recipient's mail file resides on a server on the same Domino network, then delivery occurs immediately. If you omit this flag, the priority defaults to Normal.
[PRIORITYLOW]
Routes the message overnight if the recipient's mail file does not reside on a server on the same Notes/Domino network. If the recipient's mail file does reside on a server on the same Notes/Domino network, then delivery occurs immediately. Low Priority mail can also be controlled by a Notes/Domino environment variable called MailLowPriorityTime=x, where x is equal to a number from 0 to 23. When placed in the server notes.ini file, this variable tells the server when to route Low Priority mail. If you omit this flag, the priority defaults to Normal.
[RETURNRECEIPT]
Notify the sender when each recipient reads the message. No receipt is returned unless you include this flag.
[DELIVERYREPORTCONFIRMED]
Notify the sender whether delivery of the memo was successful or not. By default, the Basic delivery report is used, which notifies the sender only when a delivery failure occurs.
[INCLUDEDOCLINK]
Include a link pointing to the document that was open or selected when @MailSend was used. You must include this flag if you want that document linked to the mail memo. A new document must be saved.
-
LS aus einem Formelkonstrukt aufrufen? LS in Agent packen und den mit @Command aufrufen.
HTH,
Bernhard
-
hy,
anhang per formel verschicken:
@MailSend("empfänger";"" ;"";"Betreff!.";"";""; [IncludeDoclink])
gruss
NotesNewbie
-
@notesnewbie
Um ein Attachment zu erstellen bräuchtest Du ein RichText Feld.
Der Feldtyp kann aber nicht per MAILSEND verschickt werden.
Auszug @maildsend: Haupttextfelder
Text. Die Namen der Felder im aktuellen Dokument, die im Mail-Memo enthalten sein sollen. Die Felder müssen Daten des Typs Text oder Textliste enthalten; ihre Inhalte werden in der Reihenfolge an das Memo angehängt, in der sie von Ihnen aufgelistet wurden.
-
;) Also wie ich den Agenten per Formel aufrufen kann ist jetzt klar: @Command([ToolsRunMacro];"Agentname" )
Gibt es jemanden im Forum der in LS eine möglichst einfache "sende dieses Feld Funktion" realisiert hat?
ich tue mich mit den Dim Anweisungen etwas schwer
-
... versuch es mal mit dieser Formel in einem SmartIcon. Dazu mußt du im Bearbeitenmodus sein und mit dem Cursor in deinem Feld stehen.
@Command([EditSelectAll]);
@Command([EditCopy]);
@Command([Compose] ; @MailDBName ; "Memo");
@Command([EditGotoField] ; "Body");
@Command([EditPaste]);
Damit erstellst du im Frontend eine Mail...
... mit...
@Command([EditGotoField] ; "SendTo");
... wechselst du dann in das Empfängerfeld
... mit
@Command([EditInsertText] ; "info@emfaenger.de")
... den Empfänger eintragen...
@MailSend;
... absenden
ata
-
Hallo Forum,
Danke für die Tipps.
Ich habe mich entschlossen den Formularversand per LS zu realisieren. Mein Bruder hat mir die entscheidenen Hinweise gegeben...