Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all 10032 articles
Browse latest View live

XRec Values = rec Values in Modify Trigger

$
0
0
Hi,

it seem i have found a bug with the XRec. Please confirm me or correct me. :D
Vendor.INSERT(TRUE);
Vendor.Name := 'Name 1';
Vendor.MODIFY(TRUE);
After this piece of Code in the Vendor - OnModify - Trigger xRec.Name is equal to Rec.Name. Is that correct or do I something wrong? Should it be so?

I tested in NAV2013 (7.0.36347) and NAV2013R2 (7.10.35473)

Best Regards Jens

JavaScript Error in 365 BC WebClient

$
0
0
Hi!

i'm new in connecting JavaScript and AL, so I hope you can help me:

i wrote a little JavaScript/ HTML CardPage Connection to viaualize some data.

So this is my Code, it's working perfect in my SandBox, but in Production Enviroment i get the Error: Cannot set property 'innerHTML' of null.

So my major question to you is: what is the difference between live enviroment ControlAddin Settings and Sandbox Settings.

HTML:
<!DOCTYPE html>
<html>
    <head>
        <script src="bar.js"></script> 
   </head>
<body>
  <div id="chart" bar chart here</div>

</body>
</html>


startup.js:

(function ($) {
    $(document).ready(function () {
        var url = Microsoft.Dynamics.NAV.GetImageResource("test.html");
        $("#controlAddIn").load(url);
        Microsoft.Dynamics.NAV.InvokeExtensibilityMethod('Ready', '');
    });
})(jQuery);


 var ControlBusinessGroupsMonthly;
 ControlBusinessGroupsMonthly=$("ControlBusinessGroupsMonthly");
 


main.js
function GoBusiness (bus, j, s){

var data = [
  {label: bus[0], 
  value: s [0]
}]

for (var i = 1; i < j; i++){

  var dataCon = [
    {label: bus[i], 
    value: s [i]
  }];
   data= data.concat(dataCon);
}

// Chart Specifications
var targetId = 'chart';
 var canvasWidth = 660;
 var canvasHeight = 500;

var chart = new BarChart(targetId, canvasWidth, canvasHeight, data);
 
}


so, pretty simple, but not working.... Any Idea?
Thanx so much :)

[Solved] Adding Word content from a blob to a Word Report Layout

$
0
0
Hi all,

I have a question not entirely dissimilar to this one.

Background Information
We have the option to store equipment configuration option specs in a Word document and attach it as a blob to that configuration option record. These specs contained text, tables and/or pictures, all in one.

In the "old days" (pre-Word Layout) I tinkered a way to load these specs as Word building blocks (autotext); the user could then add these in the Word report after generation.

Intended Change in Functionality
In the new structure with Word report layouts etc., we would like to use the Word layout to add these blobs to the Word layout, so that when an option is added to the configuration, the specs are automagically loaded and inserted at the placeholder.

For this, I would need to do two things:

1) Extract the content of the stored specs Word document or store only the content of the specs Word document - this is doable;
2) Somehow insert the content at the location of the placeholder.

Question
The question centers around aforementioned action no. 2: how do I insert that content (containing various elements) in that location at runtime?

In designing the Word layout, you need to insert the blob field as a text, RichText, picture, etc.
I can get the blob content in there as text, and even the Word content, but it's still xml and, naturally, text won't abide pictures and tables, so I will need to insert it at the xml level.

The merge process seems to take place in a closed NAV library (Microsoft.Dynamics.Nav.DocumentReport.WordReportManager), which means it's inaccessible code.

Any tips, hints or epiphanies?

Reprinting Cash Receipt

$
0
0
Good day guys,

Today I have face another new issue in NAV. One of the customers paid his service last year. The system accepted the payment and the cash receipt posted. How to I go ahead and reprint the posted cash receipt as I cant see it on the system?

Unapplying Customer Ledger Entries

$
0
0
Hi,

