Welcome to the nuBuilder Forums!

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

Hash cookies in report header

Questions related to nuBuilder Forte Reports and the Report Builder.
Locked
tonyd
Posts: 68
Joined: Sun Mar 04, 2018 6:38 pm

Hash cookies in report header

Unread post by tonyd »

Is it a bug or a feature that the hash cookies for #day# #month# and #year# do not work in the report header?
TonyD
tonyd
Posts: 68
Joined: Sun Mar 04, 2018 6:38 pm

Re: Hash cookies in report header

Unread post by tonyd »

tonyd wrote:Is it a bug or a feature that the hash cookies for #day# #month# and #year# do not work in the report header?
Figured it out!

For those that follow: The entire "Title" field of the label object on the Report Designer must fit in the width allocated for that object on the report or any Hash Cookies may not work. For example, if I allocate only 50px to a label object containing the Title #month#/#day#/#year# in the "Title" field, it will render like this:

#mon
th#/#
day#
/#ye
ar#

NOT

6/
24
/1
8

Tip: Allocate more that enough width for any labels that use Hash Cookies within them. This leans more toward a feature than a bug. A fix might be to move the Hash Cookie substitution routine to a function called before nuPrintReport(), like nuReplaceLabelHashVariables().
TonyD
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Hash cookies in report header

Unread post by admin »

TonyD,

Thanks for letting people know.

Steven
Locked