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

Forum Post: RE: NAV 2016 - Updating Notes from in Record Link table

$
0
0
Hi Erik - Thanks for your reply. Createoutstream is at the beginning of the function RecordLink.Note.CREATEOUTSTREAM(StreamOutObj); Even I have seen the above code from Microsoft doc page and copying from file to file is not an issue works perfectly and I agree with you that the principle is the same but unfortunately it's not when it comes to copying from a file to the Notes of the record link. There is some character restriction when you copy the text from a file to Notes in the record link table. Thanks again for all your help.

Forum Post: RE: Page design in Microsoft Dynamics NAV 2017

$
0
0
I am very sorry with the way of asking question, Thanks for your reply. Membership Exit table contains No. (code 10), Member No. (code 20 link to vendor table), Member name (text 80), Age (decimal), Gender (Option: Male,Female), NxDx (decimal), nc (decimal). No. Series (Code 10 link to No. series) Membership Exits Page contains two records No. (BA000273, BA000303) Member No. (LA102, LA103) Member Name (Babatunde Ade, Ngozi Oko) Age (40, 40) Gender (Male, Female) NxDx nc NxDx and nc is gotten when the Age is inputted and Gender is choose. I run the above code u corrected but still giving me Female record after I chose Male as the Gender. Thanks.

Forum Post: Data Exchange Framework - Payment export

$
0
0
I managed to setup NAV 2018 to import our banks CSV statement files via a Data Exchange Definition. I am now trying to do the same and create a Data Exchange Definition of type Payment Export. This however is proving much more difficult than the bank statement import. I've narrowed down the minimum Codeunit entries that need to be selected to the following: Mapping Codeunit Reading/Writing Codeunit Ext. Data Handling Codeunit Can I choose these codeunits from excisting ones that are part of NAV 2018 or is this custom code that needs to be written? I am using NAV 2018 W1.

Forum Post: RE: NAV 2016 - Updating Notes from in Record Link table

$
0
0
You are not supposed to use READ / WRITE.

Forum Post: RE: Data Exchange Framework - Payment export

$
0
0
It depends on what you need. If it's a "simple" csv file, then yes. If you need more advanced formatting or file handling, then you would need custom codeunits. So if you have the default codeunits for handling CSV text exports then yes. I'm just afraid they are not in the W1 version.

Forum Post: RE: Page design in Microsoft Dynamics NAV 2017

$
0
0
If you've implemented the code as I suggested, then it will be returning the Male if the member you use is Male. Run it with the debugger, then check what filter is applied to the Gender field on the FINDFIRST line. If you have correctly set the filter to Male, then it will also find the record with Male option. Or something very different is wrong. The function is not complete. If the member no. you give does not exist in the Member/Vendor No., then it will not give any error. Instead it will return the last entry found. So in this case I would suggest to change the code to: PROCEDURE GetCommFactor(AgeAtExit: Integer;MemberGender: Option): Integer; WITH Commutation DO BEGIN SETRANGE(Age,AgeatExit); SETRANGE(Gender,MemberGender); IF FINDFIRST THEN EXIT("Nx/Dx"); MESSAGE(NotImportedError); END; That leaves out one possible error, and simplifies your code even more. If you know the member no., where you call it, then you may also know the gender. Also make sure that the Gender option fields is declared exactly the same in all fields? Option fields doesn't store the option, but only the options number on the row of options.

Forum Post: RE: NAV 2016 - Updating Notes from in Record Link table

$
0
0
Ok, agreed I will not use READ / WRITE, so the below should work correct or let me know if I am missing out something. Since I am writing to the Notes of record link. I have to use the createoutstream on record link. Still does not work. Chops off half of my text. MyFile.OPEN(NewFileName); MyFile.CREATEINSTREAM(StreamInObj); RecordLink.Note.CREATEOUTSTREAM(StreamOutObj); COPYSTREAM(StreamOutObj,StreamInObj); MyFile.CLOSE();

Forum Post: How to set field Type option and CaptionML In AL Language.

$
0
0
Hi All, I have created a Table in AL Language (NAV 2018) ,but how to define option type field and CaptionML type properties. please anyone suggest me.. Thanks

Forum Post: RE: Problem using a WebService from a Web App

$
0
0
Thanks for your answer Erik. The thing, is that i am using this sentence for the credentials: ws.Credentials = new System.Net.NetworkCredential("betea", "xxxxxx", "localhost"); Where "betea" is a Nav user

Forum Post: RE: How to set field Type option and CaptionML In AL Language.

$
0
0
Hi Akkrahul, My I suggest NOT to use CaptionML. This is only used for compatibility purposes. Instead use Labels and translation file. CaptionML will be removed from AL. But otherwise the best example is see the code generated by Txt2al.

Forum Post: RE: Problem using a WebService from a Web App

$
0
0
I hope this is NOT an actual code example? Never hardcode passwords! But I assume that you've already tested that you're able to use web services with your NAV 2018 in general? And is the betea user able to login "normally"?

Blog Post: NAV 2018 CU04 and GDPR

