I have been working on some Modern Dashboards and want to use the url filters talk about here:
documentation.solarwinds.com/.../core-fusion-dashboard-global-filters.htm
Let me walk you through where I get stuck.
Let's say I have a table widget with the SWQL of:
SELECT n.Caption,n.IP,n.MachineType,n.Status,n.DetailsUrl,n.VendorIcon , N.CustomProperties.Applications, N.CustomProperties.Support_Group
FROM Orion.Nodes n
I get how I can filter on status using: ?filters=5_Orion.Nodes_Status:eq:2
And I can swap out the _Status for any other field and make it work.
I and from my testing to filter on Custom Properties, I have to add an explicit join to that table.
Like in this SWQL:
SELECT n.Caption,n.IP,n.MachineType,n.Status,n.DetailsUrl,n.VendorIcon , N.CustomProperties.Applications, N.CustomProperties.Support_Group
FROM Orion.Nodes n
Join Orion.NodesCustomProperties NCP on N.NodeID = NCP.NodeID
I can search the custom property "Applications" with a filter like:
?filters=0_Orion.NodesCustomProperties_Applications:like:Application Name
And it will find nodes with the custom property 'Applications' set to 'Application Name' and the space won't bother anything.
Here's where I am stuck. I have underscores in some of my custom properties, properties that I use a lot. Underscores are clearly used in the URL parsing for tables and columns. It's even in the article I like above though I don't know if it's talking about the content it searches for. From the article:
Special characters
To safely construct/parse the URI parameter, global filtering does escape special characters.
Escaping is the simple operation of prefixing the following special characters with a single-quote character:
-_'|
I can't seem to get the underscore in a column name to be accepted by escaping it. Do I have to recreate the properties that have the special characters above?