Hi Erik, Thanks for the response. I'm not sure I quite understand--I am indeed trying to add the new option to the Customer Report Selections list page. That much is done. But it will not display. As for adding the new usage option to the report, I don't know how or where I would do that. The "page using it"--would that be the Sales Order Shipment card where the Packing List action lives? Again, I don't see where I would do that. Maybe I am not looking at this right, but this all seems to be related just to the "Usage" pattern between Custom Report Selections table and Customer Report Selections page. Should I even be trying to add options to the latter? Is that allowed?
↧
Forum Post: RE: Customer Report Selections Page 9657 Will not display additional options
↧
Forum Post: RE: report design in Navision 2016
is this line with Bin has grouping (repeat condition like '(=' )? If no, then you need to re-create the Layout
↧
↧
Forum Post: RE: Customer Report Selections Page 9657 Will not display additional options
Erik, Found it. I had only been changing the OptionCaption string, which is what you get when you show the Properties from the page designer. A colleague pointed out that I had to go to the actual global variable, and change the OptionString there. Once I got that right, everything else worked out. Table 9657, Custom Report Selections, was missing a caption for one of the OptionString options, but we were able to fix that too. Thanks again!
↧
Forum Post: Data Exchange definition
Hi, I have got 2 issues with the data exchange definition: 1.BACS - I have created Data exch. def with the header and details, but when assigning it to the payment method, you can assign header or details, so file does not contain both peaces of the info. Is there is a solution 2. When importing bank statement I got dates in US, but need in UK format and dates as 19 Jan 2020 - how i can convert those to UK format (I have tried Date Formating) and it does not work. Thank you!
↧
Blog Post: 200 ERP Questions to ask when considering Business Central
Sune Lohse from Abakion wrote the book together with Sanne With-Hansbøl, Kenneth Kryger Gram and Kristian Nørhave, about 200 ERP Questions to ask when considering Dynamics NAV back in 2017. Now the book has been upgraded to 200 ERP Questions to ask when considering Business Central . The book takes you through all the different takes of upgrading or migrating you to Business Central. This book is a review of all the needs that you should map when looking at a new ERP system, particularly if that system is Dynamics 365 Business Central that was previously named Dynamics NAV. The book is 237 pages divided into 9 main topics: 1. Your Project 2. Your Strategy 3. Your Processes 4. Sales 5. Purchase & Planning 6. Inventory 7. Production 8. Finance 9. Technic stuff In the process, I will go through the processes of your company and ask questions, that you need to answer. This will enable you to communicate with your ERP-supplier with confidence. The book is published in Danish bundled with both hardcover and pdf or as e-book in pdf. It is also available in English as pdf. Both books can be downloaded free in preview editions. And of course they are available at your local DynamicsBookStore.com .
↧
↧
Forum Post: RE: Get Vendor Ledger Entries for all the companies in Sandbox using AL DataSet
I can't see the loop for companies in your report and CHANGECOMPANY usage. And what do you want to see in this report? Do you need to have data only or to see it on the page?
↧
Forum Post: RE: Get Vendor Ledger Entries for all the companies in Sandbox using AL DataSet
I dont know how to loop and change company and i want to see data only. Thanks
↧
Forum Post: RE: Get Vendor Ledger Entries for all the companies in Sandbox using AL DataSet
Hello It should be basic knowledge that if you want ot read some data from a specific company then you have to either change company in the client or do some code that makes that switch for you. If you run a local NAV/BC database and opens up SQL-management studio then you will se that the Vender Ledger Entries are not in one table but several, and the tableid is named as 'Companyname'$Vendor Ledger Entry. So basically you have to do a loop where you for each company finds the records you need. Depending on how you want to do the printing you probably have to transfer the data to a temporary table and then print the data on the report using that table. I have no idea about your NAV/BC development skills, but if you are not an experienced developer this might be above your league of of skills - and you will probably get more than a few difficult issues in the steps that follows after the CHANGECOMPANY function.
↧
Forum Post: RE: 'Codeunit "Temp Blob"' does not contain a definition for 'Blob'AL(AL0132)
Also getting second error : Error 2: Field 'Archive Quotes and Orders' is marked for removal. Reason: Replaced by new fields Archive Quotes and Archive Orders AL (AL0432) These fields belongs to table 311 - 'Sales & Receivables Setup'. I am trying according to message but getting error - Operator 'and' cannot be applied to operands of type 'Boolean' and 'Option'AL(AL0175) Because 'Archive Quotes' is Option type and 'Archive Orders' is of Boolean type. Thanks in advance.
↧
↧
Forum Post: RE: Get Vendor Ledger Entries for all the companies in Sandbox using AL DataSet
Thanks for response Palle. I am using BC. I have already done this in PowerBI but have trouble in understanding CHANGECOMPANY in AL, because of it i am unable to set dataset for report
↧
Forum Post: RE: 'Codeunit "Temp Blob"' does not contain a definition for 'Blob'AL(AL0132)
It is difficult to bring in any advice because you do not show your code. Everything with blobs have been removed and replaced and as stated on breaking changes the way to resolve the issue is to use CU 4100. You can search for a variable containing CU 4100 in base application - and find a workable example. Yes you get that error as the original fields are marked for deletion because of functional changes in the base application - so you have to rewrite your code.
↧
Forum Post: RE: Get Vendor Ledger Entries for all the companies in Sandbox using AL DataSet
Well you cannot just make a dataset on a report - you have to create some code that creates the mixed dataset you need. Remember data is coming from different tables in SQL.
↧
Forum Post: RE: 'Codeunit "Temp Blob"' does not contain a definition for 'Blob'AL(AL0132)
Hi Palle, Thanks for reply. I have given the standard piece of code where I am getting error, below is standard code, trigger OnPreDataItem () ; begin IF NOT ShowWorkDescription THEN CurrReport . BREAK ; TempBlobWorkDescription .Blob := Header . "Work Description"; end ;
↧
↧
Forum Post: RE: Get Vendor Ledger Entries for all the companies in Sandbox using AL DataSet
Exactly, data is coming from different tables from SQL, We can append/join/merge in SQL. But in AL i dont find anyway to achieve this.
↧
Forum Post: RE: 'Codeunit "Temp Blob"' does not contain a definition for 'Blob'AL(AL0132)
Ahh, not quite.. There must be more to it than just 5 lines of code. What is TempBlobWorkDescription (Object id) The Header."Wotk Description" is have you calculated the value of that field beforehand?
↧
Forum Post: RE: Get Vendor Ledger Entries for all the companies in Sandbox using AL DataSet
The steps are 1) Create two variables linke to the tables Company and Vendor Ledger Entry 2) Create a new variable with the Vendor Ledger Entry as tempoary 3) Create a Loop of Companies 4) For every Loop of Company copy the Vendor Ledger Entries into the temporary table 5) Use that dataset for whatever you need
↧
Forum Post: Page property of page in Bussiness central cloud
Hi All, I got a requirement like, client wants Unit Cost and Unit Cost(LCY) visible according to user setup, also 'Unit Price' should be visible and editable according to user setup wise on Sales Order. For it I have created three fields in User Setup table, "Unit Cost Visible", "Unit Price Visible", "Unit Price Editable" and wrote below code: pageextension 50007 SOSubFormExt extends "Sales Order Subform" { layout { modify( "Unit Cost (LCY)" ) { Visible = UnitCostIsVisible; Editable = false; } modify( "Unit Price" ) { Visible = UnitPriceIsVisible; Editable = UnitPriceIsEditable; } modify( "Line Amount" ) { Visible = UnitPriceIsVisible; Editable = UnitPriceIsEditable; } addafter( "Unit Cost (LCY)" ) { field( "Unit Cost"; "Unit Cost" ) { Visible = UnitCostIsVisible; Editable = false; ApplicationArea = All; } } } actions { } trigger OnOpenPage () var myInt: Integer ; begin if UserSetup . Get ( UserId ) then begin if UserSetup . "Unit Cost Visible" = true then begin UnitCostIsVisible := true end else begin UnitCostIsVisible := false; end ; if UserSetup . "Unit Price Visible" = false then begin UnitPriceIsVisible := false; UnitPriceIsEditable := false; end else if UserSetup . "Unit Price Editable" = true then begin UnitPriceIsEditable := true; UnitPriceIsVisible := true; end else begin UnitPriceIsVisible := true; UnitPriceIsEditable := false; end ; end ; end ; trigger OnAfterGetRecord () var myInt: Integer ; begin UnitCostIsVisible := false; UnitPriceIsVisible := false; UnitPriceIsEditable := false; if UserSetup . Get ( UserId ) then begin if UserSetup . "Unit Cost Visible" = true then begin UnitCostIsVisible := true end else begin UnitCostIsVisible := false; end ; if UserSetup . "Unit Price Visible" = false then begin UnitPriceIsVisible := false; UnitPriceIsEditable := false; end else if UserSetup . "Unit Price Editable" = true then begin UnitPriceIsEditable := true; UnitPriceIsVisible := true; end else begin UnitPriceIsVisible := true; UnitPriceIsEditable := false; end ; end ; end ; var UserSetup: Record "User Setup"; UnitPriceIsEditable: Boolean ; UnitCostIsVisible: Boolean ; UnitPriceIsVisible: Boolean ; } It is working fine in Sandbox but in Production even if "Unit Cost Visible" is False still Unit Cost(LCY) is visible on page whare as Unit Cost is not visible. Where and what I am doing wrong? Thanks in Advance.
↧
↧
Forum Post: RE: Page property of page in Bussiness central cloud
And the updated extension is installed in both the sandbox and production environment?
↧
Forum Post: "The value can't be evaluated into type Time.
So, I have a datetime column called [Starting Time] in an SQL Server Dynamics NAV (On-Prem) database. It appears to have a default value of '1753-01-01 00:00:00.000'. If a time is assigned to the field in Business Central the date part in the database advances one year (e.g.) '1754-01-01 15:07:27.007' I've created an AL Extension in VS Code containing an API Page in which one of the fields defined is the aforementioned [Starting Time] (see below): field(StartingTime; "Starting Time") { } When I hover the mouse cursor over this field in VS Code it reports: '(field) "Starting Time": Time' I've then downloaded the XML metadata from Dynamics NAV (see section below). Notice, it has defined the field as "Edm.String" ? NAV.NavType/String I've then create an OData connected service in a C# .NET Core 2.2 Web App in Visual Studio 2019. See auto-generated code below:- /// /// There are no comments for Property StartingTime in the schema. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.6.0")] public string StartingTime { get { return this._StartingTime; } set { this.OnStartingTimeChanging(value); this._StartingTime = value; this.OnStartingTimeChanged(); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.6.0")] private string _StartingTime; partial void OnStartingTimeChanging(string value); partial void OnStartingTimeChanged(); I have a Razor View as below, which displays a nice TimePicker control:- @Html.EditorFor(model => Model.ServiceHeader.StartingTime, new { htmlAttributes = new { @class = "form-control", @type = "time" } }) The value chosen is returned to the Controller (e.g.) "01:00". I populate the relevant object's properties and call the functions below to update the database via the OData interface:- _context.AttachTo("API_Service_Header", lobjSH, "*"); _context.UpdateObject(lobjSH); await _context.SaveChangesAsync(SaveChangesOptions.None); ... And I get the following error:- {"error":{"code":"Application_EvaluateException","message":"The value \"1754-01-01 01:00:00\" can't be evaluated into type Time."}} By the way I've tried formatting the value as just a time (e.g.) "01:00" and I've tried formatting it as full date (e.g.) "1754-01-01 01:00:00" - Same error. Any help would be greatly appreciated?
↧
Forum Post: RE: Page property of page in Bussiness central cloud
Hi Palle, Thanks for the reply. Yes
↧