I am trying to unapply a Customer Ledger Entry in a company which has the Additional Reporting Currency populated. However, I am receiving an error "You cannot unapply the entry with the posting date %1, because the exchange rate for the additional reporting currency has been changed."

Basically there is a check in the code which checks the exchange rate for ACY on the application date vs the exchange rate in ACY on the un-application date and if they are different, NAV outputs an error.

Does anyone know the reason for such a check because I check from NAV 2009 to NAV 2018 and it has always been there? Also, why would NAV check this when the ACY is only used in the GL? When we are applying and un-applying Customer Ledger Entries, it does not affect the GL, right?

Thanks and Regards,
Vince

Named User Licence for Partner / Administrator

$
0
0
Hi mibuso community,

could someone please explain me how you manage the user accounts for system administrators and Microsoft Partner access in BC with the named user modell?
As I understood the licencing guide, every physical person needs a separate licence now. So if my Microsoft Partner that supports our BC has a team of 5 support employees I need 5 separate licences for that purpose?? Also we have a team of 5 system administrators that support our NAV system (create users, change permissions, debug sessions, support user questions etc). Does that also mean we need 5 individual accounts for those (even if they maybe do not log in the system for the whole year? How do you handle this?

May i have to add, that we have about 20 separate NAV installations worldwide that we support with our 5 system andministrators, so if we upgrade them all to BC we would need 5 * 20 = 100 licences only for sysadmin.

Thank you for your help,

Kind regards,
Chris

How to Filter Tokens in Microsoft Dynamics 365 Business Central MSDYN365BC

How do i add a file preview

$
0
0
Hello mibuso community,

as the title says, im trying to find out if there is a free Control AddIn that allows someone to preview a file like pdf, docx, txt, etc.. on a page as a factbox.

heres an example:

hmwvvk50rtdj.png

Dealing with Amazon MP Date Formats

$
0
0
An Amazon Marketplace VAT Calculation report no matter in what language you download it, lists dates as "30-Jan-2020 UTC" which cannot possibly be EVALUATED into a NAV 2015 Date or Datetime in a German settings computer. I suppose I have to do string processing with the month names in a CASE statement and all that. Just asking if someone already wrote that function so I can save that effort. I am not the first one to sell stuff on Amazon and needing to import their data into NAV, right? :)

Excel - data connections to BC On-Premises > SQL-Server or NAV-Query + OData or ...?

$
0
0
hi,

we are busy with preparing to switch from NAV 2013 to BC On-Premises.

In our own SQL server database, we set up some SQL server views of the NAV 2013 database today. In many Excel reports, we’ve got access to these views via the Excel data connections and use them for Excel dashboards, pivot tables, power queries and general reports. This has worked very well for many years.

The new table structure introduced with BC (Guid + table extensions attached to tables) makes it difficult for us to keep this procedure. We would then have to work in the SQL server with Alias and Joins to the extension tables.
As an alternative, we could create a NAV query for all externally required tables and call them up in Excel via web services (OData) and process them further. But here the performance seems much worse to us than with the SQL server views.

Which way would you recommend to retrieve data (when using BC On-Premises) performant, securely and without a cloud connection in Excel 2016 (no 365)?

regards
Ralf

How to write JSON file in multiple records?

$
0
0
Hi Experts,
May i know that how to write the AL code to generate output below?
qpo6hxt2arsz.png
Clear(ItemJsonObj);
ItemJsonObj.Add('name', 'Item ABC');
ItemJsonObj.Add('name2', 'Test');
ItemJsonObj.Add('vendor', 'XYZ Ptd');
ItemJsonObj.Add('item_categorty', 'Test');

I don't know to code for multiple variants.

Anyone, could you help me with this?

Thanks.

BR,
bestian

Not able to Scan a barcode in RDLC report

$
0
0
Hi All,

I have designed a report in NAV2018. It used to show the picking lines based on the shipment no and Pick no.
Now our need is to scan the shipment no and Pick no.

Please see the sample screenshot(how my report header look like)

ya7l7pjh68qf.png


