Domino 9 und frühere Versionen > ND6: Entwicklung
No Documents found
CLI_Andreas_Schmidt:
Hi @all,
kann man die Meldung "No Documents found" ausschalten, wenn eine Ansicht im Web dargestellt wird ?
Gruss
Andreas
Driri:
Das hab ich dazu in meiner Tipp-Datenbank gefunden, Autor nicht bekannt :
--- Zitat ---What I did was to have a separate hidden field containing:
@Elements(@DbColumn("";srv:db;view;1)) ' Which is the view you are displaying.
Then you can use the result of this field (0 if the view is empty) in hide-when formulae for the $$ViewBody and you own custom
message. Make sure the @Elements field is above the others so it is calculated in the right order.
--- Ende Zitat ---
umi:
Andere Lösung, ohne Lookups:
JavaScript, im onLoad :
--- Code: ---
var h2 = document.getElementsByTagName("h2");
for (var vLoop = 0; vLoop < h2.length; vLoop++){
if (h2[vLoop].childNodes[0].nodeValue == "No documents found"){
h2[vLoop].childNodes[0].nodeValue =' ' ;
}
}
--- Ende Code ---
datenbanken24:
Zweiteres ist bestimmt die bessere Lösung,
da Dir ein ständiger DBColumn beim Navigieren in einer View Deinen Server sinnlos auslastet
und ein aktivierter Cache möglicherweise das Ergebnis unbrauchbar macht.
Außerdem ist die dbcolumn Lösung nur für Ansichten mit wenigen Dokumenten brauchbar, wegen der 64 k Grenze:
@DbColumn can return no more than 64K bytes of data. Use the following equations to determine how much of your data can be returned using @DbColumn.
For lookups that return text:
2 + (2 * number of entries returned) + total text size of all entries
For lookups that return numbers or dates:
(10 * number of entries returned) + 6
CLI_Andreas_Schmidt:
Sehr schöne Lösung "UMI"
Danke.
PS. Auch Danke an alle anderen.
Navigation
[0] Themen-Index
[#] Nächste Seite
Zur normalen Ansicht wechseln