-
Dataport - Item & Item Ledger Entry
I want to create a dataport to EXPORT all item ledger entries for only ITEMS that have a quantity on hand of > 0. So if the Item has 0 qty on hand, then I don't want any of the ledger entries exported. Any ideas?
-
Drag and drop functionality in NAV/BC
Hi all We have developed a function Drag&Drop on NAV standard fuctionality. You can find the code below: 1. On a page on the field choose attribute Control addin - WebPageViewer 2. This Control addin allows to display websites through the function SetContent. This function could have 2 parameters - HTML Code and Script on…
-
Report must be initialized.
For report 7391, there is a code on OnPreDataItem as follows I was wondering how is that correct! As the user will always get this error since it's on OnPreDataItem. Does anyone know the reason behind such a code and why it's there? As I'm trying to run the report but I'm getting that error all the time(obviously)
-
Word-Layout repeating DataItem OPNo_ProdOrderRtngLine - Report 99000762 Manufacturing Job Card
Hi all, I am trying to adjust the Word layout for report 99000762 to achieve a similar behaviour compared to the integrated RDLC layout: one page per production order routing line. Therefore I placed my report layout inside a 1x1 table with the following XML mapping:* 'OPNo_ProdOrderRtngLine' as a text-element inside the…
-
Order my Record Set on a FlowField
Hello everyone, I'm desperating ! I have a table with a field which is a FlowField. I declare a temp table (Record temporary) where I put some records from this table. Now I need to order my temp table on the base of this flowfield. No way to do this with Setcurrentkey or ascending :/ Who can help ? Thank you a lot Stefano
-
Wordlayout Mini Sales Header - Alignment of Decimal Fields
I've encountered a strange thing, when looking at the standard Mini Sales Header Reports of NAV 2016 (reports 1304,...,1307, 1316). For example in the word layout of report 1304 "Mini Sales - Quote", the columns Quantity_Line, VATPct_Line, etc. all appear right aligned, when printed, but in the word layout itself, I cannot…
-
Security protocol TLS 1.2 in Dynamics NAV 2013
Hi out there! I am trying to increase a web requests security protocol in order to access a web service which is requiring TLS 1.2. My default SSL is not accepted. The request is send from Dynamics NAV 2013 (7.00). I have of course searched for a solution to this problem elsewhere. One single line should be enough:…
-
Pass XML into function
Hi, i have an xml file that i import manually into the system using an xmlport. I then want to convert this whole xml file to text and pass the text to a function. Can someone tell me how i can do this please?
-
Dynamics 365 Business Central Email and Email Message
If you are interested, how to use the functionality of Dynamics 365 Business Central for sending emails, check Simplanova's latest blog post in which our developer Raimund reviews specific settings that enable additional functionality, such as adding attachments and recipients in a letter. Have a read here:…
-
Compare objects in two databases
I need to get BC140TEST updated to current data but am not certain if the objects currently match between PROD and TEST. I can't afford to delete the BC140TEST company until I know for sure. Can anyone please let me know how could I validate the two to allow for a data update into BC140TEST? I'm assuming there is a faster…
-
Find which tableextension a field belongs to
I have done a page that has system table Fields as source. It is very useful since you can filter on all the tables/fields and see data types, captions and so on. However, I'm missing a new important feature. I would like to know which table extension a field belongs to. Are there any system tables that I can use for this?
-
Read Windows Registry from NAV2016 C/AL
Hi all, I'm trying to read a registry value in NAV2016. I've defined a DotNetVariable as ProcessFileName Microsoft.Win32.Registry.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' If I look in Regedit, I see a registry key I'm looking for. I exported it to a .reg file and here is the contents:…
-
Closing inventory period - item has entries in this period that have not been adjusted
Hi All, Wondering if you can help ? We have a customer that is currently not able to close their inventory period on a regular basis because of the error above - it seems that the affected item isn't updating when running the adjust cost routine and we have been getting around this by removing the tick on the cost is…
-
How to add a Shortcut Dimension to a table/page
Hi, I'm a NAV Developer, and I'm using NAV 2018. Does anyone know how to add a Shortcut Dimension 4 Code to a table and to a page? Thank you!
-
I am retired, pleas remove or disable my account
Dear administrators, I am retired, please remove or disable my account. Regards, Rudolf Stammis.
-
Preview posting when using "Post batch"
Hi all, Is there a way to use the "Preview posting" functionality on multiple documents (purchase orders in my case) at the same time? I'm looking for a solution to do some kind of bulk check before actually launching Post batch, so all posting errors can be handled before posting any of the orders. Thanks for your answers!
-
Job market in Mexico
Hi, I might move to Mexico, how are job or freelance opportunities there in the NAV sector? I have to admit my spanish is more on a toddler level and this has to improve, obviously. But may be english is sufficient at first? Thanks!
-
LinkedInTransaction deprecated in BC19
I'm migrating some tables from BC14 (C / AL) version to BC19. These tables are external to the DB and have property "LinkedObject" = true. According with Microsoft in these cases LinkedInTransaction property is set to false: Now compiler show a warning because this property is deprecated and in future became an error. So…
-
Unable debugging Business Central 19 onprem
I'm trying to debug my BC19 installation but when I try I get the following error in VSCODE: Error: In the server event log I find the following error: My server configuration: Can anyone help me?
-
Guidelines for Partners: GIT with VS Code
In previous technical blog posts, we wrote about managing AL code with Git and VS Code. Within them, we recommended a tool called GitExtensions, for performing most Git actions. Since then, the amount of Git features and their availability has increased within VS Code. It is possible to perform most of Git actions without…
-
The server failed to resume the transaction
Hi, A user is on NAV2017 and Microsoft SQL Server 2016 Enterprise Edition. The error log for the NAV Service tier contains various rows with the error message "The server failed to resume the transaction". Does anyone have experience with this error and experience regarding how to solve it? Thanks in advance for any help
-
How to use OData URL and consume it.
Hi everyone, I want to share data of shipment method table using OData. I made a page of shipment method table for this and added it to web services and got the URL. If I am accessing this OData URL then I am seeing table data in XML format on the browser. [Please check below] <?xml version="1.0" encoding="utf-8"?><feed…
-
RDL or RDLC for Business Central development?
Hello all, Which type of file is recommended if you have to create an RDLC layout for a report or report extension in Business Central? RDLC or RDL? Or perhaps it does not matter? I prefer RDLC because I can use Visual Studio for faster development and a better experience, also standard reports use .rdlc files. But if you…
-
BC SaaS - Importing CSV - How to handle text Qualifier "My text,part2"
Hi All I'm trying to import a CSV file with comma as separator but some field contain the comma as part of the text like" "Unit1, Maple St ",NY,US Is there a way to handle this in AL code instream or any other function. Currently using uplaodintoStream and LoadDataFromStream methods
-
Line Discount % in Sales Order Lines
Hello, Please can anyone help me how is called the Line Discount % field in Sales Order Lines? Where I can see this in C/AL? What I want to do is that in table 7004 Sales Line Discount, I should be able to setup discount based on Item Category. So When I create a new Sales Order and when I choose the Item for which i setup…
-
How to access my BC Instance from different computer?
Hi all, Am new here and trust all is well with you, I have created a new VM(Window server 19) on Azure and I have installed Business central 18 on it and I configured IIS as well as AD DS, I tried to access my service through localhost/bc180 and it runs well. Now I want to access my services from other computers using URL…
-
Pretty Printing a Json Blob for a Message in BC SaaS
Built this code for BC SaaS, since we cannot use any DotNet tools, and was getting tired of saving the output and putting it in a Formatting tool to make sense of the one long string.. It's not perfect, but makes stuff readable. Feel free to post a suggestion. codeunit 50000 "Json Library"
{ procedure…
-
Problem with delegation...
Hi, I have a three tier setup: BCWEB1 - Running the webclient. BCWEB2 - Running the webclient. BCSER - Running the BC service tier BCSQL - Running the SQL server. dom\ser_bc - Is the service account, running both the BC Service tier, and the application pool. BCWEB is the internal DNS name pointing to the internal Azure…
-
Media to text
Dear All good day. I'm on BC on cloud (accordingly I can't use any on-prem procedure) I have to convert a media file to text in order to push it on out API. local procedure MEDIAasTXT(): Text var DocumentAttachment: Record "Document Attachment"; MediaAsOutStream: OutStream; begin DocumentAttachment.SetRange("Table ID",…
-
BC 18+: Use implicit Drill Down behavior of Global-Records'-field in Page Field
Hi, I'm optimizing/cleaning up a page where there are two related records shown next to each other. One of the records is defined as the SourceTable, the other one is from a different table with a 1:1 relation. It is defined as a global variable which is retrieved in the OnAfterGetRecord-trigger with some conditional…