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.
Hi! In my report, i have to conditionally highlight the columns based on the condition, if the field NIGHT_IND is 'Y'. In our report we have IN and OUT events for 7days.And i want to put the condition for every OUT event. We already have a field called 'NIGHT_IND', with value 'Y' or 'N', to identify, whether that field needs to be highlighted or not. I have tried to put the conditional for one column and it worked fine.But, when i am trying this condition for other columns, it is getting highlighted but in wrong place. It is getting highlighted in one position above or below from the actual position. Actually it is getting highlighted just next position of OUT Event to the previous column.
Please Advice..
Thanks ArpitaThis message has been edited. Last edited by: Arpita,
TYPE=DATA, -* removing the column notation should achieve what you need -* COLUMN=N10, FONT='ARIAL', SIZE=9, STYLE=NORMAL, BACKCOLOR=RGB(220 220 255), WHEN=NIGHT_IND EQ 'Y', $
Try the above change
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
Hi Tony, Thanks for your reply. I tried your advice, but it did'nt work. It is Highlighting the whole row with the first day OUT event. But, i want to highlight the specific value for all the 7 days OUT Event,which satisfy the condition of the OUT Event in the OUT Event Columns. Please advice.
Instead of COLUMN=N10 (which is a NOPRINT column BTW) you probably need ACROSSCOLUMN=N2 (which is the same NOPRINT column, but across).
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Precisely why you need to give as much information in your post as possible. As Wep5622 says, you need to ensure you use the correct syntax for the styling element that you need.
SET NODATA = ''
DEFINE FILE EMPDATA
MONTH/Mt = HIREDATE
END
TABLE FILE EMPDATA
SUM HIREDATE
CNT.HIREDATE AS 'Count'
BY MONTH
ACROSS DEPT
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
GRID=OFF, SIZE=9, $
TYPE=DATA, ACROSSCOLUMN=N1, BACKCOLOR=GREEN, WHEN=CNT.HIREDATE GT 1, $
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
Hi Wep, Thanks a lot for your reply. I tried your suggestion to use ACROSSCOLUMN= N2, It worked fine for 3 columns(tues,wed n thrus), But, for rest of the columns(sun,mon n fri),it is not working. Please advice... Thanks Arpita
I just noticed you're using NIGHT_IND in your WHEN-expression. In my experience that doesn't work for ACROSS columns, but a column number does. No idea what's the reason behind that...
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
That's just a matter of applying the same styling to another column as well, isn't it?
I haven't tried, but you could probably define a macro with that condition and the required styling and apply that to those columns - that would save you some style-duplication.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Hi Wep, Thanks for your reply. I have tried applying the same styling to another column as you have suggested before only. It worked fine for 3 columns(wed,thrus n fri), But, for rest of the columns(mon and tues),it is not working. I know it is strange, but i don't know what to do.
Does it work if you use N15 (if I counted correctly!) instead of NIGHT_IND in the macro definition?
That would confirm my earlier suspicions.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
According to the table file you posted upthread column N12 is START_TIME.
If columns don't get highlighted when they should, then either
the column you're styling (TYPE=DATA, ACROSSCOLUMN=N1), or
the column that you're using in your condition (WHEN=), or
the value you're comparing against
is wrong.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
It worked fine for 3 columns(wed,thrus n fri), But, for rest of the columns(mon and tues),it is not working.
If it works for three columns using the syntax suggested, but not two others then I would suspect that either the data (upon which you are performing your test) is suspect or that you're not telling us the entire story.
The styling would be applied globally so if it works for some columns but not others then I would really be very suspicious.
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