As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
Dear all, I am pretty new to Webfocus so please excuse me for asking what is probably a very simple question.
I am creating a report in Report Painter that will display total employee benefit amounts for every employee at my workplace. The columns are [Name], [Benefit_Total_Type_1], and [Benefit_Total_Type_2], and I am ordering by the invisible column [Sort_Name].
My problem is with the totals at the bottom of the report. I am able to get total dollar amounts for [Benefit_Total_Type_1] and [Benefit_Total_Type_2] by using the drop down list in Report--> Output--> 'Apply column totals to current totals in report', but I can't figure out how to also get a count of the [Name] (i.e. total number of employees) to go with the benefit totals . I can't seem to add anything to the the total line that has my benefit totals because it can only be selected as one entire group. I tried placing This message has been edited. Last edited by: 4 winds code slinger,
Without having a column to sum you would normally not be able to achieve what you want without resorting to manual coding.
However, as your post intimates that you have a fair grasp of navigating in RP, define a field and give it a format of I4 and equate to the value 1. Before you close this dialog, click the OPTIONS button next to the FORMAT button. At the bottom you should find a checkbox that will allow you to associate your temporary field with a real one. If your reporting structure is a single segment then you do not always need to do this part, but it doesn't hurt to get into the habit . Associate your temporary field with the one that you wish to count.
Add your new temporary field to your report and make it invisible. Then add it to a footer with a prefix of TOT - for instance, if your field is called COUNT_OF_EMPLOYEES then add TOT.COUNT_OF_EMPLOYEES. This will give you a count but not necessarily in the location that you need. Without jumping into the code this is probably the best that you'll achieve in report painter.
T
Edited to correct spelling This message has been edited. Last edited by: Tony A,
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Thanks for the help everyone! I was mostly able to use the method suggested by Tony to add the count. I don't think I followed the steps quite perfectly, but well enough for what was needed by the end users.