Domino 9 und frühere Versionen > ND8: Entwicklung

@Adjust

(1/2) > >>

Hedwig14:
Hallo Jungs,

wie kann ich mit @Adjust alle Dokumente aus dem Vormonat in einer Ansicht anzeigen ?

Mit
@Adjust (@Today; 0; -1; 0; 0; 0; 0)
werden mir die Dokumente vom 18.01.2010 angezeigt ich will aber den kompletten Monat haben.

Danke !
Gruss
Hedwig

ascabg:
Hallo,

Baue Dir doch das Startdatum fuer Adjust, bei Deinem Beispiel @Today selber zusammen.
(z. B.: 1 Tag des aktuellen Monates)


Andreas

m3:
Du willst diesen Ansatz nochmals überdenken. ;)


--- Zitat ---Ordinarily, when you open a view, Lotus Notes looks at the “view index” – the stored list of documents and row values in the view – and examines only the documents created or modified since the index was last updated, to see whether they should be added to the view, or removed, or their column values recalculated. If there were no documents modified since the view was last used, the process is very quick.
If, however, you use @Today, the old view index is no longer useful. For instance, suppose the selection formula is:
SELECT Status = “Processing” & DueDate <= @Today
Documents can be added to this view, even if they haven't changed, because the value of @Today has changed since the view was last used. So every time you use this view, Lotus Notes discards the old view index and looks at every document in the database, to determine whether it belongs in that view and to recalculate column values.
--- Ende Zitat ---
aus Performance basics for IBM Lotus Notes developers

Ein paar "bessere" Optionnen bietet Dir zum Beispiel     
Time/Date views in Notes: What are the options? an.

Thomas Schulte:
Und nur so als Anmerkung. @Today in SelectFormeln von Ansichten ist keine sonderlich gute Idee. Lösungsvorschläge wie man das umgehen kann bietet das Forum zuhauf.

... Martin war a schneller und b präziser in seiner Aussage

Hedwig14:
ich habe mich ja an das Forum gewendet um Hilfe zu erhalten. Das ich in der Hilfe nachsehen kann ist mir klar. da bin ich aber nicht weitergekommen.

Das "searchFormula$" muss ich um die Einschränkung "letzter Monat" erweitern.
Wie kann ich hier die Formel entsp. erweitern ?


searchFormula$ = {Form = "Ticket" & Ticket_EmpfaengerTeam = oe  & TICKET_FEHLERNUMMERLFD = x }          
Set collection = db.Search(searchFormula$, Nothing, 0)
zähler = zähler +collection.Count



Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln