Domino 9 und frühere Versionen > ND8: Entwicklung
Fehlermeldung bei ReplaceItemValue
klaussal:
--- Zitat ---Beispiel
Replaces the value of a specified name in all documents in a collection.
Defined in
NotesDocumentCollection
Syntax
Call notesDocumentCollection.StampAll( itemname, value )
Parameters
itemname
String. The name of the item.
value
A value appropriate for the item type.
Usage
If the item does not exist, it is created.
The item values are immediately written to the back-end documents. You do not have to use the Save method of NotesDocument after StampAll. However, any documents modified by your script must be saved before calling StampAll.
This method does not modify existing NotesDocument objects. Documents must be retrieved again to see the changes.
--- Ende Zitat ---
marschul:
--- Zitat ---also wenn ich die searchFormula anpasse, wie Marco gemeint hat, kommt beim speichern vom script "MA_Name" not a MEMBER
--- Ende Zitat ---
Hmmm, das liegt wohl daran, dass es sich um das Frontend-Dokument handelt. Nehmen wir doch stattdessen das Backend-Dokument:
--- Code: ---maname = join(currdoc.document.MA_Name, |":"|)
--- Ende Code ---
Gruß
Marco
mgeidl:
DANKE AN ALLE
Klappt jetzt so wie sich´s gehört ;D
LG
Marietta
cebolina:
Diese Frage ging etwas unter:
--- Zitat von: mgeidl am 21.02.11 - 11:20:16 ---Mir ist nicht ganz klar, wofür die | stehen?
--- Ende Zitat ---
Die Pipes | dienen der Übersichtlichkeit in der der Suchformel.
Es könnten auch { und } sein.
Z. B.:
--- Code: ---searchFormula$ = {Form = "Mitarbeiter" & M_Name = "} + maname + {"}
--- Ende Code ---
Schau in der Hilfe nach "Literal string construction rules".
Gruß Stefan
mgeidl:
Danke Stefan, werd ich mir mal genauer durchlesen, sobald Zeit da is.
LG
Marietta
Navigation
[0] Themen-Index
[*] Vorherige Sete
Zur normalen Ansicht wechseln