Matrix tile column

Hi,

I followed the webinar and reviewed all related forum topics, but still could not find an answer.

I am creating dashboard for custom objects. I am trying to display object’s properties in columns, but that does not seem to work.

My object is CustomService and it has text property ClusterULR.

I am trying to display ClusterURL in column by:

“_type”: “celltile/text”,
“config”: {
“display”: {
“contentTemplate”: “{{ClusterURL}}”
}
},
“title”: “Cluster URL”

I already tried mane other combinations for display, like:

“contentTemplate”: “{{properties.ClusterURL}}”

“labelTemplate”: “{{properties.ClusterURL}}”

“labelTemplate”: “{{ClusterURL}}”

This object property is clearly available, I can see it in SCOM and in Dashboard when I drill down the object.

I created custom row perspective and saved it into: C:\inetpub\wwwroot\SquaredUpv4\User\Packages\Everyone\Perspectives\rows and the reloaded as in webinar. It seems to be working fine - when I create new dashboard for this object class it adds the required column, but without any value.

Try it with a lower case C:

properties.clusterURL

For some reason you need to have the first letter in lower case. So for instance if the property is NetbiosComputerName, you need to write it like netbiosComputerName

In your case you should write it with lower case “c” in the beginning:
“labelTemplate”: “{{properties.clusterURL}}”

1 Like

Hey. Sorry if I don’t understand the question right as the text format is fuzzy. I was able to create a dashboard with the exact same json you posted. What exactly isn’t working for you? Can you show us a couple of screenshots maybe?

That was contentTemplate, instead of labelTemplate (together with starting property name with lower case). So proper line was:

“contentTemplate”: “{{properties.clusterURL}}”

I had to delete old dashboard and start over on order to get it working though.

Peter, Jelly and Badger - thanks a lot for your support. I really appreciate it.

Part of object properties:

[ABC.CustomService.Service].ID : vl144p1ycs9hegsh7f8ps54cu

[ABC.CustomService.Service].ClusterURL : be.infra.prd.abc.int

[ABC.CustomService.Service].Name : somename

[ABC.CustomService.Service].Replicas : 3

[ABC.CustomService.Service].Created : 2019-11-19T13:37:21.959798736Z

[System.ConfigItem].ObjectStatus : System.ConfigItem.ObjectStatusEnum.Active

[System.ConfigItem].AssetStatus : (null)

[System.ConfigItem].Notes : (null)

[System.Entity].DisplayName : somename

[ABC.CustomService.Cluster].URL : be.infra.prd.abc.int

This is how I want to display it in column:

[

{

“_type”: “celltile/status”,

“config”: {

  "display": {
			
     "cellWidth": "50%"
		
   }
	
},
	
"title": "Status"

},

{

"title": "Cluster URL",
	
"_type": "celltile/text",
	
"config": {
		
   "display": {
			
       "labelTemplate": "{{properties.clusterURL}}"
		
    }
	
 }

}

]

I am unable to display any of object custom properties that way.

Hmm… looking at one of mine, maybe it should be contentTemplate instead of labelTemplate when it comes to text.

“contentTemplate”: “{{properties.clusterURL}}”

Here is a Matrix tile that I have.

[
{
“_type”: “celltile/status”,
“title”: “State”,
“config”: {
“display”: {
“labelTemplate”: “{{properties.netbiosComputerName}}”
}
}
},
{
“_type”: “celltile/text”,
“config”: {
“display”: {
“contentTemplate”: “{{properties.netbiosDomainName}}”
}
},
“title”: “Domain”
},
{
“_type”: “celltile/text”,
“config”: {
“display”: {
“contentTemplate”: “{{properties.classification}}”
}
},
“title”: “Monitoring”
},
{
“_type”: “celltile/text”,
“config”: {
“display”: {
“contentTemplate”: “{{properties.environment}}”
}
},
“title”: “Environment”
},
{
“_type”: “celltile/text”,
“config”: {
“display”: {
“contentTemplate”: “{{properties.tags}}”
}
},
“title”: “Tags”
}
]