Quantcast
Channel: Dynamics 365 Business Central/NAV User Group
Viewing all 11285 articles
Browse latest View live

Forum Post: RE: INVOICE DOCUMENT DOESN'T APPEAR WHEN I HAVE POSTED THE WAREHOUSE RECEIPT

$
0
0
If it does not show up, most likely it is posted with other currency than on the invoice/vendor. Change currency code on the invoice and try again.

Forum Post: RE: How to copy a local docker container/image to another computer (Business Central)

$
0
0
Hey I figured out myself :) Tools: PowerShell, Docker, NavContainerHelper, Git, VsCode Conditions: Installation of Docker Nav Image/Installation? NavContainerHelper Code saved in a Git repository Helpful: Show Images: docker images Show Container: docker ps -a 1. Create image of a container docker commit CONTAINER [REPOSITORY[:TAG]] Explanation: CONTAINER is the container ID [REPOSITORY[tag]] is the name of the new image Example: $ docker commit c3f279d17e0a synalis/neuesimage:version1 Read More: https://docs.docker.com/engine/reference/commandline/commit/ 2. Save image Example: docker save -o IMAGE [IMAGE...] Explanation: IMAGE is the name of the .tar file [IMAGE...] is the name of the image Example: $ docker save -o fedora-all.tar fedora Read More: https://docs.docker.com/engine/reference/commandline/save/ 3. Load Image Example: docker load --input fedora.tar Read More: https://docs.docker.com/engine/reference/commandline/load/ 4. Create new container PowerShell Script: $password = ConvertTo-SecureString -String "TypeYourPasswordHere" -AsPlainText -Force #put your wished password here $credential = New-Object PSCredential 'TypeYourUsernameHere', $password #put your wished username here New-BCContainer -accept_eula -accept_outdated -updatehosts ` -imageName 'fedora' ` #put your image name here -containerName 'TypeYourContainerNamehere' ` #put your container name here -auth UserPassword -Credential $credential ` -licenseFile 'C:\Users\YourDirectory\license.flf' #put your directory of the license here 5. Clone/pull your git 6. Open project in VsCode Download symbols (Press F1, Type in AL: Download Symbols) Create package (Press F1, Type in AL: Package) Publish App (Press ctrl + F5)

Forum Post: Add data from a field in card page to a field in list part page

$
0
0
I know there exists already a similar post, but the related post with the answer was deleted 4 years ago. I am sorry to ask again: How can I add data from a field in card page to a field in list part page? I am working on an Spotify like example to train my skills right now. There is a card to create an album and add some tracks to the album. You can also create new tracks in this list part. To avoid typing all the album information for every track i would like to make an autofill of the fields. I think i have to use the OnValidate trigger of the track table but i don´t know how to get the records from the actual card. Here is a screenshot of the album card.

Forum Post: RE: Add data from a field in card page to a field in list part page

