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

Ambigouos call when using json

$
0
0
For a solution I have "borrowed" heavily from kaufmann on how to extract values from json.
For the modifications inside NAV (11.0.21441) everything has worked like a charm. Now the customer wants to upgrade, and we want to go full on extensions this time. However now the code is failing due to an ambigouos call when when using for instance DateTime. Does anybody know how I can restructure the code so that is could work again in 14.0.32615?


procedure GetValueAsDateTime(JObject: DotNet MyJObject; PropertyName: Text) ReturnValue: DateTime
var
DotNetDateTime: DotNet MyDateTime; //Defined in the dotnet.al file
CultureInfo: DotNet MyCultureInfo; //Not really neccesary here, but kept since it is in the original code
begin
DotNetDateTime := JObject.GetValue(PropertyName).ToObject(GETDOTNETTYPE(DotNetDateTime));
ReturnValue := DotNetDateTime;
end;


For the various other places in the code where it says DotNetBoolean.Parse(JObject.GetValue(PropertyName).ToString); it works fine, but for the .ToObject I am now getting an error "The call is ambiguous between the following methods or properties: 'ToObject(DotNet "Newtonsoft.Json.JsonSerializer")' and 'ToObject(DotNet "System.Type")'AL(AL0196)"
I can propably get it to work using the ToString, and then evaluating it. But I would prefer to get the correct type straight away. Please advice.

Need to know the correct use of //AP & ASP

$
0
0
Sorry if this is not the right place for this, first time asking on here.

We currently have a client with the request of having a UCC on every inner pack item on an order. The only way we know to do this is to //cpp every item creating many packages. What we've been doing afterwards is opening the packages and selecting manual shipment on the package page to prevent API call outs for a tracking number from the carrier and then creating a master package to add them to by using //ASP to add all of these packages into one. Is there a correct way to do this that would not require someone to //cpp every item to obtain a UCC instead of doing that then re-opening packages and adding to a master afterwards?

Running on Nav 2016 with lanham e-ship

Has anyone done a succesful BC online implementation?

$
0
0
Has anyone done a +20 user Business Central online implementation that went well? I'm very concerned about going down the online path due to the lack of control with the technology and inability to modify source code.

No. Of Copies report?

$
0
0
i want to implement no of copies as original,duplicate,triplicate,extra copy, i have seen standered report 206 for reference but i unable to understand how to implement in my report can anyone tell me how to implement ?

untill now what i understand is use integer table and write code on pre,onafter trigger
what i don't under stand is how this reflect/design ssrs report layout to get multiple copies.how to design layout?

how does Posting preview populate

$
0
0
Hi Does anyone here knows how does the
G/L Row in Posting Preview of Cash Receipt Journal Populate?

rwv53hi97wd0.png

thanks's in Advance,
I'm using Dynamics NAV 2018 BTW.

Average Cost Unit Calc

$
0
0
Hi all,

I would like to get some help understanding this case.

I have a product that the unit cost method is average, and it's around 0,20€. We had made a buy that is not invoiced yet(image1) and the cost raised.
j5jrm68tlvqz.jpg



Then i realised that that purchase as also charges associated. I extracted all the movements to excel, sort by valudation date, and then sum the cost amount+ cost expected, also sum that cost acumulated and divided by the quantity acumulated.

wr6guhytttub.jpg


As you can see the GCQ19/01838 is the purchase receipt not invoiced and the GCQ19/01849 are the charges associated to the purchase receipt.

And it inflates the cost.



What i've done in a test DB i invoiced the purchase receipt and the price went right, and i guess it made the adjustements to the sales.
er6tp7m2sj52.jpg



But we have a problem here. We can only invoice when the document from the supplier arrives. But there are sales going on.

How can i fix this? Or at least for the user/director see and understands that the price will get right after it get invoiced.

How can i explain this? Or maybe a trick in code to fix this?

If is it possible to get all column name on the page object

$
0
0
Hi buddies:

If is it possible to get all column name on the page object?

Business Central - Doubt with the combination with c/al

$
0
0
Hello everyone,

I have custom code in C/AL, and i am developming a extension with al (Visual Code). But, the custom code, for example, a custom field, don´t appear in visual code.


Is it not possible to access the custom code from an extension?

Thank you.

Job queue - time

