Question
Infosys Ltd
CA
Last activity: 1 Sep 2022 6:58 EDT
Drill down report name is displaying empty in reports breadcrumb
Hi All,
We have main report and a drill down down report. We created a shortcut for the main report to display in the reports tab.
No issues with functionality of opening a report and then opening a drill down report.
However theres' a bread crumb just above the reports. When we open the drill down report the bread crumb is as follows.
Mainreport>empty.
Here if we click in Mainreport we are able to navigate back to the main report. But not sure of the empty being displayed instead the drill down report name atleast.
Any idea/thoughts if we can display the drill down report name instead empty.
***Edited by Moderator Marije to add BUG ***
@Phaneendra_Reddy I was able to locate an issue that existed in earlier Pega releases (BUG-434607) but the issue was fixed from Pega 8.3 onwards. In earlier releases the control "pzRRBreadCrumb" removed appending of parenthesis when "empty" Field value is displayed.
if(strBreadCrumbText.length() == 0){
strBreadCrumbText.append(tools.getLocalizedTextForString("pyCaption","empty"));
}
That way, if we want to add brackets, we can add it in the field value itself.
If you have no field values, then this is an expected design behavior. The breadcrumbs is displayed from pzRRBreadCrumb control. When the strFilterValue is 0 it displays it as Empty. And for “ALL” and “Count” there is no filter applied. Except when the count is 1 it displays the strFilterValue itself
strBreadCrumbText.append(strFilterValue);
}
if(strBreadCrumbText.length() == 0){
strBreadCrumbText.append("(").append(tools.getLocalizedTextForString("pyCaption","empty")).append(")");
}
Solution:
Change the pyCaption localization value depending on the requirement.
Step 1. Search for the pyCaption Empty @baseclass. Make a note of the Caption in Empty.
@Phaneendra_Reddy I was able to locate an issue that existed in earlier Pega releases (BUG-434607) but the issue was fixed from Pega 8.3 onwards. In earlier releases the control "pzRRBreadCrumb" removed appending of parenthesis when "empty" Field value is displayed.
if(strBreadCrumbText.length() == 0){
strBreadCrumbText.append(tools.getLocalizedTextForString("pyCaption","empty"));
}
That way, if we want to add brackets, we can add it in the field value itself.
If you have no field values, then this is an expected design behavior. The breadcrumbs is displayed from pzRRBreadCrumb control. When the strFilterValue is 0 it displays it as Empty. And for “ALL” and “Count” there is no filter applied. Except when the count is 1 it displays the strFilterValue itself
strBreadCrumbText.append(strFilterValue);
}
if(strBreadCrumbText.length() == 0){
strBreadCrumbText.append("(").append(tools.getLocalizedTextForString("pyCaption","empty")).append(")");
}
Solution:
Change the pyCaption localization value depending on the requirement.
Step 1. Search for the pyCaption Empty @baseclass. Make a note of the Caption in Empty.
Step2: Do a Save As of the above rule as it is in @baseclass in your custom ruleset and change the text as ALL
If there are no further suggestions on the forum and you need further help I would suggest that you open a support incident for this so that our support team can look into your scenario details with you.