Domino 9 und frühere Versionen > ND6: Entwicklung

MailSend prompt

<< < (2/2)

koehlerbv:
Das hast Du schon:

--- Code: ---@If(@IsNewDoc; ""; modCoordinator != Coordinator;
@MailSend(Coordinator;"";"";_Subject;"Document Link: ";"";[IncludeDoclink]);"");
--- Ende Code ---

Dann machst Du einfach folgendes daraus:

--- Code: ---@If(@IsNewDoc; ""; modCoordinator != Coordinator;
@MailSend(Coordinator;"";"";_Subject;"Document Link: ";"";[IncludeDoclink]);"");
_recipients_ := @If (modCoordinator != Coordinator; @Trim (_recipients : Coordinator); _recipients);
--- Ende Code ---

Für Deinen Prompt hast Du dann den zu "implodierenden" Inhalt von _recipients.

Bernhard

fiuman007:
Ok. Sollen dann aber alle 3 Abfragen so sein:

@If(@IsNewDoc; ""; modCoordinator != Coordinator;
@MailSend(Coordinator;"";"";_Subject;"Document Link: ";"";[IncludeDoclink]);"");
_recipients_ := @If (modCoordinator != Coordinator; @Trim (_recipients : Coordinator); _recipients);


@If(@IsNewDoc; ""; modConformDelivery != ConformDelivery;
@MailSend(Sales; Sales2; ""; _Subject2;"Document Link: ";"";[IncludeDoclink]);"");
_recipients_ := @If (modConformDelivery != ConformDelivery; @Trim (_recipients : Sales & Sales2); _recipients);

@If(@IsNewDoc; ""; modProductionStart != ProductionStart;
@MailSend(ContactQS; ContactProduction; ContactCC; _Subject3;"Document Link: ";"";[IncludeDoclink]);"");
_recipients_ := @If (modProductionStart != ProductionStart; @Trim (_recipients : ContactQS & ContactProduction & ContactCC); _recipients);

also überall _recipients ?

Und Prompt bleibt dann gleich, oder soll ich dann da den _recipients irgendwo einfügen ?

@Prompt([Ok];"MailSend";"Das Dokument wurde an folgende Personen geschickt: " + @Implode (@Name ([CN]; ContactQS)) + " ; "  + @Implode(@Name ([CN]; ContactProduction))  + " ; " + @Implode(@Name ([CN]; ContactCC)) + " ; " + @Implode(@Name ([CN];  Sales)) + " ; " + @Implode(@Name ([CN]; Sales2)) + " ; " + @Implode(@Name ([CN]; Coordinator)))



Weil wenn ich es jetzt so lasse, dann passiert genau das selbe wie vorher. Er gibt im Prompt alle Namen die belegt sind aus, obwohl es nur an 1-2 verschickt wird.....



koehlerbv:

--- Zitat von: fiuman007 am 16.02.05 - 16:22:53 ---also überall _recipients ?

Und Prompt bleibt dann gleich, oder soll ich dann da den _recipients irgendwo einfügen ?

--- Ende Zitat ---

Ja natürlich. Deshalb habe ich ja auch das @Trim schon mit eingebaut, damit es keine "leeren" Empfänger gibt.

Bernhard

fiuman007:
Sorry Bernhard aber irgendwie kapier ich es nicht,

also ich habe jetzt bei allen 3 Abfragen das _recipients eingebaut.


--- Code: ---@If(@IsNewDoc; ""; modCoordinator != Coordinator;
@MailSend(Coordinator;"";"";_Subject;"Document Link: ";"";[IncludeDoclink]);"");
_recipients_ := @If (modCoordinator != Coordinator; @Trim (_recipients : Coordinator); _recipients);


@If(@IsNewDoc; ""; modConformDelivery != ConformDelivery;
@MailSend(Sales; Sales2; ""; _Subject2;"Document Link: ";"";[IncludeDoclink]);"");
_recipients_ := @If (modConformDelivery != ConformDelivery; @Trim (_recipients : Sales & Sales2); _recipients);

@If(@IsNewDoc; ""; modProductionStart != ProductionStart;
@MailSend(ContactQS; ContactProduction; ContactCC; _Subject3;"Document Link: ";"";[IncludeDoclink]);"");
_recipients_ := @If (modProductionStart != ProductionStart; @Trim (_recipients : ContactQS & ContactProduction & ContactCC); _recipients);
--- Ende Code ---

Passt es so?  Und wo soll ich jetzt diese _recipients beim Prompt einbauen?


So schaue mein bisheriger Prompt aus?


--- Code: ---@Prompt([Ok];"MailSend"; "Das Dokument wurde an folgende Personen geschickt: " + @Implode (@Name([CN]; ContactQS)) + " ; "  + @Implode(@Name ([CN]; ContactProduction))  + " ; " + @Implode(@Name ([CN]; ContactCC)) + " ; " + @Implode(@Name ([CN];  Sales)) + " ; " + @Implode(@Name ([CN]; Sales2)) + " ; " + @Implode(@Name ([CN]; Coordinator)))
--- Ende Code ---


So wie es jetzt ist, wird gar kein Empfänger angezeigt ? ......  :(   Irgendwie blick ich des alles nicht durch ...



koehlerbv:
Du musst Listenwerte mit ":" verknüpfen und nicht mit "&".

Dein Prompt gibt dann nur noch @Implode (_recipients) aus.

Bernhard

Navigation

[0] Themen-Index

[*] Vorherige Sete

Zur normalen Ansicht wechseln