Problem with views in web

hi!!I am developing a web application and facing a problem with views. I am using the $$ViewBody field. all is working fine…except when there are no documents in the view…

in an empty view it shows a msg “No Documents Found”. I want to eliminate this msg…pls help…

thanks

kaushik das

Subject: problem with views in web

Put this field in a div tag.Like

$$ViewBody field

Onload event of this form write.

record.style.display=“none”

Subject: RE: problem with views in web

hi Nidhish…!!

If I will do what u asked me to do then the view will never be visible…with documents and without documents…I only want to hide the msg returned by the view when it is empty…

eg: “No Documents Found”

regards

kaushik das

Subject: RE: problem with views in web

Yaa that was the solution if you are aware of the situation when no document is found.

any ways do this as it is more generic

var noDocumentsFound = document.body.all.tags(“H2”);

var tagH2, textH2;

for (var i = 0; i < noDocumentsFound.length; i++)

{

tagH2 = noDocumentsFound[i];

textH2 = tagH2.innerText;

if (textH2.toLowerCase() == “no documents found”)

{

tagH2.style.display = "none";

}

}

Subject: RE: problem with views in web

hi Nidhish,

thanks for the solution…

and prompt response…

regards,

Kaushik das