Word custom layout question

  • Word custom layout question

    Posted by Elizabeth McQuiston on March 28, 2019 at 10:13 am
    • Liz McQuiston

      Member

      March 28, 2019 at 10:13 AM

      I’m working on creating some custom layouts in word and wondered if anyone knows how to change the date format?Ā  When I select certain date fields it puts the date and time in, for example…

      {ShptDate_SalesHeader} prints 3/28/2019 12:00:00 AM all I want is 3/28/2019

      ——————————
      Liz McQuiston
      Corporate Controller
      Superior Walls of America
      New Holland PA
      Running NAV 2016
      ——————————

    • Matt Traxinger

      Member

      March 28, 2019 at 11:02 AM

      I don’t think you can do this in the Word layout, you have to do it from the data set. You could do it in RDLC.

      If you go design that report (Development Environment –> Tools –> Object Designer –> Find the Report and click Design) that will bring up the data set. You can find the one that matches your Sales Header Shipment Date and change the “Data Source” column. Instead of “Shipment Date” it should be something like

      FORMAT(“Shipment Date”, 0, 0)

      That last 0 represents one of the formats found here.

      If you wanted it exactly like you have it would be something like

      FORMAT(“Shipment Date”, 0, ‘<Month,2>/<Day,2>/<Year4>’)

      Hope that helps.

      ——————————
      Matt Traxinger
      NAV Developer
      ArcherPoint Inc.
      San Antonio TX
      ——————————
      ——————————————-

    • Liz McQuiston

      Member

      March 28, 2019 at 11:16 AM

      Matt that worked perfectly, thanks so much!

      ——————————
      Liz McQuiston
      Corporate Controller
      Superior Walls of America
      New Holland PA
      Running NAV 2016
      ——————————
      ——————————————-

    • Susan Lewis

      Member

      March 28, 2019 at 11:46 AM

      Matt,Ā  I’m on 2018 with Events and Extensions.Ā 
      Can I follow the same steps to format my report dates?
      Thanks!

      ——————————
      Susan Lewis
      American Art Clay Co
      Indianapolis IN
      ——————————
      ——————————————-

    • Matt Traxinger

      Member

      March 28, 2019 at 12:16 PM

      It depends on whether you are using the AL language (new programming language for NAV / BC) to do those extensions.

      If you are using C/AL (the old language) then yes you can. It’s always advisable to create a copy of the report and make all of your changes there, though. That way you avoid making a base object change.

      ——————————
      Matt Traxinger
      NAV Developer
      ArcherPoint Inc.
      San Antonio TX
      ——————————
      ——————————————-

    • Susan Lewis

      Member

      March 28, 2019 at 1:43 PM

      Thank you Matt!

      That’s what I thought but wanted to verify.  We are using the AL language. 

       

      Susan Lewis

       

      ——Original Message——

      It depends on whether you are using the AL language (new programming language for NAV / BC) to do those extensions.

      If you are using C/AL (the old language) then yes you can. It’s always advisable to create a copy of the report and make all of your changes there, though. That way you avoid making a base object change.

      ——————————
      Matt Traxinger
      NAV Developer
      ArcherPoint Inc.
      San Antonio TX
      ——————————

    Elizabeth McQuiston replied 7 years, 5 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Word custom layout question’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!