Quantcast
Channel: Microsoft Dynamics NAV
Viewing all 64865 articles
Browse latest View live

Forum Post: How to get "Total Rounded Amt" in Code Unit Pos Transaction

$
0
0
I am using Microsoft Dynamics Nav 2018 and LS NAV I need to get LineRec ."Total Rounded Amt" of item from the Code Unit "Pos Transaction" Always return an value zero

Forum Post: RE: Why is NAV generating a blank line in customer address information on labels/invoices?

$
0
0
Space, new line, garbled characters, etc. Basically any characters that do not show up in the screen but it is there.

Forum Post: RE: How to get "Total Rounded Amt" in Code Unit Pos Transaction

$
0
0
Is it a flowfield ? If yes, you need to do CALCFIELDS(fieldname) first.

Forum Post: RE: External users (customers) cannot see font in PDFs from NAV

$
0
0
Try sending a test PDF to external email address / computer. You can tell if the issue is from your side or their side. Or try turning on PDFFontEmbedding on the report.

Forum Post: RE: Item Reservation Entry on Incoming Receipts

Forum Post: Resell to customer

$
0
0
i have situation where our company is Disturber for Hole sales who sell to end customer we create Sale order for the Hole sales customer but we need to record information about which end customer get the products how i map this scenario in sales order entry ?

Forum Post: RE: How to get "Total Rounded Amt" in Code Unit Pos Transaction

$
0
0
Before post you should get it by sum up Net Amount and GST/VAT Amount , Total Rounded Amt. only populated after post the transaction to Trans. Sales Entry. LineRec."Net Amount" + LineRec.."GST Amount";

Forum Post: RE: NAV 2018 AL: Open Page based on Temporary Table

$
0
0
Sorry , i just realized that this setrecord is not working with temporary table. docs.microsoft.com/.../setrecord-function--page- Another workaround is , on your page property set "SourceTableTemporary" to Yes , then put the code to populate the temporary data during OnOpenPage Trigger of the page.

Forum Post: RE: Resell to customer

$
0
0
You will need to do customization for this.

Forum Post: POS Item Lines in LS Retail

$
0
0
Hi In LS Retail Pos ITem Lines comes from which table Thanks

Forum Post: LS Retail Pos Screen

$
0
0
HI On LS Retail Pos Screen i want when user clicks on some button Input Dialog box should appear Thanks

Forum Post: Extract a String

$
0
0
Hi How to extract a string from the below code . I want to extract Invoice No & Date PI/MHD/1819/0100 & 08/09/18 On Account of Payment Agst Pur Invoice No. PI/MHD/1819/0100| Dated: 08/09/18 | Amount 10,000.00 Thanks

Forum Post: RE: LS Retail Pos Screen

Forum Post: RE: POS Item Lines in LS Retail

$
0
0
Barcodes table 99001451 have item information like UOM, Desc etc

Forum Post: Outlook automation variable - email not sending

$
0
0
Hi All, I have a report that sends email automatically to vendors. This report works good in our on premise server. But, recently we have moved to cloud server. We installed same ms office version, setup the same email in that cloud server and made outlook as default for emails as well. The issue is, this report run perfectly, but it is not sending email through outlook. Report function is:- 1. Generates and exports a file to C:\Sale folder 2. Report sends email. 3. Moves above file to C: \Archive folder Here, my files are getting saved in C:/Archive folder, that means, NAV says it did send the email. But, there is nothing in sent list of outlook. Can anybody help me, if I have to look and troubleshoot in any other side, like system, ms office or outlook...etc. This report works perfect and sends email automatically in our on premise server. Anybody plsz..

Forum Post: RE: Extract a String

$
0
0
TestString:= 'PI/MHD/1819/0100| Dated: 08/09/18 | Amount 10,000.00'; CLEAR(EndPos); EndPos := STRPOS(TestString,'|'); EndPos := EndPos-1; TestString1 := COPYSTR(TestString,1,EndPos); TestString := DELSTR(TestString,1,EndPos); EndPos := STRPOS(TestString,':'); TestString := DELSTR(TestString,1,EndPos); CLEAR(StartPos); EndPos := STRLEN(TestString); StartPos := STRPOS(TestString,'|'); TestString := DELSTR(TestString,StartPos,EndPos); MESSAGE('%1',TestString1+TestString); Variables Used Name DataType Subtype Length TestString1 Text 100 EndPos Integer TestString Text 100 StartPos Integer

