Cannot format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nocstaff@urbancom.net
    Member
    • Jul 2025
    • 53

    #1

    Cannot format

    I made a custom entity called total job time, and I tried to make an entity based report template that includes this. However, it calculates in the report as seconds. I tried to adding formation coding in the html like

    HTML Code:
    <strong>Total Job Time:</strong> {{duration\format(duration)}}
    and I also tried to calculate it within the html and produce that output like here

    HTML Code:
    <tr>
    <td style="width:50%;">
    <strong>Completion Time:</strong> {{dateEnd}}
    </td>
    <td style="width:50%;">
    <strong>Total Job Time:</strong> {{duration\format(duration)}}
    </td>
    </tr>
    but nothing I tried worked, it always ended up with either a blank response or an error 500. I also tried to add a formula script before save custom script, but that usually just ended in an error too. How can I fix this?
    Attached Files
  • victor
    Active Community Member
    • Aug 2022
    • 1001

    #2
    Report Template is not a regular PDF Template - it is more complex and the possible customizations here are very minimal.

    You edited the Report Template and inserted {{duration\format(duration)}}. Who advised you to do this?

    What does your Report look like?

    Comment

    Working...