Page 1 of 1

day, month, year hash in report label

Posted: Mon Apr 24, 2023 11:08 am
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

Re: day, month, year hash in report label

Posted: Mon Apr 24, 2023 11:41 am
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

Re: day, month, year hash in report label

Posted: Mon Apr 24, 2023 11:53 am
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.

Re: day, month, year hash in report label

Posted: Mon Apr 24, 2023 11:58 am
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