Question

I want to hide the grand total row in views using @formula or lotusscript.
How should I do this?

Was it helpful?

Solution

There's no Formula or LotusScript for hiding the grand total in a view, but I found a work-around for the cases where the grand total does not make business sense at all and would only confuse the users.

Displaying the view as an embedded view in a form, using Show single category leaves out the grand total row. You may need to use this view only as embedded view and have otherwise useless fixed category for all documents (i.e. put "1" in the formula for the categorized column and use the same in Show single category). You'll also need the SaveOptions text field with default value "0" so the users don't get dialog asking whether they want to save the document (after all, for them this is a view) and the line Continue = False in the QuerySave event.

Then you need to find how to best integrate this with the other views - maybe use Auto frame in the form properties if your application uses framesets. The users may not be able to tell the difference.

Seems like a lot of work for removing one line from the view but I am not aware of another way to hide it and sometimes it's worth the added complexity.

Does that help?

OTHER TIPS

You can also create a Filtered By Category view by using @SetViewInfo with first column with value "1" and filter by this values. All documents will be displayed only total sum will be hidden.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top