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.
The report is about the notifications sent to the employees.
I have two concerns with the report.
1. In the report, the employee named Johnnisha Willis has a message which is too long and cannot be accommodated in a single row. Is there any possibility that the height of the row can be increased ?
2. The background color for the report is set as alternate colors for the consecutive rows in the style sheet. The report needs to have the background color in such a way the alternate colors should change when the employee name changes.
I have an idea of using LAST but unsure of how to use it in the code. For instance in the report The back color for JOHNNISHA WILLIS is both white and grey according to the style sheet. I want the color not to change unless the employee name changesThis message has been edited. Last edited by: FP Mod Chuck,
Nithita - You can achieve your requirements by using conditional styling.
What is the output format for your reports? Need some more inputs for the point 2. Is that your report is static(meaning your report is having fixed number of rows?)
Try to play around.
Hope this is helpful.
DEFINE FILE CAR MSG/A500=';DSOJ SOJFSOFJOFJOI IJFSJF;OFJSPFSFPOJFJFOFSFSFSFFLJFLKJ OIJF;SFJ;LJFOIU LSJ;SLJA;OIP'; LEN/I5=ARGLEN(500, MSG, 'I5'); END TABLE FILE CAR PRINT -*COMPUTE CNT/I2=IF CAR NE LAST CAR THEN 0 ELSE LAST CNT + 1; CAR MSG LEN -*ON TABLE PCHOLD FORMAT PDF ON TABLE SET PAGE OFF ON TABLE SET HTMLCSS ON ON TABLE SET PAGE NOLEAD ON TABLE SET STYLE * TYPE=REPORT,WRAP=2,WIDTH=2,SIZE=7,$ TYPE=REPORT,COLUMN=P2,COLOR=RED,SIZE=10,WHEN=LEN GE 70,$ ENDSTYLE END -RUN
You mention using code so here it is in code. However, if you need it via InfoAssist then add a compute in the normal manner and use conditional styling.
TABLE FILE CAR
SUM DCOST
RCOST
COMPUTE CNTR/I1 = IF COUNTRY EQ LAST COUNTRY THEN LAST CNTR ELSE ABS(LAST CNTR - 1); NOPRINT
BY COUNTRY
BY CAR
BY MODEL
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
TYPE=REPORT, COLUMN=MODEL, WIDTH=1, WRAP=1, $
TYPE=DATA, BACKCOLOR=(silver), WHEN=CNTR EQ 1, $
TYPE=DATA, BACKCOLOR=(white), WHEN=CNTR EQ 0, $
ENDSTYLE
END
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