yuuvis® RAD Q&A

0 votes
by (890 points)

Hello,

I would like to display a date in the structure tree.
Once a month we publish files for our users.
So the structure tree should look like:

Document type

    -Manuals
    -Update Information
            - 12.05.2022
            - 15.04.2022

....

The defined scheme look like this:

{
   	"title": "Document type",
   	"key": "sysdocdoctype",
  	"field": "syinfodoc.dokumentart",
	"condition": "syinfodoc.sichtbarkeit='Öffentlich'",
	"expanded": true,
	"showempty" : true,
    "folder": 
	[
    	{
                "title": "Datum",
                "hide": true,
                "key": "sysdocdate",
	    "condition": "syinfodoc.dokumentart='Update Informationen'",
                "field": "syinfodoc.datum"
        }
    ]
}

However yuuvis does not display the Date as a normale date.
I guess it is some type of timeticks.

How can I change this behaviour?

Thanks in advance,
schulerb

1 Answer

0 votes
by (3.3k points)
selected by
 
Best answer

Hello,
Currently only a year histogramm and daterange is supported for date/time field types.
By inserting: "method":"yearhistogram" the objects are aggregated by the year. In your example:

{
  "title": "Datum",
  "hide": true,
  "key": "sysdocdate",
  "method":"yearhistogram",
  "condition": "syinfodoc.dokumentart='Update Informationen'",
  "field": "syinfodoc.datum"
}

By using 'daterange' as method, a aggregation by 'Last year','Last month', 'Last week' is done.

Supporting aggregation by month or even by a single day is planned for the future, but - sorry to say this - not possible in the current version. I hope the aggregation by year is for now suitable for your usecase.

br
Frank Klingebiel

by (890 points)
Hello Mr. Klingenbiel,

thank you for your answer.
I already saw in the documentation, that a histogramm is supported.
However a normal date view would be a better solution.

It would be great if this would be supported in future releases.

schulerb
...