$
0
0
I found the solution and it is astonishingly easy.... ...just put on the settings of your ListPart: PopulateAllFields = true; For example: page 50011 "SPO TrackListPart" { PageType = ListPart; SourceTable = "SPO Track"; SourceTableView = where("Track Type" = const("Album Track")); PopulateAllFields = true; Caption = 'SPO Tracklist Albums'; ......

Forum Post: Icons / symbols missing on the role center

$
0
0
I added some icons/symbols to my Rolecenter Cues and actions but they are not shown. Example for actions: actions     {         area(Embedding)         {             action("New Artist")             {                 Caption = 'New Artist';                 RunObject = page "SPO Artist Card";                 RunPageMode = Create;                 ApplicationArea = all;                 Image = Add;             }         } Example for cue groups cuegroup(RoleCenterContents)             {                 Caption = 'Contents';                 field(Artists; Artists)                 {                     ApplicationArea = All;                     Image = Person;                     DrillDownPageId = "SPO Artist List";                 }             }

Forum Post: how to restrict sales order from being view/edit when it is open with some other user

$
0
0
Hi everyone, We are having an issue in business central. when a sales order is open with one user and another user comes somewhere and opens that as well and do some operation or post the sales order. The specific record locks for almost 8+ hours. The error displays is as below. The operation could not complete because a record in the Sales Header table was locked by another user. Please retry the activity. So my question is when a record is open with someone is it possible to restrict other users to view or edit, unless the other user closes it. Regards.

Forum Post: RE: Load SourceTable on page NAV 2013

Blog Post: Dynamics 365 Business Central and the "mistery" of Library Apps

$
0
0
More than an year ago I wrote this article for Simplanova website mentioning some “architectural choices” when moving a C/AL solution to the extension model. One of the ideas mentioned here was to create an “hidden layer” that can contain common business logic and objects and then create N separated extensions on top of this layer. This permits you to “share” common logic between extensions and to reduce dependencies: You can see what I called here as “Base Layer” as something like an extension that contains a set of libraries for your main extension. This is a preface for introducting the “hidden” concept of Library Apps . When you create an extension and you decide to go through the AppSource validation (publishing of your solution on the Microsoft’s marketplace) in your offer’s configuration, under the Technical configuration section, you need to upload your extension package file (.app file) and you can also upload other two things: Dependency package file : .app or .zip file for an extension that must be installed together with this extension and is published on the AppSource . Library extension package file : .app file for an extension that must be installed together with this extension, but must not be published to the AppSourc e. This is what is called a “ Library app “: What is a Library App ? This is a normal extension (.app file) that your real extension depends on (dependencies set on app.json file) and that you can submit together with your real extension. This library extension will not be visible on AppSource. When a customer downloads your extension from the AppSource marketplace, this library extension is automatically installed together with your published extension. As you can see in the above image, the AppSource submission portal permits you to upload a single .app file, but if you have more that one Library app where your extension depends on, you can zip all your library apps into a single .zip package and upload this .zip package to the portal directly. Remember that all .app files must be digitally signed. I think that Library extension packages are really useful on lots of scenarios (they helps you to avoid lots of dependencies, they permits you to create libraries of business logic that you can reuse on different apps, they permits you to easily separate concerns etc.) and I don’t know why there’s no official documentation about this possibility, at least at the moment (this is why I’ve used the word “mistery” in the title of this post. Now you know that you’ve also this possibility when you create your extensions for the marketplace…

Blog Post: Why and how to rename all AL-files of your app with the “CRS AL Language Extension”

$
0
0
First of all, this is my first post of this new year, so I’d like to take this opportunity to wish you all the best and happiness for 2020! Last year, I did a post on my new hobby “3D Printing” . Well, now we’re a year later, I’m still printing almost full time 24/7, so let me wish you all the best with some 3D Printed goodies I did for Xmas ;-). So now – “let’s get started” with .. Why would I rename all my AL-files? Well – because of Microsoft and their new (upcoming) code analysis rule about file name conventions. You might already have complied with their previous conventions, and … they will change. Even better: they actually already changed .. Just read here: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/compliance/apptest-bestpracticesforalcode In the “old” days, Microsoft wanted you to name the files including the object numbers. But not anymore. This doesn’t really have to be a problem .. because today, we can freely choose however we want to name our files. But that will change (a bit) … If you use the insider version of the AL Language Extension for VSCode, you’ll see that we will get new code analysis rules that check the file name. This is an example that I had with my waldo.restapp I recently blogged about : It doesn’t matter what my previous naming convention was – the result is that all of a sudden, te compiler is going to have an opinion about it and will identify it as a “problem”. It even calls it “incorrect”, not just “not following the guidelines” or whatever.. ;-). Why would I care? Well, if you don’t care .. then don’t! Just put rule AA0215 in your custom coderules and move on with your life ;-). But I care. I want to comply with as many coderules .. as long as they don’t “hurt” me or my company. That’s why we have a simple step in the build pipelines of our company: if any coderule would fail with an error or warning – the code is not accepted by the build. And admittedly – this is a good naming convention, anyway. So .. let’s comply! Waldo’s CRS AL Language Extension As you might know – I created a VSCode Extension that makes it possible to easily handle file naming conventions .  Because of these new guidelines (and coderules), I recently added a new option “ObjectTypeShortPascalCase” so that now it’s also possible to handle it the correct way with settings in this extension.  BUT Don’t rename your files by just invoking the command “Rename All Files” – DON’T: Because: You might change all your code history You might have wrong settings You might not be able to rollback and rethink .. So, let me try to give you the safest way for you to rename all your files I’m going to assume you are source-controlling your code here.  If not .. I don’t even want to talk to you ;-).  Just kidding – if not, just quickly initialize a git repo from the current state of your code.  You might want to revert all changes you did .. and this gives you a way to do that.  Honestly, this particular rename I did for this blog, I did 3 times .. just saying ;-). 1 – Create a new branch Before you do any coding, you should branch out. Same with this: just create your own snapshot of changes to work in. You can’t be too careful .. You created it? Well, now you’re safe. Any kind of mistake within the next steps – just remove the branch, create a new one, and start fumbling again ;-). 2 – Change the setup I think this is a good setup for the new filename conventions: "CRS.FileNamePattern": "..al", "CRS.FileNamePatternExtensions": "..al", "CRS.FileNamePatternPageCustomizations": "..al", "CRS.OnSaveAlFileAction": "Rename", "CRS.RenameWithGit": true, "CRS.ObjectNameSuffix": " WLD", Notice that there is no property “RemoveSuffixFromFilename” or “RemovePrefixFromFilename”.  These properties invoke an extra procedure after renaming, to make sure you have no prefix in the filename anymore.  Thing is – it would make the name not comply again with the naming convention of Microsoft’s coderule, unfortunately. 3 – No Multiroot Also notice the “renamewithgit” setting.  This is important, but a difficult one.  If you don’t set this to “true”, any rename would result in a “delete” and “create” of your file – meaning you would lose all the history of your files. In my world of DevOps and Source Control, this is unacceptable.  Really unacceptable .  I want my history kept at all times!  So, this setting is going to make sure you rename with git (“git mv”). Now – in all honesty – I have spent too much time already to make this setting as stable as at all possible. And it still isn’t. Sometimes, it just doesn’t do what it’s supposed to do. Known issues are still: new files in combination with a multiroot workspace, it acts crazy (just deletes the content) With the “rename all”, it seems to be too fast sometimes, which fails the rename, which loses the history, which makes me angry ;-). For the first, I have built in some fail saves, which basically will NOT rename with git of you have a multiroot workspace (not my preferred option, but for now, I have to give up on this – spent too much time already :'( ) .. And the second – that’s why I write this blogpost ;-). How can you still rename all your files successfully, even when it would fail on your first attempt. But – to solve the first (you DO want to “renamewithgit”), just avoid using multiroot workspaces . If you have multiple workspaces open, just close VSCode, and open that workspace of that one app you would like to rename all files from. 4 – Commit these settings! You might want to revert to this very version of this set of files when any of the next steps would fail for some reason or another.  So please, commit now! 5 – Rename – All Files Now is the time to start renaming all your files. Remember you set the “renamewithgit”, AND you’re not working multiroot, so it is going to try to rename all with git. Indeed: try ! Because more than likely, “some” will succeed, and “some” will fail. If you have failed ones, it will show the “crs-al-language” output like this: It seems that one process is blocking another to execute decently .. and because of that, it is actually going to rename the classic way, which would mean, it doesn’t preserve your git history. When the complete rename is done, you should also have a look at the Source Control pane. If you have fail-messages, you should get some files in “Staged Changes” and some in “Changes” Well: Staged are fine , and the ones in “Changes”, you’ll need to retry. Do this by “Discard All Changes” And “Discard All x Files” Now, you basically only renamed the ones that were able to rename, and you staged them. The ones that failed are restored to their original state, which still has all history, but are not renamed. So .. 6 – Repeat … it’s obvious .. this is where you repeat.  So, rename again, and discard the changes if you have failed ones.  And keep doing that, until all files ended up in your staged area (the “R” in the back indicates that you renamed the file): 7 – Commit, PullRequest … And this means: you’re done. Time to commit and pullrequest your changes to your master/release/dev.. . Conclusion I’m not proud of this workaround – I’d like to see it “just” work. But when it comes to “renaming or moving files with git”, there seems something odd. I mean, think about it – a simple rename in the VSCode Explorer window also ends up with a “Delete/Untracked”, meaning – you lose history. A drag&drop to a new folder as well. So – just my conclusion – if the VSCode wizards are not able to solve this simple “rename” issue – why would I be able to do it better than I already did ;-). If this is useful to you! It was for me

Forum Post: how to add fieldgroup in table Item Vendor?

$
0
0
Hi all i am using cloud bc I want to add fieldgroup in Table Item Vendor how do i do that? i've created new field, named as "Item Description" so i hope i can see this field if user lookup to this table failed

Forum Post: Translation of global variable datatype=Option

$
0
0
Hi, I would like to set multiple language of a global variable type=option. Is this possible? Technical data: Object type=Page Global variable name=S_Type Global variable datatype=option Properties of S_Type: OptionString=A,B,C,D I would like to translate these, so that user can choose one from the page where NAV client can be opened in different language. I know how to translate the text constants, but I have not ever seen that Global Variable would be translated. Thanks for any assistance.

Forum Post: RE: how to add fieldgroup in table Item Vendor?

$
0
0
Hi Stan, What does it say in the errors/problems?

Forum Post: RE: Translation of global variable datatype=Option

$
0
0
You can define the caption on the page field level, it will then show up in the translation file.

Blog Post: Enum != SchemaChange

$
0
0
I love a nerdy title and I love learning about cool new smart stuff. But before you continue reading I want to say thanks to my colleagues at ForNAV, especially Michael Nielsen. Without him pushing me (again) to step out of my comfort zone this would not have been possible. Yesterday I visited the Microsoft office in Lyngby for the first time in a very, very long time to talk about our project to split up the base app. We also talked about something else, but that will be another blog. (Soon…). The biggest showstopper we had in the old days with C/Side to separate code was the option field. Option fields are often where modules get together and programmers make switches in the code about which business logic to execute. This is fixed now with the enum, and it will be even better in the next spring release with the interface implementations. But before you can execute on that you have to change the Option field into an Enum. And yes, this means changing a field type. Changing field types is not allowed in AL when you run on AppSource. You have to obsolete the field and introduce a new field. You can imagine that this makes implementing this feature incredibly complex right? The day before yesterday’s meeting however I sat down with Michael at our office in Horsholm to see if we needed to make changes to the ForNAV product in order to implement Enum support. Imagine how surprised we were when we noticed that the FieldType::Enum did not exist. And we did some testing and it looked as if an Enum field returns FieldType::Option. I tweeted to #BCAlHelp and got no logical answer. Does anyone know why FieldType does not contain Enum? Does Enum correspond to Option? #BCAlHelp https://t.co/6oIhebcgC5 — Mark Brummel (@markbrummel) January 8, 2020 So I decided to save this question for my meeting with Microsoft, also because one of our team members, Cristina Nicolàs identified the schema change as a project risk. At Microsoft I was happy to learn that this is all by design. Someone smart at Microsoft must have realised that since at SQL Server level this is always an Integer anyway it would only make sense to allow this flipping without making a breaking change. The Test! Off course I had to test this in order to blog about it. I have created a simple table with an option field and published this to a Sandbox. Next I change it to this And yes, I can publish this without getting errors. Enums will come in next Spring Release! All of the teams in our project of splitting up the base app implemented their own Enum’s because last Fall release was shipped without it. We were happily surprised to hear that Microsoft has implemented the Enum in the usual suspected places and they are expected in the next Spring release. I’ve been told, but I did not yet have time to confirm this, that the Insider Docker build already as this code. The compiler of this Docker image also allows you to play around with Interface objects. Enjoy! Again, thanks to everyone to make this possible and transparent. Thanks to the Base App split team and thanks to Jesper and Bugsy at Microsoft,

Blog Post: DynamicsPower! 2020 Milan

$
0
0
DynamicsPower! 365 Saturday Milan is returning in 2020 at Microsoft House with the biggest Dynamics 365 italian community event covering Hands on Workshops and Deepdives into Dynamics 365 Customer Engagement, Unified Operations, Dynamics 365 Business Central, Power Platform, Finance & Operation and more! This year (thanks to Microsoft Italy) we have a dedicated ERP track with technical sessions about Dynamics 365 Business Central and Dynamics 365 for Finance & Operation. You can find the event schedule and the link for the registration by clicking here . I personally have two sessions at this event: Dynamics 365 Business Central: Using Azure Functions Deep Dive : we’ll see how to create, deploy and use Azure Functions with Dynamics 365 Business Central to the max. Dynamics 365 Business Central: Handling globally distributed serverless integrations (a use case) : this is a particular session I’ll present a real world business scenario where Dynamics 365 Business Central SaaS (core ERP) must be integrated with globally distributed applications. We’ll see how this system architecture was planned initially, how it was modified and then how the final solution was implemented in order to maximize performances and data reliability of the entire solution, all in a serverless way. We’ll have also a large time for Q&A and networking. Seats are limited, so first come first served Come on Italians… see you there

Blog Post: Working on Design Patterns for Business Central

$
0
0
Yesterday at Microsoft I had two meetings, or goals. The first as you know was about our initiative to do a proof of concept to break the BaseApp into smaller extensions. The second meeting was about revamping the old Design Patterns we had for Dynamics NAV and bringing them up to speed for Business Central. For those of you who don’t know or to refresh memories; a few years ago there was a joint project between Microsoft and the community to document Design Patterns. The old patterns wiki still exists but there have not been any updates. A Modern World Things have changed a lot in the last few years and Microsoft moved from MSDN to Docs who are open source and maintained on GitHub in markup language. Within Microsoft there is a standardised way of documenting best practices with code examples, also maintained on GitHub that must me working examples people can clone and compile. Five years ago all of this did not exist and even if it would, C/Side would not integrate anyway. Thinks have changed for sure. Perfectly Mixed Priorities When talking to Business Central leadership there is a need to publish modern patterns about extensibility. This is is awesome but my personal ambition has always been to keep the old patterns alive. We agreed that this would be a perfect mix since MSFT can take the lead on the modern stuff and the community will update the old patterns if they still make sense. Examples Step one will be to publish half a handfull of examples to inspire people. I will take on this task and work with Microsoft on finetuning the process Call on the Community The first patterns project was driven by transparency and community. I hope to be able to call again on you folks, my readers. If we get 5 to 10 volunteers to update some of the old patterns to Markup Language and AL/GitHub we should have them up to date in notime. So please maintain some patience while we execute on some of the first steps, the plumbing. This always take longer than you expect but it will be there eventually. Thanks, and goodbye from CPH airport.

Forum Post: RE: how to add fieldgroup in table Item Vendor?

$
0
0
Hi OigresSyn, here is the error message

Blog Post: Book - Introduction to the Modern Client in Business Central

$
0
0
Some people take vacations far away in the Christmas holiday, but not me. I decided to start the new year by writing a new book: Introduction to the Modern client in Business Central The book cover the new features introduced with Business Central Release Wave 2 and the Modern client. In spite of the new name, the client was not completely unknown because it was built on the foundation of the web-client that was introduced with Dynamics NAV 2013 and later revised with Dynamics 365 Business Central. Previously the web-client was very often opted out because of limitations in: Missing shortcuts Missing not functional Quick-Entry Missing Departments menu No Personalization Many levels in the menus Copy/paste problems However, with the release of the Modern client, many of the problems that prevented users to switch to the Web-client has been fixed, and the Modern client now proves to be a valid successor to the Windows client. This book will give you a round-trip in the Modern client and explain functionality and how to maneuver the client and how to customize it. Why do we need Role Centers? The life-cycle of a profile Maneuvering the Role Center The new shortcuts Creating filtered views Adjusting views to fit your need Developing new Role Center pages Designing the Role Center and other pages Customizing profiles Personalizing pages My Notifications Charts and Business charts Alternative clients Get your own free preview with the first 50 pages of the book or pre-order the paperback now, for delivery in mid-February. The final e-book will be available at the end of January. Here:

Comment on GDT Where Used Tool - free of charge -

$
0
0
Hi. where can I download the last version of Standard, but not Plus? the link .. /download.htm has information about Plus-version and any information

Forum Post: RE: how to add fieldgroup in table Item Vendor?

$
0
0
I think you do TableExtension, right? I can't see it on screenshot, but you wrote about it. I remember I tried to do the same point approx 1.5 year ago and informed the MS (in GitHub) about this Bug. But they said that I need to reproduce it on last version of the BC and then when think do they need to fix it.
Viewing all 11285 articles
Browse latest View live