Question

Is there any possibility to get the reporting structure in read only mode?

Using RF_ReportingStructure  control, PEGA shows the Reporting Structure of any Operator. I want to use the same function but in Read only mode.

Can someone help on that?

I have check the java/ html/ activity rules. But I was not able to find how to disable the Operator ID links on the screen.

***Updated by moderator: Lochan to update Categories***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
December 29, 2016 - 6:06am

Yes this solution is working. It was enough to create 3 rules  as below.

ShowEmpTree HTML ==> ShowEmpTree_Test
Save as a new HTML rule, and Comment 29th line (//pgMetaData.putString("pyAnchor","openOperatorRec");)

showEmpTree Activity ==> showEmpTree_Test
Save as a new Activity Rule, and Change Step 3 - Replace new HTML rule ShowEmpTree_Test

RF_ReportingStructure control
save as a new Control rule, and Replace Activity name of showEmpTree in line 10
var objSafeUrl = new SafeURL("Data-Admin-Operator-ID.showEmpTree_Test");

 

Comments

Keep up to date on this post and subscribe to comments

December 27, 2016 - 10:08pm

Hello Dhanusha,

RF_ReportingStructure control uses multiple rules to display the hierarchy. If you want to customize this, you might have to save all these final rules with different set of names and change the flow accordingly.

The anchor tags are appended in showEmpTree HTML rule. You can remove or update this.

Pega
December 28, 2016 - 5:46am

Do you want to show this button in the operator id form itself ? 

If yes then doing so many modificaiton might not help as you have to then change the operator id ruleform as well in order to call the newly created rules .

if your requirement is to show this option in somewhere else, then apart from what Sashi suggested, you can as well try to put the control inside a wrapper section and make the complete section as read only. This way it can probably help.

December 29, 2016 - 3:09am

Thank you Shashidar and santanu. I will try this and reply on this.

My requirement is to display reporting structure for a given operator ID in a portal. Not on the same place we are using this in designer Studio.

So I think this worul be help.

Thank you.

December 29, 2016 - 6:06am

Yes this solution is working. It was enough to create 3 rules  as below.

ShowEmpTree HTML ==> ShowEmpTree_Test
Save as a new HTML rule, and Comment 29th line (//pgMetaData.putString("pyAnchor","openOperatorRec");)

showEmpTree Activity ==> showEmpTree_Test
Save as a new Activity Rule, and Change Step 3 - Replace new HTML rule ShowEmpTree_Test

RF_ReportingStructure control
save as a new Control rule, and Replace Activity name of showEmpTree in line 10
var objSafeUrl = new SafeURL("Data-Admin-Operator-ID.showEmpTree_Test");