Suneido

Integrated Application Platform

  • Home
  • Learning
    • Suneido Manual
    • Beginners
      • Inside Suneido
      • The Suneido Programming Language
      • The Suneido Database
      • Installing Suneido
      • Building Suneido
      • IDE Go To Tour
      • Upgrading To A New Release
    • Advanced
      • Canvas Control
      • DrawControl Part 1
      • DrawControl Part 2
      • DrawControl Part 3
      • SAX Like XML Processing
      • A Plug-In Architecture
      • A Simple Wizard Framework
      • An HTML Include Facility
      • An RSS 2 Feed Creator
      • MIME Generation
      • A New Add-on Facility
      • Workspace Improvement Hack
    • Mockito for Suneido
    • The Suneido Task Scheduler
    • Contributing To Suneido
    • Contributor Assignment of Copyright
    • Language Translation
    • Future Directions
    • Interview With Andrew Mckinlay
  • Forum
    • Announcements
    • Internals & Enhancements
    • Cookbook
    • General
  • FAQ
  • Screenshots
  • Downloads
  • Links

From a newbie (Current date)

Integrated Application Platform › Forums › General › From a newbie (Current date)

  • This topic has 2 replies, 2 voices, and was last updated 2 years, 11 months ago by joshob.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 25, 2018 at 2:15 pm #1384
    joshob
    Participant

    Hi,

    How to display the current date on a report.Displaying it anywhere on the report. The command works with the workspace but doesn’t work with a report. Something I don’t understand.I’m just learning how to do things with Suneido and sometimes it’s not easy to find the answer. Thanks a lot to help me again and again. It is very appreciated.

    Regards

    February 25, 2018 at 2:44 pm #1385
    amckinlay
    Keymaster

    Here is the simplest example:

    Params(['ShortDate', Date()])

    Reports work in terms of “formats”. In this case I used ShortDateFormat. Often the data is coming from the database, but many formats allow you to pass it explicitly as well.

    You probably want more stuff on the report, so you can use Vert and Horz to compose formats. For example:

    Params(['Vert', 
        ['ShortDate', Date()], 
        ['LongDate', Date()]])

    Or if you are using a QueryFormat, you can use do things like:

    Params(QueryFormat {
    	Query: 'tables'
    	Before() { return ['Text', Date().LongDate()] }
    	})

    (In this case I had trouble getting LongDateFormat to work, so I just used Text and formatted the date myself.)

    Hopefully that will give you some ideas.

    February 25, 2018 at 6:39 pm #1386
    joshob
    Participant

    Thanks very much.

    That is just what I need.

    Regards

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Search Forums

Log In
Welcome to the new Suneido Web Site and Forum.
Register
Lost Password
users of the previous PHPBB Forum should be able to log in with their previous username and password.

Recent Topics

  • how to start jsuneido ?
  • Problem Starting Suneido…
  • Dialog not showing buttons
  • New link for Suneidojo
  • Excel

Contact Us | Legal Statement | Privacy Statement | SiteMap

(c) Suneido Software Corporation - Open Source Integrated Database and Programming Language