$
0
0
I've a job that has to be done almost everyday but the problem is when it's done the next schedule avance 1 hour. I've red that if I change the timezone in the instance that could be solve but it gives me an error.

Keys

$
0
0
Hi,

Can I create a key with a mixture of base fields and tableextension fields in AL?

Getting old approval requests with new one in navision 2017

$
0
0
If I send a request for approval then I'm getting this request combined with old requests.


9fe8vsfob9ob.png

Visual studio nested tables

$
0
0
Hi all, I am trying to create a report in NAV 2013 for our shipments which shows the items and then the lot numbers that were shipped. I've created the report but I cannot figure out how to add a second table on the report to show the lot numbers. Does anyone have documentation or examples of this?

How do you debug this?

$
0
0
Why would you write code like this and how do you debug this?
IF CalculatedCorrectly2 AND
         ((RFStatEntryTotal2."Outstanding Quantity" <> 0) OR
           RFEmployeeSetup."Ignore Action Outst. Qty of 0") AND
         ((RFStatEntryTotal2."Available Volume" >=
             OutboundWhseRequestFilter."Minimum Avail. Volume") AND
          ((RFStatEntryTotal2."Available Volume" <=
             OutboundWhseRequestFilter."Maximum Avail. Volume") OR
           (OutboundWhseRequestFilter."Maximum Avail. Volume" = 0))) AND
         ((RFStatEntryTotal2."Available Gross Weight" >=
             OutboundWhseRequestFilter."Minimum Avail. Gross Weight") AND
          ((RFStatEntryTotal2."Available Gross Weight" <=
             OutboundWhseRequestFilter."Minimum Avail. Gross Weight") OR
           (OutboundWhseRequestFilter."Maximum Avail. Gross Weight" = 0))) AND
         ((RFStatEntryTotal2."Net Weight (Base)" >=
             OutboundWhseRequestFilter."Minimum Avail. Net Weight") AND
          ((RFStatEntryTotal2."Net Weight (Base)" <=
             OutboundWhseRequestFilter."Maximum Avail. Net Weight") OR
           (OutboundWhseRequestFilter."Maximum Avail. Net Weight" = 0))) AND
         ((RFStatEntryTotal2."Available Qty. (Base)" >=
             OutboundWhseRequestFilter."Minimum Avail. Qty. (Base)") AND
          ((RFStatEntryTotal2."Available Qty. (Base)" <=
             OutboundWhseRequestFilter."Maximum Avail. Qty. (Base)") OR
           (OutboundWhseRequestFilter."Maximum Avail. Qty. (Base)" = 0))) AND
         ((RFStatEntryTotal2."Available Amount" >=
             OutboundWhseRequestFilter."Minimum Avail. Amount") AND
          ((RFStatEntryTotal2."Available Amount" <=
             OutboundWhseRequestFilter."Maximum Avail. Amount") OR
           (OutboundWhseRequestFilter."Maximum Avail. Amount" = 0))) AND
         ((RFStatEntryTotal2."Outstanding No. of Lines" >=
             OutboundWhseRequestFilter."Minimum Outst. No. of Lines") AND
          ((RFStatEntryTotal2."Outstanding No. of Lines" <=
             OutboundWhseRequestFilter."Maximum Outst. No. of Lines") OR
           (OutboundWhseRequestFilter."Maximum Outst. No. of Lines" = 0))) AND
         (((ValueType = 0) AND (RFStatEntryTotal2."Outstanding Quantity" <> 0)) OR
          ((ValueType = 1) AND (RFStatEntryTotal2."Available Quantity" <> 0)) OR
          ((ValueType = 2) AND (RFStatEntryTotal2."Total Available Quantity" <> 0)) OR
          ((ValueType = 3) AND
           (RFStatEntryTotal2."Outstanding Quantity" = RFStatEntryTotal2."Available Quantity")) OR
          ((ValueType = 4) AND
           (RFStatEntryTotal2."Total Available Quantity" > RFStatEntryTotal2."Available Quantity"))) OR
          ((ValueType = 5) AND (RFStatEntryTotal2."Inv. Reserved Quantity" <> 0)) OR
          ((ValueType = 6) AND
           (RFStatEntryTotal2."Outstanding Quantity" <> 0) AND
           (RFStatEntryTotal2.Quantity = RFStatEntryTotal2."Outstanding Quantity")) OR
          ((ValueType = 7) AND
           (RFStatEntryTotal2."Outstanding Quantity" <> 0) AND
           (WarehouseRequestTmp."Shipment Date" < WORKDATE)) OR
          ((ValueType = 8) AND
           (RFStatEntryTotal2."ATO Quantity" <> 0)) OR
          ((ValueType = 10) AND
           (RFStatEntryTotal2."Outstanding No. of Lines" = 1) AND
           (RFStatEntryTotal2."Outstanding Quantity" <> 0)) OR
          ((ValueType = 11) AND
           (RFStatEntryTotal2."Outstanding No. of Lines" = 1) AND
           (RFStatEntryTotal2."Available Quantity" <> 0)) OR
          ((ValueType = 12) AND
           (RFStatEntryTotal2."Outstanding No. of Lines" = 1) AND
           (RFStatEntryTotal2."Total Available Quantity" <> 0)) OR
          ((ValueType = 13) AND
           (RFStatEntryTotal2."Outstanding No. of Lines" = 1) AND
           (RFStatEntryTotal2."Outstanding Quantity" = RFStatEntryTotal2."Available Quantity")) OR
          ((ValueType = 14) AND
           (RFStatEntryTotal2."Outstanding No. of Lines" = 1) AND
           (RFStatEntryTotal2."Total Available Quantity" > RFStatEntryTotal2."Available Quantity")) OR
          ((ValueType = 15) AND
           (RFStatEntryTotal2."Outstanding No. of Lines" = 1) AND
           (RFStatEntryTotal2."Inv. Reserved Quantity" <> 0)) OR
          ((ValueType = 16) AND
           (RFStatEntryTotal2."Outstanding No. of Lines" = 1) AND
           (RFStatEntryTotal2."Outstanding Quantity" <> 0) AND
           (RFStatEntryTotal2.Quantity = RFStatEntryTotal2."Outstanding Quantity")) OR
          ((ValueType = 17) AND
           (RFStatEntryTotal2."Outstanding No. of Lines" = 1) AND
           (RFStatEntryTotal2."Outstanding Quantity" <> 0) AND
           (WarehouseRequestTmp."Shipment Date" < WORKDATE)) OR
          ((ValueType = 18) AND
           (RFStatEntryTotal2."Outstanding No. of Lines" = 1) AND
           (RFStatEntryTotal2."ATO Quantity" <> 0))
      THEN BEGIN