I have made the textbox to show the shipment no and pick no separately with barcode fonts. But it's not scannable.

I have tried with below fonts with a size of 36.
1)BC C39 3 to 1 Narrow
2)BC C39 3 to 1 Medium
3)BC C39 3 to 1 Wide
4)barcode 39
5)Code 128

None of them are scannable.

Can you please give me some suggestions/steps to make it scannable.

Thanks in Advance,
Jacob.A

How to import custom report back into OnPrem version

$
0
0
I have exported out the 10075 Sales Order report as report 50100, converted it to AL and published it via Visual Studio Code. It is working as desired. How do I now import it back into the OnPrem dev environment so that it shows up with the rest of my report objects? Thanks...

Dynamics NAV 2017 Office.dll is being randomly deleted on some user's machines

$
0
0
To email out of Dynamics NAV 2017, the Office dll is located in the folder: c:\Windows\assembly\GAC_MSIL\office\15.0.0.0__71e9bce111e9429c. The Office dll is the only file in the folder.

In the last few days, for some, but not all users, the entire 15.0.0.0__71e9bce111e9429c folder is being deleted along with the Office dll, of course. Users are unable to email out of Outlook until someone manually recreates the 15.0.0.0__71e9bce111e9429c folder and copies the Office dll into it. Within the last week, this has happened twice to some of our users and once for others, while most remain unaffected.

Does anyone have any ideas about what could be causing this odd behavior?

Change serial number for reservation entries

$
0
0
Hi everyone!

Could you please recommend me the standard objects and functions, how to change through code the serial number for output of production order, if it is already reserved. If it is not reserved I discovered something like this:

t27yp9qzbsny.png

Thanks

Attach multiple files - Send to Email - Business Central

$
0
0
I'm using NAV Send Email on Sales Order, now how can we attach mulpile files here.
the files stored in Media Type on Document,

Using File Management BLOBExport function able to download file but needs to attach on mail automatically?

Wave 2 BC installation error

$
0
0
Dear Friends,

I am facing problems when I tried to install 365 BC Wave 2 with Server
//
Microsoft Dynamics 365 Business Central Server Components
Fatal error during installation.

The service 'Microsoft Dynamics 365 Business Central Server [BC150]' (MicrosoftDynamicsNavServer$BC150) failed to start. This can be caused by one of several issues. For example, the password for the account that runs the service may be incorrect, or there could be a conflict in port sharing for the port settings for the service, or you have specified that the port for the server should be opened in the Windows firewall even though the Windows firewall is not enabled on the computer. For more information, see the event viewer.
Created on "SERVER"

//

Please can you suggest me as I have tried on two systems simultaneously

warm Regards
Kris

NAV crushes while exporting to Excel

$
0
0
Hi All,

We didn't have this issue before but suddenly we started to have it (maybe because of windows update ? ), we are not sure what the problem is.

Version - Dynamics NAV 2017
Problem - Exporting to Excel by using Ctrl+E . If we try to export from any list page (customer list, item list , assembly bom list, etc), it works without any issue. However, if we try Ctrl+E with Card & Document pages (sales order, purchase order etc) ,NAV crushes and closes.

Do you have any idea what the issue/solution is ?

Thank you

Ignore messages while importing by using SetHideValidationDialog.

$
0
0
Hello I am using NAV 2009R2 and I have an xmlport to import sales invoices and i would like to ignore any messages while I import.

I used SetHideValidationDialog(TRUE) right before validate lines for the sales header and for the sales line but I still get one message while I am importing. I traced the code and it has something to do with salesperson code I believe.

rbmp5qulh7rw.png

Any clues on how to hide this message?
Thank you

FlowFilter with NOT Equal to Sign

$
0
0
Hi,

My system is getting hanged while applying filter with <> Sign on Chart of Account List Page in NAV 2016. Please look into the attached screen shot for details.
l0kaepdd2n2x.png

What is the reason?

Thank you,
navuser1
Viewing all 10032 articles
Browse latest View live


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