Hi Pourush!
Your best bet here is to create a CSS file that will simply load and hide the objects in question.
Unfortunately the HTML for those elements don't provide specific selectors so we'll have to be a bit crafty with the css.
.ca-propertiesGeneralView-label:has(#ca-propertiesGeneralView-searchPath), .ca-propertiesGeneralView-label:has(#ca-propertiesGeneralView-searchPath) + div {display:none}
That should find the divs containing the searchpath, and it's immediate sibling containing the id. The problem is the URL still contains the ID, there is no easy way around that.
The spec.json of the extension is extremely simple:
{
"name": "hideSearchPathInProperties",
"extensions": [
{
"perspective": "properties",
"features": [
{
"id": "hideSearchPath",
"cssStyles":["v1/ext/hideSearchPathInProperties/style.css"]
}
]
}
]
}
You can add "environment": {"groupsAndRoles": [":MyUsers"]}, " where :MyUsers is the CAMID of the group/role of users you want to hide the searchpath from.
{
"name": "hideSearchPathInProperties",
"extensions": [
{
"perspective": "common",
"features": [
{
"id": "hideSearchPath",
"environment": {"groupsAndRoles": [":Everyone"]},
"cssStyles":["style.css"]
}
]
}
]
}
------------------------------
Paul Mendelson
------------------------------
Original Message:
Sent: Fri April 19, 2024 04:34 PM
From: Pourush gupta
Subject: Can we hide search path and object is in properties perspective cognos v12
We have a special requirement of hiding search path and report object id from properties perspective in cognos v12
@Paul Mendelson I hope here I can get some assistance from you. please.
Example
we have a folder or report called Test in Team content. Once user clicks on properties of that object Test he will be redirected to properties perspective in V12 cognos and here I want to hide search path and object ID from normal consumer users
please help!!!!
#CognosAnalytics
------------------------------
Pourush gupta
------------------------------