So, instead of bringing in a couple of different properties from an analysis to create a report, I was trying to put a tuple in one property (Drive/free space/total space/percent free):
(
(
/* Drive letter/Mount Point of "drive" */
name of it ,
(
/* free space of "drive" */
free space of it /
(
1024 * 1024
)
)
as string & " MB" ,
(
/* total size of "drive" */
total space of it /
(
1024 * 1024
)
)
as string & " MB" ,
(
(
/* integer percentage free of "drive" */
free space of it * 100 / total space of it
)
as integer
)
)
of drives
whose
(
(
type of it = "DRIVE_FIXED"
)
AND
(
total space of it > 0
)
)
)
First, can you refer to the parts of the tuple with item # of to get the individual parts of the tuple, and…
If that works, how would you you refer to parts of the tuple using this to show the information for drives with less than 20% of free disk space? (Using something like this):
(
name of item 0 of it|“Computer Name missing”
, (if (size of item 1 of it = 1) then ((if it = “” then “No values” else it) of concatenation “;” of values of results (item 0 of it, elements of item 1 of it)) else (if (size of item 1 of it > 1) then (("Duplicates: " & concatenation “|” of ((name of it) & “=” & (id of it as string)) of elements of item 1 of it) as string) else (“Property does not exist”)))
, (if (size of item 2 of it = 1) then ((if it = “” then “No values” else it) of concatenation “;” of values of results (item 0 of it, elements of item 2 of it)) else (if (size of item 2 of it > 1) then (("Duplicates: " & concatenation “|” of ((name of it) & “=” & (id of it as string)) of elements of item 2 of it) as string) else (“Property does not exist”)))
)
of
(
elements of item 0 of it
,item 1 of it
,item 2 of it
)
of
(
set of BES computers whose (name of it as uppercase is “MYCOMPUTER”)
, set of bes properties whose (name of it as lowercase = (“Property1”) as lowercase)
, set of bes properties whose (name of it as lowercase = (“Property2”) as lowercase)
)
Thanks,
Bob_K