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

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

  • October 30, 2020
  • 1 reply
  • 697 views

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.
Best answer by ManuelBa

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

1 reply

Level 4
October 30, 2020

Could you just add this?

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

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

Kundanism
KundanismAuthor
Level 10
October 30, 2020

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.

ManuelBaAccepted solution
Level 4
October 30, 2020

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