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.
dan, i'm thinking that you're going to want to COLUMN-TOTAL that Revenue field. When using Summarize, the formula gets repeated, and in Price * Quantity calculations, that would mutliply the sum of price times the sum of quantity. Well, the sum of quantity is fine, but the sum of price would be meaningless. so ON TABLE COLUMN-TOTAL QUANTITY TotalPrice leaving PRICE out of the command.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
If your new code is being removed on save then I take it you are using the report painter? Where are you saving it from and how are you opening it? (e.g. have you got the procedure editor tool as default and then saving from the edit tab)
I haven't had any real trouble with 7.1.1 DS apart from the undo function, if this turns out to be the "norm" for 7.1.1 then I might have to resort to editing from Windows explorer or stick with DS 5.3.2!
T
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
Originally posted by Tony A: If your new code is being removed on save then I take it you are using the report painter? Where are you saving it from and how are you opening it? (e.g. have you got the procedure editor tool as default and then saving from the edit tab)
This happens to me when I use the source editor in the report painter.
I was able to get a grand total on the report, but it doesn't look very good. I added a column to group by (In my case, the facility id), then on the insert menu choose "Subtotal", and finally de-selected the columns I didn't need the total for.
But, that gets me something that looks like this (Imagine this is a HTML table):
+-----------+--------+--------+--------+------------+
| data | data | data | data | data |
+-----------+--------+--------+--------+------------+
|Total |
|61050YB |
+-----------+--------+--------+--------+------------+
| | | | | $65,930.56 |
+-----------+--------+--------+--------+------------+
The '61050YB' represents the facility id and I haven't been able to turn that off. . .
You have experienced the wonderful GUI that removes code that it can not handle even though it is correct syntactically. This is one of the frustrations I have with the GUI and why I resort to hand coding every time .
Try adding comments to the code (using the text editor) to describe what the process is attempting to achieve and then try and reopen it in the painter tool. You get a warning and all the comments are moved to the top of the fex. Very useful (NOT) and is the subject of an NFR (new feature request).
If you Take your original code and add the components that I suggested then you will have basically what you want. However, you will have to enter it via the text editor to achieve it.
T
p.s. Don't give up on the GUI, it does get better each release. Just don't expect it (the GUI) to be able to do everything you want it to do.
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
You specified facility_id as the field on which to do the sub-total. We AUTOMATICALLY include the value, so the report shows to WHICH sort value the sub-total refers.
There is a 'trick' to remove the value from the 'TOTAL'. Add a new DEFINE for a field with a CONSTANT value of blank (' '). Let's call that field BLANK.
Now, add BLANK as a sort (noprint), immediately after facility_id, so it becomes:
BY FACILITY_ID BY BLANK NOPRINT
and change the SUBTOTAL field from facility_id to BLANK.
Every time facility_id changes, since it's a higher sort than BLANK, we treat it as if BLANK also changed. When the subtotal line prints, it will STILL print the value, but in this case the value is ' ', which doesn't display.
Posts: 25 | Location: 2 Penn Plaza 28 fl | Registered: March 27, 2003
Heard from our senior programming management, removing of code is a known issue. Please contact Customer Support Service and open a case regarding the issue so that the case will be forwarded to programming for fix. The phone number for Customer Support Service is 1-800-736-6130, or you can utilize the online system InfoResponse.
Thanks to all.
Cheers,
Kerry
Kerry Zhan Focal Point Moderator Information Builders, Inc.
Posts: 1948 | Location: New York | Registered: November 16, 2004