Empty view in web - Please help

Hi,

I am trying to display a view on a web page but if the view is empty its showing a message ‘No Documents found’. Is there a way by setting some property or code that if there are no documents in the view, it should show as empty view on the web page.

Thanks,

Jai.

Subject: Empty view in web - Please help

Yes it is possible to handle this.

One way is to hide the embedded view all together based on a criteria.

The critera is a computed field placed on the parent, containing a dblookup or a dbcolumn to test if a view is empty.

Something like:

ViewContent := @DbColumn (“”:“NoCache” ; “” ; “ViewToTest” ; 1);

@If (@Elements (ViewContent) > 0 ; 1 ; 0)

Now this field has 1 when the view is not empty and 0 when it is empty.

Hide the embedded view (or the html code for teh view) when the field is 0.

hth

Nicolas Abesdris

Subject: RE: Empty view in web - Please help

Thanks Nick.But I dont want to hide the view infact I want to show an empty view. The problem I am facing is, whenever the embedded view is empty it is showing a message ‘No Documents Found’ where as I need the empty view to be displayed.

Please let me know if I am not clear.

Subject: Empty view in web - Please help

http://www.codestore.info/store.nsf/unid/DOMM-4Q2CW3?OpenDocument