Xpage view ... totals?

Hi,

I have a Notes View, the first column is categorized and the second column is set to show totals by category.

When I integrate this view in an Xpage, I don’t get the totals by category like in the Notes View.

I have tried with a simple uncategorized view, here I the totals row is ok in the XPage.

I am missing something ?

Regards,

Jerome

Subject: if you’re desperate :slight_smile:

Hi,

It depends on the theme and styles you use, but with the default ones the following will work:

If you don’t have one yet, create a custom.css file and add it as a style sheet resource to your database, create a style class xpsViewColumnStart that will override the style xspViewColumnStart in the webstandard and oneUI themes and simply add a display:inline to the class definition:

.xspColumnViewStart{display:inline;}

In your xpage source add a new column to your existing view and use a unique id for it, like this:

<xp:viewColumn id=“totalColumn” contentType=“HTML”>

		<xp:this.value><![CDATA[#{javascript:if (rowData.isCategory()) rowData.getDescendantCount() + "";}]]></xp:this.value>

</xp:viewColumn>

rowData is the row variable name for the view.

It’s not perfect because you can’t have padding or normal column width, but at least it’s something.

Tibor

Subject: If I recall this is a bug…

Yeah, and a pretty crummy one too. A long-existing, heavily used feature that just didn’t work in 8.5.0.

If I recall it’s fixed in 8.5.1 and 8.5.0FP1 (due out in July).