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.
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 =' ' ;
}
}
Andere Lösung, ohne Lookups:
JavaScript, im onLoad :Codevar 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 =' ' ; } }
Das ist kein Feld, sondern ein Event.