Group in State-Tile

Hello

I would like to group the instances in the state-tile according to a property “ID” in class.

is this possible in json?

"display": {
			"label": "name",
			"sublabel": "healthstatesummary",
			"src": "",
			"size": 30,
			"shape": "square",
			"topn": 0,
			"group": {
				"property": "ID",
				"order": "desc"
			}
		}

is this possible?

rg
hansi

Try using "id" (lowercase) instead of "ID"

Hi

I’ve had a quick look and while it can be done, it does have some limitations which aren’t ideal.

If I have a custom class with a property. E.g.

			<ClassTypes>
				<ClassType ID="Example.HR.AppServer" Base="Windows!Microsoft.Windows.ComputerRole" Accessibility="Public" Abstract="false" Hosted="true" Singleton="false">
					<Property ID="Version" Key="false" Type="string" />
				</ClassType>
			</ClassTypes>

Then I can group the status tile by the custom property. The limitation is that it seems I can only group by the following - label, health state or health state + availability:

So to sort by a custom property, I need to make that my label which might get messy and might not work for you.

		},
		"display": {
			"label": "custom",
			"sublabel": "custom",
			"src": "",
			"size": 30,
			"shape": "square",
			"group": {
				"property": "label",
				"order": "asc"
			},
			"topn": 0,
			"customLabel": "{{properties.version}}",
			"sublabelCustomLabel": "{{displayName}}"
		}

Which gives this version 1, version 2 and version 3 grouped as follows (it might be more readable with some free text in the custom label):

I’ll try and find some time to take a closer look to see if there is a neater way. And I’ll ask around the team to see if they can improve on the above.

Cheers

Graham

Quick add - I’ve had a quick chat internally and my post above is currently the only solution.

I’ve raised an enhancement request internally to enable the ability to “group by Object property” so that the grouping can be done in a neater way than I did above.

Thank you for info. I have done it like you suggested. But the output is not the best as you have already said.
So we wait for answer :slight_smile:

It is great enhancement request and I’ve added it to the backlog. I can’t make any guarantees on when it will be implemented but if you want to DM me then I can keep you updated.