Domino 9 und frühere Versionen > ND6: Entwicklung

formel mit append

(1/6) > >>

luna:
hallo,

das ist meine standardformel, wenn ich durch button eine mail schicken will und dabei gleichzeitig den wert in ein feld schreiben will:

FIELD send_resp_IT := send_resp_IT;
@MailSend(mail_resp_IT;"";"";"new hotline call for you" + " /  " + dis_product;"";"please click on the link to open your document" + @NewLine + @NewLine ; [IncludeDoclink]);
@SetField("send_resp_IT";"mail to " + resp_IT + " has been sent"  + " on " + @Text(@Now));
@PostedCommand([FileSave]);
@PostedCommand([FileCloseWindow])

diese formel klappt auch wunderbar. ich möchte jetzt aber gerne, dass der wert, den ich erzeuge, per append hinten angehängt wird. mit simple action geht das ja, aber ich krieg das nicht in meiner manuellen formel hin. hab schon die ganze designer hilfe abgeklappert, und das forum, ich finde es aber nicht. könnt ihr mir helfen?

danke und gruss,
daniela

koehlerbv:
@SetField("send_resp_IT"; send_resp_IT + "mail to " + resp_IT + " has been sent"  + " on " + @Text(@Now));

FIELD send_resp_IT := send_resp_IT + ....

sollte auch funktionieren.

War es das, was Du meintest ?

Bernhard

luna:
hallo bernhard,

nein, leider nicht. ich habs einmal so probiert:

FIELD send_resp_IT := send_resp_IT;
@MailSend(mail_resp_IT;"";"";"new hotline call for you" + " /  " + dis_product;"";"please click on the link to open your document" + @NewLine + @NewLine ; [IncludeDoclink]);
@SetField("send_resp_IT";"mail to " + resp_IT + " has been sent"  + " on " + @Text(@Now));
FIELD send_resp_IT := send_resp_IT + "mail to " + resp_IT + " has been sent"  + " on " + @Text(@Now);
@PostedCommand([FileSave]);
@PostedCommand([FileCloseWindow])

da steht dann vom ersten moment an alles zweimal drin, aber jedesmal nur das neueste, das halt doppelt.

und einmal hab ich's so probiert:

FIELD send_resp_IT := send_resp_IT;
@MailSend(mail_resp_IT;"";"";"new hotline call for you" + " /  " + dis_product;"";"please click on the link to open your document" + @NewLine + @NewLine ; [IncludeDoclink]);
@SetField("send_resp_IT";"mail to " + resp_IT + " has been sent"  + " on " + @Text(@Now));
FIELD send_resp_IT := send_resp_IT;
@PostedCommand([FileSave]);
@PostedCommand([FileCloseWindow])

das geht auch nicht, da steht wie vorher immer nur das neueste drin.

gruss,
daniela

koehlerbv:
Das Verhalten Deiner Varianten ist völlig korrekt laut Deiner Syntax.

Hast Du denn mal meine Varianten ausprobiert ? Sorry, daß ich es nicht genauer aufgemalt habe: Das waren ZWEI Möglichkeiten (aber beide "so aus dem Hut")

So long,
Bernhard

PS:
Hier mal ein kompletter Vorschlag nur mit @SetField:
FIELD send_resp_IT := send_resp_IT;
@MailSend(mail_resp_IT;"";"";"new hotline call for you" + " /  " + dis_product;"";"please click on the link to open your document" + @NewLine + @NewLine ; [IncludeDoclink]);
@SetField("send_resp_IT"; send_resp_IT + "mail to " + resp_IT + " has been sent"  + " on " + @Text(@Now));
@PostedCommand([FileSave]);
@PostedCommand([FileCloseWindow])

Glombi:
Hi,
das mit den vielen FIELD und  @SetField kommt mir komisch vor. Versuch mal, erstmal nur Variablen zu nehmen und zum Schluß das Feld zu setzen:

@MailSend(mail_resp_IT;"";"";"new hotline call for you" + " /  " + dis_product;"";"please click on the link to open your document" + @NewLine + @NewLine ; [IncludeDoclink]);

_send_resp_IT := "mail to " + resp_IT + " has been sent"  + " on " + @Text(@Now));

FIELD send_resp_IT := send_resp_IT + _send_resp_IT;

@PostedCommand([FileSave]);
@PostedCommand([FileCloseWindow])


Andreas

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln