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

Blog Post: Media Datatype-NAV2017

$
0
0
In this blog will try to explain how Media data type works in NAV2017 for uploading media,image. Media data type store media in system tables of the database and then reference the media from application records. Media datatype provided better performance than traditional BLOB datatype. With BLOB datatype ,media is rendered every time in the client ,Media datatype provides unique Media ID to provide the data to client. Table fields support data types for adding media to records. You can import media directly to a record . This media will get store in the system table Tenant Media with the unique identifier (ID).  The media data type is associated with single media. HOW TO USE MEDIA DATATYPE Following example illustrate how to use Media data type in development. Table Field Id Field Name Data type 1 PictureNo Integer 2 MyPicture Media Create list page and card page with above fields Create one Action button on Page for importing the image. Define following variable filename   Text   250 MediaID   GUID filename:=’E:\Photo.jpg’; IF filename<>” THEN BEGIN MediaID :=Rec.MyPicture.IMPORTFILE(filename,’Media Image’+FORMAT(Rec.PictureNo)); MODIFY; END; In tenant Media table following GUID will get inserted Now Open the page in Web client and see the result Following Media types are supported. BMP EMF EXIF GIF JPEG PNG TIFF WMF You can use this method for applications that are developed for the Microsoft Dynamics NAV Web client and Microsoft Dynamics NAV Universal App: Display media with records in list type pages, when the page is viewed in the Brick layout. Display media on a card type page for a record. Display media in a report. Keep testing and let me know your feedback Cheers….

Forum Post: RE: Printing problems with Generic / Text Only in 2016. NAV puts spaces and CR LF in my printout.

$
0
0
Thanx Erik for your reply. The problem is now solved by changing the font to currier! :)

File: GDT Where Used PLUS - A professional code analyzing tool

