Hi, I’m trying to modify default date from “last became nonrelevants” variable using:
(year of it as string & "/" & month of it as two digits & "/" & day_of_month of it as two digits) of
in the below report:
<?relevance (names of it as string, names of computers of results whose (name of computers of it="computer" ) of it, ((year of it as string & "/" & month of it as two digits & "/" & day_of_month of it as two digits) of (maximum of last became nonrelevants of results whose (name of computers of it="computer" and exists last became relevant of it AND exists last became nonrelevant of it AND maximum of last became relevant of it < maximum of last became nonrelevant of it ) of it))) of source fixlets of components of component groups of bes fixlets whose (baseline flag of it and name of it starts with "appname" ), last report time of bes computers whose (name of it="computer") ?>
but I’m getting
“The operator “year” is not defined.” error. The relevance works if I don’t modify default date representation. Any suggestions? Thanks in advance!
The Time inspector/object in Relevance is like DateTime in some other languages. It contains both the date and the time information. In the case below, we need to reference the date attribute before using the Year, etc.
(
year of it as string & "/" &
month of it as two digits & "/" &
day_of_month of it as two digits
)
of date (local time zone) of now
For your report, I took the liberty of writing it in a different form for you as an example.
(
name of fixlet of it,
name of computer of it,
( year of it as string & "/" &
month of it as two digits & "/" &
day_of_month of it as two digits
) of date (local time zone) of
maximum of last became nonrelevants of it,
last report time of computer of it
) of
results
from
(bes computer whose (name of it = "computer"))
whose (
exists last became relevant of it AND
exists last became nonrelevant of it AND
maximum of last became relevant of it < maximum of last became nonrelevant of it)
of
source fixlets of components of component groups of bes fixlets
whose (baseline flag of it and name of it starts with "appname")
If you want this in an HTML table type output format, here is the example:
table of
concatenations of trs of
(
td of name of fixlet of it &
td of name of computer of it &
td of (year of it as string & "/" &
month of it as two digits & "/" &
day_of_month of it as two digits
) of date (local time zone) of
maximum of last became nonrelevants of it &
td of (it as string) of last report time of computer of it
) of
results
from
(bes computer whose (name of it = "computer"))
whose (
exists last became relevant of it AND
exists last became nonrelevant of it AND
maximum of last became relevant of it < maximum of last became nonrelevant of it)
of
source fixlets of components of component groups of bes fixlets
whose (baseline flag of it and name of it starts with "appname")
So the following would be a suitable form as a custom report for Web Reports.
<?relevance table of concatenations of trs of (td of name of fixlet of it & td of name of computer of it & td of (year of it as string & "/" & month of it as two digits & "/" & day_of_month of it as two digits) of date (local time zone) of maximum of last became nonrelevants of it & td of (it as string) of last report time of computer of it) of results from (bes computer whose (name of it = "computer")) whose (exists last became relevant of it AND exists last became nonrelevant of it AND maximum of last became relevant of it < maximum of last became nonrelevant of it) of source fixlets of components of component groups of bes fixlets whose (baseline flag of it and name of it starts with "appname") ?>