Dynamics NAV / Business Central Developer Digest - Vol 358
ArcherPoint's Developer Digest is dedicated to Microsoft Dynamics 365 Business Central development and Dynamics NAV development. In this edition, we discuss storing server temp files, changing decimal properties on a page extension in Business Central, and more. .
The Dynamics NAV and Business Central community, including the ArcherPoint technical staff, is made up of developers, project managers, and consultants who are constantly communicating, with the common goal of sharing helpful information with one another to help customers be more successful.
As they run into issues and questions, find the answers, and make new discoveries, they post them on blogs, forums, social media...so everyone can benefit. We in Marketing watch these interactions and never cease to be amazed by the creativity, dedication, and brainpower we’re so fortunate to have in this community—so we thought, wouldn’t it be great to share this great information with everyone who might not have the time to check out the multitude of resources out there? So, the ArcherPoint Microsoft Dynamics NAV Developer Digest was born. Each week, we present a collection of thoughts and findings from NAV/BC experts and devotees around the world. We hope these insights will benefit you, too.
Where to Store a Server Temp File
Denise asks: “CREATTEMPFILE - Does anyone know if the path used to create the server temp file can be changed? I don't have permission to the path it tries to use, and the client would like me to put the file on the file server instead. The path it defaults to was not found.”
Tom responds: “If you can't access the path for CREATETEMPFILE, then you must explicitly give it a path to which you have access. You can just delete the file after you're done with it, so it's not too bad.“
Kyle adds: “Use a UNC that points to a fileserver share, and make sure the service account the NST is using has full access to that share. You can store that path in a setup table: \\fileserver\share\tempfile.pdf “
Changing Decimal Properties on a Page Extension in Business Central
Kyle queries: “I have an extensible Page that is part of an ISV solution. I have defined a Page Extension on top of that. However, I cannot figure out how to modify an Amount field to only have two decimal places. The properties Decimals and AutoFormatExpression cannot be used on a Page Extension (which makes no sense). How do I do this?”
Tom responds: “Have you tried hiding the base field and creating a custom field for Amount in the page extension? That might work.”
Kyle replies: “Sorry ... forgot to mention this page is being used for ODATA4, so I can't swap fields.”
Tom answers: “I have reached the extent of my relevant advice. Surrender yourself to despair and suffering.”
Matt T chimes in: “If you can't swap the field and can't build your own page, then you're out of luck. There's a reason you can't change the values. What if you say 2 and someone else says 3? Which extension wins? “
How to Repeat Header Lines on Every Page in Word 2019
In his post, Word Layout Reports: repeat header lines on every page with Word 2019, Roberto Stefanetti informs about the property that allows you to determine if a row should be repeated for each page (Header Lines) and how to use it.
Learn more about development in Microsoft Dynamics NAV and Dynamics 365 Business Central by selecting the "Developer" category on our blog page.
- Login Error: Communication protocol mismatch between client and server
- Creating a Date Table in Power BI
- How to Make Measures Total Correctly in Power BI Tables
- The Microsoft Technology Stack – What It Is and Why You Should Care
- The Top Eight KPIs Retailers Should Be Tracking (with Formulas) for Your Retail KPI Dashboard