yes! this is the code sample i was looking for: Add following code to the trigger “Sales Invoice Header – OnAfterGetRecord()”: // local variables // customer | record | Customer IF SalesSetup."Logo Position on Documents" = SalesSetup."Logo Position on Documents"::Right THEN BEGIN customer.GET("Sell-to Customer No."); customer.CALCFIELDS(Picture); IF customer.Picture.HASVALUE THEN CompInfoRight.Picture := customer.Picture; ELSE CompInfoRight.Picture := CompanyInfo2.Picture; END;
↧
Forum Post: RE: Report for Members with picture and signature
↧
Forum Post: RE: "query.open" cannot compile
Thanks for your response, I have checked for missing end statement plus if I remove til HIMQuery.open. it can compile as it should but unfortunately I cannot use the data from the query without it. I have tried the close too, but as you can see the error is still there. Thanks for your response, do you have any other ideas ?
↧
↧
Blog Post: Page Extension -Tenerife Visual Studio Code
In previous post Table Extension we saw how to extend table using Tenerife (New NAV development tool) .In this blog post we will see how to extend Pages using visual studio code. The page objects extends a dynamics NAV page object .This will used for add or overrides the functionality.The structure of page is divided into three parts First part contains metadata for the entire page Second part describes visual parts on page Final Part describes action published on page In visual studio typing tpageext will create the basic layout for page object when using AL extension in Visual Studio code. How to Write Code For example if you would like to add the custom field and Action button then you can wrtie code as follows. pageextension 70000030 VendorCardExtension extends "Vendor Card" { layout { addlast(General) { field("Credit Days"; CreditDays) { CaptionML = ENU='CreditDays'; trigger OnValidate(); begin if CreditDays < 0 then Error('Credit Days Can not be blank'); end; } } } actions { addlast(Creation) { group(MyActionGroup) { Action(MyAction1) { trigger OnAction(); begin Message('Action Button is operating'); end; } } } } } Keep Learning and Stay tuned for more updates… Cheers…
↧
Forum Post: RE: Conditional Page break in Report (NAV 2015)
Refer to report "Report 104 Customer - Detail Trial Bal." to see how to apply page break based on Boolean variable from request page. look at "CurrReport.NEWPAGEPERRECORD" and PageGroupNo code section.
↧
Forum Post: RE: Conditional Page break in Report (NAV 2015)
Thank you Dileepa! :)
↧
↧
Blog Post: NAV in Azure SQL
Hello again! We have been busy installing new customers to Azure, and I'd like to write a short blog jut to remember what one has to do before publishing. Good instructions how to publish database to Azure SQL you can find from this link: https://msdn.microsoft.com/en-us/library/dn951458(v=nav.90).aspx However, msdn articles sometimes miss information, and here is the things you have to remember to make it work easier. If you don't have a SSL certificate, forget it. Certificate is the first thing to get . And it has to have both client and server sides in it! I strongly suggest using wildcard certificate to make things easier. Prepare SQL database for publishing in Azure SQL Remove all stored procedures, they are not supported by Azure SQL Remove all AD users, they are not supported. SQL users are inserted, but they have no password, so remove all unnessessary SQL users as well Make sure you store license to database before publishing with SSMS.exe (instructions for publishing here ). If you forget this, you have to start over.. Prepare NAV Server Enable NAV Server to use SQL login (as in MSDN article), and add correct rights to DB Remember to add endpoints to Azure VM hosting NAV Server. And firewall holes as well, both to VM and SQL! Remember to put Azure VM that hosts NAV service and Azure SQL in same region, for example North/North. Never put in different regions, that kills performance Consider applying SSL encryption between VM and Azure SQL ( instructions here ) If you have two NAV servers and load balancing, see instructions from here And remember that with load balancing you have to import/export the SQL keys to enable two nav services against same SQL database with SQL login. Commands to handle import/export attached to txt file That's about it! I will add information to this blog as I encounter it. Urpo
↧
Blog Post: Microsoft Earnings Release FY17 Q2: No surprise, Microsoft Cloud powers second quarter results
Microsoft has released its earnings for Q2 2017 (Q4 CY 2016), as follows: Revenue was $24.1 billion GAAP, and $26.1 billion non-GAAP Operating income was $6.2 billion GAAP, and $8.2 billion non-GAAP Net income was $5.2 billion GAAP, and $6.5 billion non-GAAP Diluted earnings per share was $0.66 GAAP, and $0.83 non-GAAP Just as he did in describing Q1 results, Microsoft CEO Satya Nadella touted digital transformation (read that, "cloud migration" ...read more
↧
Blog Post: NAV2017 CU2 Download Link
At the moment Microsoft dynamics Navision download link temporarily unavailable due to migration and updating the contents. For my friends here is download link of NAV2017 CU2 for W1 version to download. NAV2017 Cumulative Update 2 Happy downloading
↧
Forum Post: RE: Report for Members with picture and signature
Perfect, I dint saw SalesSetup.GET anywhere. I hope you must have had written this. :)
↧
↧
Forum Post: RE: G/L Entries Dimensions
I had such TSQL script, even posted it here, but can't find it on the spot - it was several years ago. I'll try to find it... In short, it's not that easy, because of use of Dimension Sets and how they are implemented in DB tables structure.
↧
Forum Post: RE: G/L Entries Dimensions
Hello, thanks for the answer. If you can find the script this would be very helpful. If you can't find it maybe some tips on how to approach the problem. best regards,
↧
Blog Post: From the Microsoft Dynamics NAV Blogs: Advanced charts; Copy loop; Change log; Set filter in Report
A selection of the latest insight from the Microsoft Dynamics NAV blogs: Create Advanced Charts in Dynamics NAV How to Implement a Copy Loop in Word Report Layouts Microsoft Dynamics NAV 2016 and the Change Log Set Filter in Report Using Text Variable in NAV - Tips, Tricks & Facts #10 Create Advanced Charts in Dynamics NAV On the Boyer & Associates blog, Kate Morgan explained that there are many pages in Microsoft Dynamics NAV with list views, including ...read more
↧
Forum Post: RE: G/L Entries Dimensions
Uffff, found anyway... but it was hard task digging thru terabytes of crap accumulated over years on my HDDs :) My approach was more universal - the following script creates a VIEW of all defined Dimension Sets in system: --CREATE VIEW vDimSETS_Pivoted AS --uncomment this to create a permanent VIEW --which can be linked to Ledgers SELECT [Dimension Set ID] AS SetID -- replace the following with your actual Dim codes ,[AREA] ,[BUSINESSGROUP] ,[CUSTOMERGROUP] ,[DEPARTMENT] ,[PROJECT] ,[PURCHASER] ,[SALESCAMPAIGN] ,[SALESPERSON] FROM ( SELECT [Dimension Set ID] ,[Dimension Value Code] ,[Dimension Code] FROM [dbo].[CRONUS Canada, Inc_$Dimension Set Entry] WHERE [Dimension Set ID] < 20 -- comment WHERE clause out if VIEW is to be created, "<20 "is for testing the script ) AS SourceTable PIVOT ( max([Dimension Value Code]) -- aggregate function here is a MUST, we can use MAX(), -- it does no harm & complies to required syntax FOR [Dimension Code] -- replace the following with your actual Dim codes IN ([AREA], [BUSINESSGROUP], [CUSTOMERGROUP], [DEPARTMENT], [PROJECT], [PURCHASER], [SALESCAMPAIGN], [SALESPERSON]) ) AS PivotTable examine the script, I tried to comment it at my best, but you know how it stands with those comments :) results look like PIVOT is required to transpose set dimensions in ONE row, because physically they are stored as 1 to n rows where n = count of Dims in a Set. Next script is for demonstration purpose, your issue doesn't require it. USE [Demo Database NAV NA (7-1)] GO SELECT [Dimension Set ID] ,[Dimension Code] ,[Dimension Value Code] ,[Dimension Value ID] --is unique throughout the table, even for different DimCodes, can be used to get Dim NAME as follows ,(SELECT [Name] FROM [dbo].[CRONUS Canada, Inc_$Dimension Value] DV WHERE DV.[Dimension Value ID] = DSE.[Dimension Value ID]) as [Dimension Name] FROM [dbo].[CRONUS Canada, Inc_$Dimension Set Entry] DSE WHERE [Dimension Set ID] = 11 -- debug (to eliminate the output while testing) GO Then, link the VIEW vDimSETS_Pivoted in your scripts with any Ledger Table as needed, not only G/L Ledger. All Ledger tables (+some other, too, BTW) contain field [Dimension Set ID] Hope this helps,
↧
↧
Forum Post: RE: G/L Entries Dimensions
Hello, thanks man. That's exactly what i needed. This information saved me alot of time. best regards,
↧
Forum Post: RE: "query.open" cannot compile
Hi Lars Sander , Check your Query - Your whole code is using HIMQuery2 but you are closing HIMQuery1.
↧
Forum Post: RE: Nav 2016 Permissions:
Use Permission recording to record required permissions and assign to required user. www.youtube.com/watch
↧
Forum Post: RE: Delivery Quota
AFAIK There is no standard feature available in NAV . You need to customize the same.
↧
↧
Blog Post: NAV 2017 CU2.1 Avaialbe for Download
Two days ago I posted Personal Link to download the NAV2017 CU2 which I downloaded before MS pull off from official link. Now MS published the official link to download NAV2017 CU2. You can download from following link https://www.microsoft.com/en-us/download/details.aspx?id=54672
↧
Blog Post: Dynamics NAV New Books
Many ask in the forum about books\ebooks\kindles on Dynamics NAV 2017 ; actually there are no books on Dynamics NAV 2017 (…the same for Dynamics 365 Business Edition), many books have been updated at least to Dynamics NAV 2016. Good News: “New books on Dynamics NAV will be released soon”. Below you can find the title and release date of each book, i must point them, the upcoming books look very interesting ! You can find books on Amazon or on PacktPub (also from other sites) https://www.amazon.com https://www.packtpub.com/ NAV books Books currently purchasable Implementing Microsoft Dynamics NAV – Third Edition (by Alex Chow) http://amzn.to/2jKcTNd hi already talked about this book long ago, take a look to my old post. https://robertostefanettinavblog.wordpress.com/2016/04/15/new-book-implementing-dynamics-nav-2016-by-alex-chow/ Microsoft Dynamics NAV 2016 Financial Management – Second Edition by Anju Bala http://amzn.to/2k5fxhv Extending Microsoft Dynamics NAV 2016 Cookbook by Alexander Drogin http://amzn.to/2kAtgwG at this time i’m writing a review of this book (Kindle) Einstieg in Microsoft S Dynamics NAV: Microsoft® Dynamics(tm) NAV 2016 http://amzn.to/2k5HndM Books that will be released soon (only bookable books) Building ERP Solutions with Microsoft Dynamics NAV (available from August 2017) by Stefano Demiliani http://amzn.to/2kANTZU Mastering Microsoft Dynamics NAV 2016 (avalialble from September 2017) Rabindra Sah http://amzn.to/2k52YTv Programming Microsoft Dynamics NAV – Fifth Edition (available from November 2017) http://amzn.to/2jK3eGM Have a nice reading !
↧
Forum Post: RE: Rounding entry calculation / Nav 2009 R2
It is based on what cost method you used. Please check the Cost Amount in the same Purchase Doc No. and if there is still cost amount and inventory is zero, then system will create an entry for adjusting the cost amount of purchase invoice(in this case). It won't influence your inventory valuation.
↧