$
0
0
Microsoft seems to be bringing GDPR required features to NAV with quick speed. CU03 brought us a client with a new property on fields "DataClassification". We also got a bunch of table changes that have this property set. That caused the CU03 update being one of the largest CU I have personally ever seen. You can see this property set on Table 91 User Setup field User ID in the screenshot below. I do not write more about CU03 now, you can always read more from Dynamics NAV team blog: https://blogs.msdn.microsoft.com/nav/2018/03/08/classifying-data-in-dynamics-nav/ In CU04, a number of tables have gained a new field; 150 Privacy Blocked. This is undocumented on the CU04 info page https://support.microsoft.com/en-us/help/4100770/cumulative-update-04-for-microsoft-dynamics-nav-2018-build-21441 This field seems to be doing two things. Being set, tt prevents adding the Customer, Vendor, Resource, Salesperson/Purchaser, Contact or Employee to documents, and adds Blocked::All to Customer and Vendor cards. An example of error message can be seen below. So far this functionality is a good start for GDPR requirements, but I expect to see more changes related to this in following CU's. For example functionality to prevent a non authorized user from opening a Privacy Blocked card is something I would like to see. Also I am looking forward to see a report or functionality that quickly collects or deletes all data that is related to any single privacy protected entity. This is, after all, one of the main requirements in GDPR.

Forum Post: RE: NAV 2016 - Updating Notes from in Record Link table

$
0
0
Hi Erik - Really strange, I have tried just by creating a single line text in a file without any controls or break and in the record link I have INSERT command and like I said it's creating the text in the Notes of record link but not the entire text, if your text has 290 characters, In notes it just shows 140 characters of the text. Having worked with NAV for the last 26 years, this is the first time NAV has stumped me. I have worked with Nav Since Avista till today's version and I have resolved any issues but this one issue just beats me.

Forum Post: RE: Problem using a WebService from a Web App

$
0
0
Hi Erik, I think I've solved the issue. The thing was that I should use an other definition of the credentials method, becasue of the authentication mode. For the new server, it was changed to NavuserPassword, so, the user I was introducing, didn't have a domain, so I only need to pass 2 parameters to the NetworkCredential method. Now it seems it's working, at least I don't have the autorization error. I will change all the references of the development, and see if it works. What do you mean with harcoding password? In the development? What is your advise? Thank you again!

Forum Post: RE: NAV 2016 - Updating Notes from in Record Link table

$
0
0
I've never seen this before either. I have worked with the notes before, and never had a problem. Not via a file import but via a function where I just insert the text: PROCEDURE SetText(Notification : Text[1000];VAR RecordLink : Record "Record Link") c1 := 13; lf[1] := c1; s := Notification; SystemUTF8Encoder := SystemUTF8Encoder.UTF8Encoding; SystemByteArray := SystemUTF8Encoder.GetBytes(s); RecordLink.Note.CREATEOUTSTREAM(OStr); x := SystemByteArray.Length DIV 128; IF x > 1 THEN y := SystemByteArray.Length - 128 * (x - 1) ELSE y := SystemByteArray.Length; c1 := y; OStr.WRITE(c1); IF x > 0 THEN BEGIN c2 := x; OStr.WRITE(c2); END; FOR i := 0 TO SystemByteArray.Length - 1 DO BEGIN c1 := SystemByteArray.GetValue(i); OStr.WRITE(c1); END; As you see, then I'm also setting some dotnet vars (mscorlib/System.Text.UTF8Encoding and mscorlib/System.Array). This is something I did for NAV 2009, but assume it works in NAV 2016.

Forum Post: RE: Problem using a WebService from a Web App

$
0
0
Great it worked. So the error message was correct, a permission problem. I mean that hardcoding a password into any kind of source code or scripts should be = jail time! And in you case, even if you did change it to "xxxxx" then the password you wrote is most likely already cached by search engines etc. - so better change, especially if used else where. Passwords should only exist in encrypted fields. Even if the user is completely handicapped permission wise.

Forum Post: RE: Problem using a WebService from a Web App

$
0
0
O, understtod. I was quite desperate with this issue, I spent hours on it, so I didn't realise that. Thank you again!!!

Forum Post: RE: NAV 2016 - Updating Notes from in Record Link table

$
0
0
Hi Erik - This function Settext is in NAV 2016 Codeunit 454 Job Queue - Send Notification . I initially took the same function and tried and was so confident that it will work and as I said it did work but when it chopped of the notes that's when I realized something is not right, then like you suggested I tried COPYSTREAM and I tried READ, WRITE and all sort of functions but no luck. When you debug you will see that the entire string in the instream but as soon as it writes it into Notes of Recordlink that's where it fails. I am not sure if there is some kind of restriction/limit in Notes to update values from file, really..really strange and I am working on this issue and will update the forum if I find a solution. Thanks Erik for all your help.

Forum Post: RE: NAV 2016 - Updating Notes from in Record Link table

$
0
0
Well yes it may come from there. I knew I would never have named variable myself that way. But try with it, even if you have to read your file into a text string first. Not really sure why it's so complex to put data in there, but it's obvious not a normal blob field.

Forum Post: RE: Page design in Microsoft Dynamics NAV 2017

$
0
0
Table1 : Matrix table, Gender (Option: Male,Female), Age (integer). Table2 : Exits table, Gender (Option:Male,Female), Age (Decimal) That are how the gender was defined in the above tables, I use AgeAtExit as Decimal bcos Table2. The output result is Male Data when I chose Female Gender. Thanks PROCEDURE GetCommFactor(AgeAtExit: Decimal;MemberGender: Option): Decimal; WITH Commutation DO BEGIN SETRANGE(Age,AgeatExit); SETRANGE(Gender,MemberGender); IF FINDFIRST THEN EXIT("Nx/Dx"); MESSAGE(NotImportedError); END;
Viewing all 11285 articles
Browse latest View live