Forum Post: RE: How to make connection with Amazon SQS from NAV 2016

$
0
0
My suggestion is to not use directly C/AL for interaction with SQS. Create an external DLL that handles the connection with SQS and the data tramsission from NAV and then call this DLL from your C/AL code (by using a DotNet variable). You can use AWS SDK for .NET for this.

Forum Post: Record Links in Business Central On-Prem

$
0
0
Is "Links" will work in Business Central On-Prem? I'm unable to select files to link. If I paste folder path + file name in Link Address field, it opens a blank browser tab when I open it.

Blog Post: ZIP archive reading with AL

$
0
0
Hello Team! Today I have not very often but very interesting scenario: I have *.zip archive in the cloud with *.xml file inside; I want to download this archive, extract file and read one element. I will use AL language and cloud version of Business Central. This is my archive . I put it into Azure BLOB container and feel free to use it (but I'm not guarantee that it will be available all the time). This is my repository with source code . It's absolutely #ReadyToGo. You can clone it, publish to your demo tenant and immediately test. If you use on-premise version - do not forget to change launch.json file. Let me explain some details: To download Zip file I used next function: procedure ReadZip(); var Client: HttpClient; ResponseMessage: HttpResponseMessage; ResponseText: Text; ResponseStream: InStream; begin If not Client.Get(URL, ResponseMessage) then Error(Text001_Err); if not ResponseMessage.IsSuccessStatusCode() then begin ResponseMessage.Content().ReadAs(ResponseText); Error(Text002_Err, ResponseMessage.HttpStatusCode(), ResponseText); end; ResponseMessage.Content().ReadAs(ResponseStream); UnzipResponse(ResponseStream); end; Business Central has built-in codeunit to work with ZIP files - "Zip Stream Wrapper". I've created my function "UnzipResponse" to read it: local procedure UnzipResponse(ResponseInStream: InStream); var TempNameValueBuffer: Record "Name/Value Buffer" temporary; TempBlob: Record TempBlob temporary; ZipMgt: Codeunit "Zip Stream Wrapper"; ResponseOutStream: OutStream; begin ZipMgt.OpenZipFromStream(ResponseInStream, false); TempNameValueBuffer.Reset(); TempNameValueBuffer.DeleteAll(); ZipMgt.GetEntries(TempNameValueBuffer); if TempNameValueBuffer.FindFirst() then begin Clear(TempBlob); TempBlob.Blob.CreateOutStream(ResponseOutStream, TextEncoding::UTF8); ZipMgt.WriteEntryFromZipToOutStream(TempNameValueBuffer.Name, ResponseOutStream); TempBlob.Blob.CreateInStream(ResponseInStream, TextEncoding::UTF8); ParseXml(ResponseInStream); end; end; I need OpenZipFromStream function to read my Zip from stream to codeunit. I need "Name/Value Buffer" table to read file names inside the archive with GetEntries function. And I need WriteEntryFromZipToOutStream function to read file from archive to stream. After that I could get Xml file from stream and read needed element value: local procedure ParseXml(ResponseInStream: InStream); var XmlDoc: XmlDocument; Node: XmlNode; begin XML := ''; XmlDocument.ReadFrom(ResponseInStream, XmlDoc); if XmlDoc.SelectSingleNode('//' + Element, Node) then XML := Node.AsXmlElement().InnerText(); end; My codeunit also contains some more functions but they are not so important. After App publishing you'll see "Zip Reader" page (or find it with TellMe): You can use your own link and element name, but if you just push "Read Zip" action - you'll get my default values from test example. And result from xml file: I hope this example will help you to manage Zip archives. Attention! It looks like "Zip Stream Wrapper" codeunit works only with *.zip archives. I tested it with *.7z file and it failed.

Forum Post: RE: POS Item Lines in LS Retail

$
0
0
Hi U mean to say Item lines are created from table 99001451 Thanks
Viewing all 64865 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>