How to Bold the Actual Hour in Task Report? Have some of text code with us. | Community
Skip to main content
Kundanism
Level 10
Oct 30, 2020 8:52 AM UTC
Solved

How to Bold the Actual Hour in Task Report? Have some of text code with us.

Hi

Managed to highlight the actual hour if this is more than planned hour for a task highlight in red. But missing to highlight in Bold also. Sharing the code for correction and your reference;

------------------------------------------------------------------------------

textmode=false

valuefield=actualWorkRequired

valueformat=compound

viewalias=actualworkrequired

linkedname=direct

namekey=actualWorkRequired

querysort=actualWork

styledef.case.0.comparison.icon=false

styledef.case.0.comparison.leftmethod=minutesAsHoursString(actualWorkRequired)

styledef.case.0.comparison.lefttext=actualWork

styledef.case.0.comparison.operator=gt

styledef.case.0.comparison.operatortype=double

styledef.case.0.comparison.rightmethod=minutesAsHoursString(workRequired)

styledef.case.0.comparison.righttext=workRequired

styledef.case.0.comparison.trueproperty.0.name=bgcolor

styledef.case.0.comparison.trueproperty.0.value=eac6c9

styledef.case.0.comparison.truetext=

--------------------------------------------------------------------------

Best regards,

Kundan

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ManuelBaAccepted solution
Level 4
Oct 30, 2020 1:25 PM UTC

Yes, for red e.g. the following:

row.0.styledef.case.0.comparison.trueproperty.2.name=textcolor

row.0.styledef.case.0.comparison.trueproperty.2.value=d30519

3 replies

Level 4
Oct 30, 2020 11:43 AM UTC

Could you just add this?

styledef.case.0.comparison.trueproperty.1.name=fontstyle

styledef.case.0.comparison.trueproperty.1.value=bold

Translate
Kundanism
KundanismAuthor
Level 10
Oct 30, 2020 1:17 PM UTC

Excellent and Thanks @Manuel Bause‚ . It works exactly.

Is it possible to change the text colour also to highlight better?

Have a nice weekend!

Mvh

Kundan.

Translate
ManuelBaAccepted solution
Level 4
Oct 30, 2020 1:25 PM UTC

Yes, for red e.g. the following:

row.0.styledef.case.0.comparison.trueproperty.2.name=textcolor

row.0.styledef.case.0.comparison.trueproperty.2.value=d30519

Translate