Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

day, month, year hash in report label

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
luca.ongaro
Posts: 64
Joined: Sun Jan 22, 2023 7:03 pm

day, month, year hash in report label

Unread post by luca.ongaro »

Hi,
I'm using the following label in a report:
#day#-#month#-#year#
but it is rendered as:
24-#month#-#year#
i.e. apparently only the first hash is translated.
Changing the order of variables doesn't impact.

Thank you
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: day, month, year hash in report label

Unread post by kev1n »

Hi,

A possible reason why the placeholders for "#month#" and "#year#" are not being replaced in your nubuilder report could be related to the width of the label.

If the width of the label is not sufficient to display the entire label on a single line, the label may be split into multiple lines. In this case, if the placeholder for "#year#" appears on a second line (i.e. after a line break), nubuilder may not be able to correctly identify the placeholder and replace it with the current year (it's possibly a bug)

To resolve this issue, you can try increasing the width of the label to ensure that it can be displayed on a single line
luca.ongaro
Posts: 64
Joined: Sun Jan 22, 2023 7:03 pm

Re: day, month, year hash in report label

Unread post by luca.ongaro »

Increasing the label's width solved the issue. But this looks like a (very low priority) bug, in my opinion.
Thank you again, I'm starting to love nuBuilder.
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: day, month, year hash in report label

Unread post by kev1n »

I have located the section of the code that is accountable for this behavior. I'll try to fix it when time permits
Post Reply