Posted: 13 Oct 2015 1:59 EDT Last activity: 15 Oct 2015 6:21 EDT
Need to change the Tab Name of a WorkObject
I have a requirement where I need to change the Label of the tab name of an opened workobject. For example if my Work Object is showing as "CC-100" in the tab label, I need to change it to "Credit Check"
Add the following script to HTML fragment called 'UserWorkForm'. (On a side note, this HTML Fragment is by default referred in pyCaseManager, pyCaseWorker portals via another HTML Fragment called WorkFormStandard.)
Make sure that for each case type, you have a property called 'MyProperty' on your work page with the desired tab label set (you can do this by setting a value to .MyProperty in pyDefault Data Transform or pySetFieldDefaults Data Transform for each case type), else the script won't work.
pega.u.d.setLabel('<pega:reference name="pyWorkPage.MyProperty"/>'); //Replace MyProperty with any property name of your choice