Thanks Simpsoid, that worked.. Thanks for all your help.
↧
Forum Post: RE: Moving cursor to next record after scanning - NAV 2009 R2 Classic
↧
Forum Post: RE: Profit Center
You could setup your warehouse and restaurants as Business units and track them as profit centers.
↧
↧
Forum Post: RE: Profit Center
thanks Sbhatbng , is there any other option ?
↧
Forum Post: RE: Profit Center
This feature used to exist in Navision in Advanced distribution in some very old versions, but has not been available for over a decade. You would need to develop a custom solution to handle this. The core issue is that there is no connection between a sales/purchase order and a transfer order. You could create a manual process to generate G/L basesd invoices generated from posted transfer orders, but I would imagine that for what you want this will not be enough. This is quite a common requirement in the food and retail industries, so if you search you may find an add on that does this.
↧
Forum Post: RE: stock valuation
Why would you do this? You paid for a full ERP system with Inventory management included and now instead of using what you paid for you are going to pay your partner to develop this for you from scratch? This makes no sense what so ever.
↧
↧
Forum Post: RE: Profit Center
thanks David for your response , is there any other way to do the profit center as dimension .
↧
Forum Post: RE: Profit Center
Just create a dimension called Profit center and create a new dimension for each warehouse. Not sure actually what you are asking. Your partner should have gone through all this with you when they were setting up your system.
↧
Forum Post: RE: Profit Center
thanks alot David for your response
↧
Blog Post: Quickstart your D365/NAV Connect API usage: Use Azure Container Instances to go serverless and let ALRunner generate your client
You might have seen one of the presentations where Microsoft showed their idea of future NAV-based applications: It can be either a Connect App (just connects through a REST WebService API to D365/NAV), an Add-On App (adds functionality to D365/NAV through an extension) or an Embed App (deeply changes how D365/NAV works by embedding code, preferably also through an extension). While for the latter two the idea is pretty clear and to some degree matches what most partners have been doing for the last couple of years, I don’t know of too many current applications that would classify as Connect Apps. As Axians Infoma we do have some custom written mobile apps but they mainly complement our ISV solution 1 . Knowing how difficult it has been in the past to develop against NAV WebServices, I was kind of sceptical about Connect Apps and have to admit that I didn’t really get the latest improvements in that area for D365 / Tenerife / 2018 at Directions or TechDays, but then had the chance to watch an absolutely great session about the new „Connect API“ by Peter Borring Sorensen and that really got me intrigued (go to aka.ms/getstartedwithapis to get a first introduction). He showed new features like bound actions and how easy it is in general to work with the new APIs. That got me thinking how difficult it would be to have a „serverless“ Connect API endpoint against which one could develop a Connect App. The obvious answer is D365 but getting a whole tenant just for that seems a bit oversized to me. And I personally don’t see the „Mac user in a Starbucks 2 “ sometimes cited as new additional target developer to run his own Windows Server in Azure, even with how easy that has gotten. I had already gotten into Azure Container Instances for NAV on Docker (see here ) and knew that this environment would allow a developer to run his own NAV Server instance without having to worry about the base infrastructure like Windows Servers. Just one click on „deploy“ and everything works 3 . However you need two parts to make this really easy: You need to make a config change and execute an initalization action to get the Connect API to work. I’ve solved this with the help of two new features in the NAV Docker images and I’ll explain how. You need some way to connect to the API and work with it. While Peter Borring Sorrensen showed how you can very well use Postman for that purpose, I personally prefer the REST Client add-on for VS Code as it is lighter, faster and as it is file-based integrates very well in my other projects. To make it even easier, I’ve created an additional function in my ALRunner add-on for VS Code 4 which allows you to get started very quickly. How to get it up and running Open VS Code, install my extension and hit F1. Enter „alr az“ and execute the commmand that comes up. It first asks you to select a folder where the results will be stored. After that you need to authorize against your Azure account, select some data and then wait for approx. 15-20 minutes as it needs to download and extract the rather big NAV image and then initialize the API. When it is done, you should get a message in VS Code which tells you that and also a sample.http file which you can then use to call the API. You should see small „Send request“ links above each block in that file. Just click on them and a response window will appear on the right. Have fun with that! If you just want to use it, this is the end of the topic as in the following part I’ll only explain some technial details how this is built. Just let me recap why I think this matters: With only a couple of clicks a developer completely new to the NAV world and with almost no special knowhow is able to create a NAV Server instance „somewhere“ and develop a Connect App against the fantastic new API. There is almost no barrier for new developers and companies to start working on their D365-connected Apps with no technical knowhow about NAV at all and working just from VS Code, running on whatever platform and machine they happen to have 5 . Compare that to „install NAV, get a license, understand C/AL and C/SIDE and so on…“! Obviously this doesn’t fit for all use cases, but it definitely is a very nice way to develop for NAV / D365. How the „API-enabled“ Azure Container Instance works Now for some more detail on how this works: Because of the necessary configuration changes and intialization this wasn’t 100% possible to automate asyly until recently. Therefore I’ve made two suggestions for additions to the NAV Docker images to Microsoft (see PR #121 an PR #125 if you want the details) and they were accepted after some improvements to my original code 6 . With the latest updates, they also appeared in the official images on docker hub. What happens if you run the command in VS Code? An ARM template defines a Docker container on Azure with a so called env param to enable the API Services ( customNavSettings="ApiServicesEnabled=true" ) and also tells it to download my script and extract it to the „my“ folder which means it will be called during container startup ( folders="c:\run\my=https://www.axians-infoma.de/wp-content/uploads/2017/12/InitializeAPI.zip" ). The script just runs the Codeunit which initializes the API Services but before it can do that, it needs to create and authorize the user running at that point in your container to do that. This also generates an html file with the username and password in plain text for easy access in case you forget them or let the script generate them for you, so you should really only use this for testing purposes! The code looks like this and the base idea will also work in your traditional NAV install outside of Docker: . C:\Run\Prompt.ps1 New-NAVServerUser -WindowsAccount (whoami) NAV New-NAVServerUserPermissionSet -WindowsAccount (whoami) -PermissionSetId SUPER NAV Write-Host "initialize API Services" Invoke-NAVCodeunit -CodeunitId 5465 -ServerInstance NAV -CompanyName (Get-NAVCompany NAV).CompanyName $html = " Username:$username Password:"+[System.Runtime.InteropServices.Marshal]::PtrToStringAuto([System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($SecurePassword))+' ' $html | Set-Content C:\inetpub\wwwroot\http\accessdata.htmll I’ll try to get this added to the official Azure Quickstart repo as well but as there are a lot of pull request this might or might not work and will definitely take time, so in the meantime if you are interested, you can grab the ARM template from my repo . The post Quickstart your D365/NAV Connect API usage: Use Azure Container Instances to go serverless and let ALRunner generate your client appeared first on Axians Infoma .
↧
↧
Forum Post: RE: report designer
Hi Karim, Did you install it including the Microsoft Rdlc Report Designer for Visual Studio ?
↧
Forum Post: RE: report designer
You need below one of the versions of Visual studio with respective .NET framework to work. I also had the same issue and I installed Visual studio 2017 with .net framework 4.7 and it worked. Codename Visual Studio 2017 Dev15 Supported .NET Framework versions 3.5 – 4.7 Visual Studio 2015 Dev14 Supported .NET Framework versions 2.0 – 4.6
↧
Forum Post: RE: report designer
Hi Erik, Yes i did,i installed VS 2017 and then Rdlc separately. thanks.
↧
Blog Post: NAV 2018 and related environment best videos
NAV 2018 and related environment best videos Addendum to my course “NAV 2018 What’s New & New Technology – Fast Tracks” https://robertostefanettinavblog.com/2017/11/28/nav-2018-new-technologies-technical-workshop-milano-14-dicembre-2017/ Hi Guys, Since everyone now uses video as documentation to learn new features of a product (or an entire connected environment), I have selected a series of videos related to the topics below . These topics were mentioned in my video presentation of NAV 2018. These videos that I have selected, are useful as a pre-requisite to make the best use of NAV 2018 and its new development environment . Obviously, others will be published … I hope many also from Microsoft! To date I have looked at these, I consider them an excellent addendum to the presentation..The concept behind the social is: if there is already a good published document, let’s use it and spread it . A COLLECTION OF BEST VIDEOS ABOUT THESE TOPICS: NAV 2018 MY VIDEOS NAV 2018 What’s New & New Technology – Fast Tracks https://www.youtube.com/watch?v=jhd1vPyS1Vk NAV 2018 What’s New https://www.slideshare.net/RobertoStefanetti/nav-2018-whats-new OTHERS What’s new in Microsoft Dynamics NAV 2018 – A Community Perspective https://www.youtube.com/watch?v=wK4-hRpoBlQ NAV 2018 What’s New & New Technology – Fast Tracks https://www.youtube.com/watch?v=jhd1vPyS1Vk What’s new in Microsoft Dynamics NAV 2018 Tenerife https://www.youtube.com/watch?v=Iy3G1p6ASbw NAV 2018 What’s New Video ON DLP (Dynamics Learning Portal) *** Learning Portal Access is required Microsoft AL & Vs Code Install Visual Studio Code With Al Compiler https://www.youtube.com/watch?v=aeE-C3z_qkI Dynamics NAV – Getting Started With Visual Studio Code https://www.youtube.com/watch?v=d2GoSQUCuxE AL in Visual Studio VS Code for Those Who are Still Afraid (NAV) https://www.youtube.com/watch?v=LC10s7lJIkg Inside AL for Visual Studio Code | Where are we https://www.youtube.com/watch?v=xjceqM6V7BM Visual Studio Code – Getting Started with Git(Hub) https://www.youtube.com/watch?v=NTY5VELbCWI&list=PLhZ3P-LY7CqmxLpyVIPHFYqdqZwuhWQCW How to create new AL project in VS Code and connect it to NAV https://www.youtube.com/watch?v=FGZzrMpMSL8 Visual Studio Code Building Publishing and Debugging AL Projects https://www.youtube.com/watch?v=hpZcdqx0udA How to create new AL project in VS Code and connect it to NAV https://www.youtube.com/watch?v=FGZzrMpMSL8 Dynamics NAV – C/AL vs AL – Spot the Differences https://www.youtube.com/watch?v=EqCxrxR9f3Y Invoking Azure Functions from AL in Visual Studio Code https://www.youtube.com/watch?v=Wp13-nfVoEg NAV TechDays 2017: Rock ‘n Roll with VSCode https://www.youtube.com/watch?v=ngEkLrmQZzA POWERSHELL & MULTITENANTS PowerShell Fundamentals for Beginners https://www.youtube.com/watch?v=SVbxinylHgE How Do I Create PowerShell scripts for Microsoft Dynamics NAV 2013 R2 https://www.youtube.com/watch?v=hycuQjVgf1o PowerShell 101 by Waldo for Microsoft Dynamics NAV https://www.youtube.com/watch?v=c74Lb7BMyn0 Using PowerShell with Microsoft Dynamics NAV Part 1 https://www.youtube.com/watch?v=QlN6ProdaM4 NAVTechDays2013 Multi Tenancy and how it changes the NAV Developer Experience Microsoft Dynamics Nav https://www.youtube.com/watch?v=vqxHsEIoH6o Migrate from Multiple Companies to a Multi tenant Architecture in Microsoft Dynamics NAV 2013 R2 https://www.youtube.com/watch?v=Qrww95Ul7gg DOCKER Docker 101: Introduction to Docker https://www.youtube.com/watch?v=V9IJj4MzZBc Docker Cloud Overview https://www.youtube.com/watch?v=-Mv6YXrmAzU Docker and Dynamics NAV – Practical Use Cases https://www.youtube.com/watch?v=8g82bh5sVTU NAV TechDays 2017: Easier and DevOps-friendly NAV environments using Docker / Windows Containers https://www.youtube.com/watch?v=9c5Yl51yXb8 Dynamics NAV 2018 Docker Install https://www.youtube.com/watch?v=2vXFurYgFQE GIT & GIT HUB Git 101 – The Basics https://www.youtube.com/watch?v=tDlHCr70WUs Visual Studio Code – Getting Started with Git(Hub) https://www.youtube.com/watch?v=NTY5VELbCWI Using Git and GitHub https://www.youtube.com/watch?v=8olbR_Xtg2Q MICROSOFT COGNITIVE SERVICES & AI Get started with Microsoft Cognitive Services https://www.youtube.com/watch?v=f4XBxNuEifQ Deep Dive into Azure Cognitive Services https://www.youtube.com/watch?v=9Nhg469RVc4 Cognitive Services and AI Overview https://www.youtube.com/watch?v=UNzZKqDj_mg APIs NAV TechDays 2017: Creating great API’s https://www.youtube.com/watch?v=d9jMAnYB6qk How Do I: use the time series API in Microsoft Dynamics NAV 2017? https://www.youtube.com/watch?v=8TgsPFz0EAw Microsoft Azure API Management in under 5 minutes https://www.youtube.com/watch?v=pMybbdNEeDU HAVE A GOOD VISION !
↧
↧
Blog Post: Remove all custom apps on Docker container (with PowerShell)
Today, I was prepping for my 2-day Masterclass about developing Extensions in Visual Studio Code. And finally, I made some time to make a first version of a function that I have been wanting for quite some time: a function to remove all the custom apps from a docker image. What is the challenge? Well, if you’re used to Extensions V1 – then you’ll notice things have changed on many levels :-). Let’s just say that it’s darn difficult to loose your data. And in my case here – I want to do exactly that. I want to completely clean my custom apps from the Docker container, including data . By default, when you uninstall or unpublish the app, the data will not be removed. It will simply stay there in the companion tables or dedicated tables for the App – waiting for you to reinstall the app, or upgrade the app. Why would I want to remove the data? Well, just imagine development scenarios, where you are working on multiple apps (dependent or not) on one system, and you want to start from scratch again. Or – in my case – when preparing for demos, and you want to – again – start from a clean sheet. Or … OK, show me how! Well, as said, finally I made some time to put it into a function. And for your convenience, I already put it on my github, you can find it here . And you see it’s simple. It assumes you’re already using the navcontainerhelper – which you should use when using NAV on Docker (in my opinion). More info on Freddy’s blog . It is going to search for all apps which are not Microsoft’s apps, loop them, and uninstall, clean and unpublish all these apps one-by-one.. . You can simply call this function like: Clean-CustomNAVAppsOnDocker -ContainerName navserver Are there other ways? Well, you could obviously just ignore this entire blogpost, and simple replace the docker container by re-installing it. But in this case, you might lose data that you might depend on, or settings, or accessibility, or … . If Docker still looks a little bit like this to you: You might just want to reconsider re-installing the container, and just go for the function I talked about ;-).
↧
Forum Post: RE: Add filter to Page
Hi Marek, First welcome to DUG! I'm not really sure exactly what it is that you want to archive and what the relation between the customer and the "standing order" is. Nor where the "Customer Group" comes in? And which flow fields do you talk about? If there are no direct relation, if the relation is indirect like with the customer group, then you are right that it could be archived via a query object and a "buffer table". Although this is not too hard to do, then if you want the new page (based on the buffer table) to mimic the functionality of the standard customer list, then it would take quite some work to get done. I may be able to help you more, but not without knowing more about the requirements.
↧
Forum Post: RE: Assist Edit Property
Did you also write the onAssist trigger code? Not enough to enable the property.
↧
Forum Post: RE: Assist Edit Property
Yes i have written the code but it is not working IF AssistEdit(xRec) THEN CurrPage.UPDATE;
↧
↧
Forum Post: RE: Assist Edit Property
Does it execute the code? Have you tried running it with the debugger?
↧
Forum Post: RE: Assist Edit Property
No i have not tried with debugger, my field is a boolean, I think AssistEdit only apply for text box ???
↧
Blog Post: Developing extensions blindfolded in Dynamics NAV
Developing extensions in Dynamics NAV, it is possible to add two extensions that are adding the same field numbers to a solution. No warnings are given, and it is not possible to get an overview of which object numbers or field numbers the other extensions are adding. Let’s try an example: Now I publish and install the extension together with a page extension: In the Extension Management, it looks like this: Nothing new about that. Now, let’s try to install another extension with the same field number used: Now I publish and install the extension together with another page extension: It is possible to publish the extension and even install it in the tenant but starting the Windows client, I get the following error: It is not possible to start the windows client again until I have uninstalled the extension through PowerShell: In all the workshops I have conducted until now, I have been given the question: ”How do I see which object numbers and field numbers that are already used in the solution?” I haven’t found any standard solution to this, so I made one myself: Install two objects: Table 50149 Extension Detail Information Page 50149 Extension Detail Information (And No, it is not possible to create as extension due to the tables I access.) Run the page and it will generate detailed information on all apps that are published (installed or not): Now you can filter for the desired table: The object can be downloaded here: http://ba-consult.dk/downloads/ExtensionDetails.zip Have fun [H]
↧