$
0
0
GDT Where Used PLUS is a professional code analyzing tool with limited version management capabilities. Works with NAV 5, NAV2009, NAV2013, NAV2015, NAV2016 Features: - shows where Objects, Functions and Fields are used, like its predecessor GDT Where Used. - can be used with multiple users on the network with the same data. - supports multiple projects (In this context, project means the objects of a customer database.) - supports multiple versions. You can import as many versions to a project as you like. - Object compare. Choose an object and see the differences in a text comparison tool of your choice. - CodeGuard. Analyze two versions. CodeGuard will check all objects and verify based on the source comments that your code is preserved. (In case someone doesn't merge objects correctly or you simply want to see all changes made to keep up to date.) - Syntax coloring - Function View. You can expand a function of another object directly in the code viewer. Implementation: GDT Where Used PLUS is an external program. Objects can be imported through Finsql form Nav or simply as object text import. There is no link back, your objects in Nav will never be touched. Performance: Selecting projects, versions as well as where used functionality cost no time. GDT Where Used PLUS needs time once to analyze objects (usually ~1 min) via text import. Additional time is required if you use Finsql. Object compare function needs time to start the text comparison tool. The time CodeGuard needs depends on the number of changed objects.

Forum Post: RE: Display S.no For Service lines

$
0
0
Can you tell us what problem you are facing ??? Are you using Item tracking in System?

Blog Post: Updates to my Object Renumbering Tool

$
0
0
Back in the end of 2014 I published a renumbering tool for NAV objects .  Using DotNet I was able to increase the renumbering speed for text object files dramatically. Since then I have been asked if I could upgrade it to work with IDs and Field Numbers. Now I have. What’s more, it is also on GitHub . The Process functions are the following; Read Object Lines – Creates renumbering lines base on the objects in the selected object file. Suggest IDs – Suggest new object numbers in the range from 50.000 based on the available objects in the current license. Read from Excel – Reads object renumbering lines from Excel Sheet created with the Write to Excel process. Write to Excel – Writes current renumbering lines to a new Excel Sheet to me managed within Excel and reread into the renumbering lines. Renumber Using Lines – Prompts for a file to read and for a new file to save with renumbered objects based on the rules in the renumbering lines. Renumber Using Controls – Prompts for a file to read and for a new file to save with renumbered objects based on the rules in the control IDs setup. I have done some fixes to the renumbering function and have added support for the EventSubscriber. Go to GitHub to download Page and Table 50000, try this out and submit improvements. When I am processing an object file I have it open in my text editor.  When I see something to renumber I update the control ranges and execute the renumbering process, reading and writing to the same object file.  My editor will reload the file and I can see the results immediately.

Blog Post: Report creation best practises Part 1, UX

$
0
0
Sometimes when a report is run, multiple tests are gone through in order to find if the filtering or parameters for the report is set correctly or as intended. For example user might have left out some important filter which causes the report do unexpected things. Therefore user must be asked to confirm if the operation he is going to perform is really started with firm intentions, or is it just an accidental click to test what this and this thing does. This is especially important with the functionalities that delete something from the database. In the old days, user was asked each time if he is sure he wants to go on with the suspicious setting, ending up user clicking multiple times "Yes", until he finally manages to get the report run. This causes aggravation and is just frustrating - when you can just collect all the suspicious parameters in one window and show it to user at once and ask if the suspicious parameters are indeed what he meant to do when inserting or leaving them empty. Luckily this approach has been adopted with Microsoft and NAV developers as well, because it has enormous impact on user experience. The same pattern goes very well with error messages, and in Dynamics Community pages there is already an entry for (IMHO very heavy) error handling pattern: https://community.dynamics.com/nav/w/designpatterns/236.error-message-processing A bit lighter version can be found from Report "122 Reminder - Test", where all the errors are gathered to an array and then shown in the printout. This functionality can easily be transformed to use with very light version where developer adds all the questions that possibly arise to a single string separated with linefeed, and finally right before running the report asks confirmation to all questions at once. Should all the tests to the data be ok, then user is asked only confirmation if he really wants to go on with the report or quit. For demo purpose, I created a sample report where three things are checked and added to string, shown to person running the report for confirmation, and then depending the reply abort or continue. Demo report is used to delete unused SKU's for items. It can be run from item card or from menusuite. This report has actually multiple "Good Things To Have" when it comes to user experience and convenience of using NAV: Report filter fields are pre-set, so user knows what he is supposed to filter the report with DataItems that user is not required to filter on are hidden ML translations are used with text constants All suspicious things and confirmation questions are collected and shown at once, no multiple Yes-clicking Default answer is set to confirmation dialog If all checks come out clean, user is asked if he/she wants to continue running the report -maybe he clicked it accidentally and really did not want to delete anything Confirm -dialog ends up with question mark User is shown a summary what the report has done Report uses ISEMPTY for best performance (instead of COUNT, FINDFIRST, FINDSET...) This raport can be run either from Item Card or Item List pages, or from MenuSuite. You can add PageAction code below to set default filtering: CompanyInformation.GET; Item.SETRANGE("No.","No."); Item.SETFILTER("Location Filter",'<>%1',CompanyInformation."Location Code"); REPORT.RUNMODAL(REPORT::"Delete unused SKUs",TRUE,FALSE,Item); For reference, you might also want to check report "339 Suggest Vendor Payments", which is really nasty. After each problem an error is shown and the report is cancelled. In the worst case you have to run the report 5 times before you have everything right. And NAV should be user-friendly... I will continue this blog post later with changes that need to be done if this report is going to be run by NAS. As usual, if you decide to use this report in your projects, it is all yours, but I take no responsiblity if something unexpected happens!

Forum Post: RE: Export to excel using dot net vaiable

$
0
0
Hey, Did you checked this www.kauffmann.nl/.../

Forum Post: RE: Export to excel using dot net vaiable

$
0
0
i am not ale to understand it any other help ??

Forum Post: RE: Item Unit of Measure

$
0
0
Hi again, FYI - KG is the Base Unit of Measure Thanks.

Forum Post: RE: Export to excel using dot net vaiable

$
0
0
Hey, It's the best one, many people have found that one helpful. At least try doing once.

Forum Post: RE: Item Unit of Measure

$
0
0
Let me know if this helps you, I believe the same question forum.mibuso.com/.../unit-of-measure

Blog Post: Microsoft updates MVP program with monthly awards, July renewals for all

$
0
0
Microsoft has made some changes to its MVP award program. Beginning this month, Microsoft will recognize MVPs every month, rather than every quarter, and all MVP re-awards will be done in July. The goal is to enable "great people to join the program as fast as possible," according to a blog post by Steve Guggenheimer, corporate vice president of Microsoft's Developer eXperience & Evangelism (DX) group. Guggenheimer stated that the MVP review model, which has ...read more

Blog Post: Dynamics NAV & the Copy Company feature

$
0
0
Sorry it's been so long since the last blog, lots going on in my personal & professional life has got in the way recently but I have renewed determination to share more. So the copy company feature Microsoft added, in I believe 2016, is just fantastic. While you need to be aware of the performance impact if you have a large dataset, the ability to 'spin up' a copy of your live data for testing is just ace and helps the support teams no end.   But, and you knew that was coming didn't you….. It copies at SQL Level (which makes it as quick as possible) and that means there is no business logic applied. You get an exact duplicate of the copy your copying in that new copy. Why is that a bad thing? Well there are a number of issues and therefore things I believe you should either do yourself or get the system to do after that copy. Emails The copy can send out email's. Not a problem in itself but click post & send as part of a test transaction and how is your customer or vendor supposed to tell that the email they get is not from your 'live' company. Getting good turning up against a purchase order number that's likely to be for a completely different vendor is going to confuse your goods in completely. Who is going to pay for the 'failed delivery'? Best to go and take out the SMTP mail server's IP address – that stops any possibility. If you need to test the email function you can always go and put them back in for the short period you need to test its working correctly. Job Queue & Scheduled Tasks So now there is no need to start separate NAS for each company for the Job Queue to start running. It run by the middle tier service for all companies by default. That means the job's that ran in live will also run in the new copy you've just created. That at best uses resources for no benefit and at worst sends loads of data or reports out that will confuse everything. So after your copy remember to go into the job queue and place all the job queue entries 'on hold' – you can then enable the ones you need to run when you need them. With 2017 the Job Queue creates scheduled tasks, I'm also deleting all of those to make sure nothing executes that I'm not in control of.     Company Information So we have a fraud risk here. Imagine if I have malicious intent and I copy your live company, create a nice large sales invoice then immediately delete that company again. If that invoice is used in a VAT claim by another company, how are the tax authorities going to look at you? Say I raise and send a nice large purchase order to a vendor that then manufactures those items specifically for this order. How will you sort that out. The Name in the company information should always be changed to make it clear it's not the 'live' company. I like a large '*TEST*' at the start of the company name. I also clear the VAT Reg. No and the Registered Company Number field as well. In fact I like the company name to tell me the date & time I copied this company & from where, that way I know when this data was created and how up to date the data is. That means I know if I can delete it safely which is a must if I'm not to end up with lots of 'test' companies using lots of space and resources. No. Series I like to change the No. Series on my copy company as well to make it doubly sure contractual business documents cannot be misunderstood. If that Purchase Order has a number of '*TEST*PO00001' it would make even your dimmest vendor ring up and check.   Don't we just love Events So all this is lots of effort and I have to remember to do it, wouldn't it be better if the system 'just did it' for me? Well we have a Company table and that's to Microsoft's new development capabilities a 'OnAfterInsert' event for that table. So I can write a function on a custom codeunit and subscribe to that event. That means it will run my code after its do the copy company function in the Companies page. So github there's a codeunit that if you renumber (its 50000 currently), then import & compile, will make sure all of the above are done automatically every time you copy a company. And because it's an event subscription there are no changes to standard code, you know, every time I say that phrase to myself (and its all the time these days) I just want to whoop like an American! Have I missed anything? I'd be very grateful if anyone could suggest anything I've missed? Feedback is most welcome.

Blog Post: Sales Effectiveness in Microsoft Dynamics CRM with Azure IoT and Machine Learning, Part I

$
0
0
How can an organization optimize its sales channels and product targeting by building a 365-degree view of its customers in Dynamics CRM? The answer, and topic of this article, is with the help of Azure IoT and Azure Machine Learning services. Sales effectiveness The use case described in this article is the promotion of best-fit products to consumers, in this instance, active cosmetics. The objective is to optimize stock availability among street distributors according to predicted ...read more

Forum Post: RE: More than two output

$
0
0
One way of doing this is by posting negative consumption. You would post the output of the main item and then post negative consumption of the byproduct.

Forum Post: RE: Dynamics NAV 2017 AP Remit To

$
0
0
Sorry, I don't have the actual code. But remember that I've done it a few times, back in the 90'ies in the DOS version, and this is the first time I hear this request in almost 20 years. I'm sure it's just as simple to do today. Back then it was just copying the stats form and change the vendor no. And a few new keys here and there. But it does depend if the "correct" vendor no. is also in the entry table. [:)]

Blog Post: Microsoft MVP Award Update

$
0
0
Microsoft made significant changes in MVP award program and now it will be awarded every month . More information on following blog written by Steve Guggenheimer, corporate vice president of Microsoft’s Developer eXperience & Evangelism (DX) group https://blogs.msdn.microsoft.com/stevengu/2017/02/01/continuing-the-evolution-of-the-mvp-award/ Anyway I am still waiting for my first MVP award.

Blog Post: SCM (Source Control Management) with NAV

$
0
0
..most viewed post about SCM.,, “nice” to reblog. Roberto Stefanetti NAV Blog SCM (Source Control Management) with NAV do you need to use NAV with SCM (Source control Management) integration ? …you can use two applications to reach this goal. – Visual Studio Online (and team foundation server) (free for 5 users) https://www.visualstudio.com/en-us/products/visual-studio-team-services-pricing-vs.aspx – GIT (free and open source) https://www.git-scm.com/about/free-and-open-source You can find a script on codeplex for using GIT and NAV (integration with TFS and GIT) …. and Others nice free scripts at links below (always on codeplex repository) 1) NAV Powershell scripts and TFS Build Template https://navscripts.codeplex.com/ 2) TFS Build Template for GIT repository https://navscripts.codeplex.com/wikipage?title=TFS%20Build%20Template&referringTitle=Home Some parts of the scripts are based on work (Waldo) see http://www.waldo.be/tag/powershell/ Some parts are based on PowerShell scripts from module “Microsoft.Dynamics.Nav.Ide” made by Microsoft people. My GIT@  https://github.com/rstefanetti     https://github.com/rstefanetti/NAV_SQL View original post

Forum Post: RE: Nav 2016. Creating permission sets for different groups.

$
0
0
There is no table for this as this is design and it is expandable . Check if page is non-editable

Forum Post: RE: Nav 2016. Creating permission sets for different groups.

$
0
0
Yes this not at all any how related to Permission sets. Just point your mouse to the bottom of that page(Sales Order Subform), there your mouse icon will get changed to different Icon which will allow you to expand it. There's no where dependency of this.
Viewing all 11285 articles
Browse latest View live