Hide 'no documents found' on Web
Create a $$ViewTemplateDefault Form.
Create a Table (1:1) on this form.
Hide the Tbale border
Put in the table cell (should be one cell) the following.
<div id="msg">
</div>
Create here a $$ViewBody field
<div id="view">
</div>
the div statements should be passthrough ofcourse.
Then include this JavaScript in form in the JS Header:
var msg ='<VALIGN=TOP><br><br><FONT SIZE=2
FACE="Arial">Sorry, Nothing to
display</FONT><BR><BR><FONT SIZE=2
FACE="Arial">Thank you,</FONT><BR><FONT SIZE=2
FACE="Arial">Greetings, </FONT><B><I><FONT
SIZE=2 FACE="Arial">.............</FONT></I></B>'
function CheckNoDocuments() { // function to replace the 'No
documents found' message
if (document.getElementById("view").innerHTML.indexOf("No documents
found") > 0) {
document.getElementById("view").innerHTML = ""
document.getElementById("msg").innerHTML = msg
} // end if
} // end function
And in the onload event:
CheckNoDocuments()
Create a Table (1:1) on this form.
Hide the Tbale border
Put in the table cell (should be one cell) the following.
<div id="msg">
</div>
Create here a $$ViewBody field
<div id="view">
</div>
the div statements should be passthrough ofcourse.
Then include this JavaScript in form in the JS Header:
var msg ='<VALIGN=TOP><br><br><FONT SIZE=2
FACE="Arial">Sorry, Nothing to
display</FONT><BR><BR><FONT SIZE=2
FACE="Arial">Thank you,</FONT><BR><FONT SIZE=2
FACE="Arial">Greetings, </FONT><B><I><FONT
SIZE=2 FACE="Arial">.............</FONT></I></B>'
function CheckNoDocuments() { // function to replace the 'No
documents found' message
if (document.getElementById("view").innerHTML.indexOf("No documents
found") > 0) {
document.getElementById("view").innerHTML = ""
document.getElementById("msg").innerHTML = msg
} // end if
} // end function
And in the onload event:
CheckNoDocuments()