Tuesday, September 22, 2009

Hidden Pages of Clarity Part-1

There are some hidden page in Clarity that allows advance management functions. Such pages don't have links visible on Clarity application or admin side. Following are some such pages.

http://localhost/niku/app?action=security.caches

This page allows us to flush selected object or all the object from application cache. Flush will not affect any kind of application outage.
Some of the use:
  • Sometimes user complains they don't see manu links on the left hand side, they see blank bar, but no links. If you find such problems go to above page and use flush all it will resolve the issue.
  • Many customization (off-bit customization) needs refresh of the application server memory. We can use flush all in such cases.

Remove specific Column from Resource Skill Page

Many times we get requirement from client to hide or remove some column from the clarity, which cannot be done from Admin side. E.g. I got requirement to remove Weight field from resource skill page. This change cannot be done through Skill Configuration at Clarity Admin Side.

Step-1
We need to find from application setup, from which file this page is rendered. Most of the pages get rendred from .xsl file. Resource Skill page is rendered using file:

..\niku\clarity\meta-inf\resource\vxls\skillassocs\skillassoclist.xsl

Step-2

Now we need to find where is the code to create column. We can use M
ozilla FireBug to get ID of the column that is used in code. See the following screenshot. In the screenshot I have find id for Proficiency column as I have already Hide weight column.

Screen1:




Screen2:



Step 3:
Remove the code from file, for respective column. For weight column we need to comment out Lines 121 to 123 and 162 to 175. See below screenshots.

Screen 3:


Screen 4:




Step 5:
Flush application Cache or restart application services.

*Note: You need to take care of this file during upgrades.