Add auto date to report
Hello! I'm a faily new user of this sofware and finally digging into the report designer. I've been looking though various forum examples and documentation, though I've not been very sucesfull with the script/code behind stuff for it. For starters I'm simply trying to have a date automatically added to a report when launched from the HTML viewer. I figured I'd do it all in the report file by adding a label, call some date stuff, convert to string, and set the label text property to my date though I'm just not getting it. Any examples and/or refernces to documentation are appreciated. I'm on the latest 4.4.3 and html 2.5.2. Thanks.
0
-
Here's the code I use to add the current date to my reports.
=System.DateTime.Now.ToString("M/dd/yyyy")"
I use a Textbox and set the Datafield to that value. I also set the Output Format to M/d/yyyy.0 -
Thank you! That did the trick. I tried that route but failed to use the equal sign (=) in front of mine which just resulted in using the labels text property. 0 -
Thank you, I had this same question and this worked perfect! 0 -
Thanks - same question as well! :) 0 -
You could also usethe "Transform Workflow URI:" in Essentials admin; and point to a Workflow that changes any _value on the fly.
(date/time, username , etc..)
0 -
Frederic - I'm looking into using the Transform Workflow option as we have a half dozen fields to set in most of our templates, and we want to gather input from the user for some of them. I can write the workflow no problem, but I'm not positive how to associate the data obtained in the workflow with the data fields in the report file. Is it as simple as naming the Output arguments of the workflow the same as the data field names in the report file? I'm about to test this, but would appreciate a confirmation or a link to a demonstration of the Transform Workflow methodology as I haven't found an example as of yet. Thanks! 0
Please sign in to leave a comment.
Comments
6 comments