How to return string over 1028 max text data type length?

$
0
0
Hi All:

I create a codeunit try to return xml format data and it will over 1028 max text datatype length . But codeunit return value datatype not allow bigtext. How could I do it ?

Work Center Calandar graphic design

$
0
0
Hi,
someone has already made a graphic representation of the work center calendar.

Say one chooses a work center and can then select the individual days (such as in Outlook) and enter the layers or times.

Best regards,
stony

Approve the record if any approver approves it

$
0
0
I'm using nav.

IF any approver in the group approves the record then the status for all the remaining records in the approval entry table changes to approved state.

I tried this:

I gave the two users(u1,u2) same sequence number(1). then the approval request goes to two users, If i approve the record with user1 then his entries status in approval entry is approved, but for user2 it is still open.


please give me suggestion

Upgrade Dynamics NAV 2018 to Business central on premise

$
0
0
Hi to All !!

I have a question about that subject. My customer has different customizations of course I already allowed for where Microsoft was going to go and I prepared to adjust this code to the new shape to developing.

Now I have an extension with their customizations but... for example in the lastest upgrades, I had to convert the database to the newer version, I understand in this case it is the same, but what I do with the fields or tables 50000?? after to do sync etc..., must I use the rapidstart to move from old customization table to new table (with fields is it the same)??


somebody can I help me??
Best regards!

What is Connection string 'connectionString' MXChip IoT DevKit Simulator

$
0
0
I want understand how to set MXChip IoT DevKit Simulator connection string from Dynamics 365 on-promise site

AutoFormatExpression, AutoFormatType vs DecimalPlaces

$
0
0
Hi, I want to know what is the difference between these two? And what example situations can AutoFormatExpression, AutoFormatType be applied?

Delete change log entries

$
0
0
Hi Readers,

Currently I am using NAV 2016. I have checked change log entries and found 176873500 lines. How can delete all log entries?

Please suggest....



Regards,

Viewing all 10062 articles
Browse latest View live


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