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

Which is the fastest statement to run...

$
0
0
We all write code like this all the time so I'm looking for THE definitive answer in terms of performance.

In NAV2017+ which is the fastest statement:

1)
IF GLSetup.GET THEN
IF GLSetup.Fieldname THEN
DoSomething := TRUE;

or

2)
IF (GLSetup.GET) AND (GLSetup.Fieldname) THEN
DoSomething := TRUE;

The 2nd one is my preference and I think it is neater but want the one that executes fastest...

AdvaniaGit / CRS DynamicsNAVSCM - Recommendations

Check which objects need Permission Property based on license

$
0
0
I am using Customer License and when I run one customized Codeunit I receive the message "You do not have permission to modify table 122...".
And this is the right message because the customer license has only indirect Modify permission in Table 122.
I know that I should add this table in Permission Property as it was missing there.
But I would like to know in general, is there any possibility to identify all objects for which I need to populate Permission Property based on license that I upload (without running the object)?

Report - How to Change TextBox Value base on DateField

$
0
0
Hi guys.
This have been buggin me.
A simple thing like changing a TextBox text when a DateField is empty or 0D.
I've tried two things (well not really, i've lost count but here's where i'm at now).

1) On the layout designer:
I've tried to write =IIF(Fields!PromisedDeliveryDate.Value = 0D, "Pre", "POST")
in the TextBox properties Visibility Expression. This makes sense to me. When PromisedDeliveryDate is 0D (empty) then i write PRE in the TextBox if not, i write POST. <-- Does not work as it returns a data type that it not valid (i guess there something about the Date datatyoe and Text here, i dont know).

2) In NAV using C/AL
- Created Variable: gReportTypeLbl Text 50.
- Created gReportTypeLbl in the Report Dataset Designer: DataSource: gReportTypeLbl Name: ReportTypeLbl.
- Added two Text Constants Text004(Order) and Text005(Pre-oder)
- C/AL written:

IF "Sales Header"."Promised Delivery Date" <> 0D THEN BEGIN
gReportTypeLbl := Text004;
END ELSE
gReportTypeLbl := gOrderTitelText;

The problem here is that i cannot populate the Textbox with my variable in the Layout designer (I can find the ReportTypeLbl thou).

Can anyone help? This seems to simple, yet i'm on day 3 now and have yet to make a simple text change if the date field is empty.

Thank You for your time :)

Update Version List property with Powershell

$
0
0
Does anyone have a Powershell script to increase the Version List property?
I would like to increase the number of a specific Module version.
Examples for updating module ABC
NAVW111.00.00.19846,ABC001 > NAVW111.00.00.19846,ABC002
NAVW111.00.00.19846,ABC001,DEF001 > NAVW111.00.00.19846,ABC002,DEF001

visual studio code optionstring

$
0
0
why can not I specify optionstring for table field like that? Whats wrong ?
jq13u3xauyyw.png

DONE.
OptionMember=" ",Payment,All

NAV 2018 extensions deletes data when published form VS code.

$
0
0
Hi,

Every time I publish an extension from visual studio code my data is deleted from the tables that I created earlier.

Anyone else experience the same problem?

Greetings,
Gert-Jan

NAV 2009 R2 Job Queues not starting

$
0
0
hi

I am looking at a some job queues on a 2009 R2 system which refuse to start at the configured date and time.

Yesterday I stopped the NAS service I set the earliest start date and time 30/01/18 01:00 and the start time of 01:00, I then start the NAS service.

I checked today, nothing happened, nothing in the job queue log entries and nothing in the windows event logs.

The user that configured the job to run has super permissions and the password hasn't expired. Sometimes if I restart the NAS service after doing the above a job will randomly start but no other job will run afterwards.

Does anyone have any ideas?

Thanks in advance

Ercan.

NAV 2015: Fill Excel template from NAV

$
0
0
Good afternoon,

I'm trying to design a report to create sales invoices by filling an Excel template provided by the customer.

Does someone know how to manage this filling without affecting Excel formats (fonts, colours, cell sizes,...)?

Thank you.

NAV 2017 Web Service Page with an update

$
0
0
I am trying to expose a web service from NAV 2017 using a Page. This web service needs to return a couple fields from the Sales Header and a couple pieces of calculated data. I created a couple of global variables for the calculated data and added them to the page. I put the code to do the calculation in the OnAfterGetRecord trigger of the Page. If I call the web service with a Read I get back what I would expect. So far so good. Problem is that I also need to update another table with some of the info that I used in the calculation and when I do a MODIFY on that table I get this error: A transaction must be started before changes can be made to the database.

I tried calling the web service using Update and didn't get back the fields I need. I know there must be a way to do this and have searched far and wide but I can't find a working solution. Any ideas would be appreciated.

-Steve

Wild card SSL Certificate

$
0
0
Hello,

Anyone can guide me how to use Wild card certificate for NAV USER PASSWORD setting ,webclient and Odata?

Thank you.

Reinstall outlook/office 365 after removal

$
0
0
Hi

I was working on setting up a new NAV 2018 demo environment and had some problems with the outlook integration (the part where one can see contact, orders etc directly in outlook).

Tried to remove the two Dynamics NAV outlook add-in via the add-in part on the office365 portal. But now I cannot seem to install/find them again. I have searched the add-in pages on the portal and tried to install the outlook integration from the NAV 2018 installation folder but nothing helps.

Can anyone give me a tip on getting them back :)

These are the two that I am missing and cannot find anywhere.
dqjddtiulpnn.png


Anyone using Tradeshift with NAV2017?

$
0
0
I have tried to setup NAV2017CU10 and NAV2017CU14 to a Tradeshift sandbox account, as described here:
https://community.dynamics.com/nav/b/navvideos/archive/2015/12/22/how-do-i-use-document-exchange-service-to-send-amp-receive-invoices-in-microsoft-dynamics-nav

However, I keep getting this error when trying to test my connection:
"Authentication failed because the remote party has closed the transport stream."

When I try using NAV2018RTM and NAV2018CU1 and DevPreview it works fine.

Anyone with an idea on how to solve this issue? (without upgrading to NAV2018)

(My guess is that due to lacking support of TLS1.2 in NAV2017, but I'm unable to find any documentation)

White font color when entering data to nav from Phone or Tablet Client (NAV 2016 / 2017)

$
0
0
Hello,

We have 2 customers using NAV 2016 W1 CU 0 and NAV W1 2017 CU2. As the nature of their processes, they need to do some of their work with phone or tablet client. But when the user tries to enter any data through “Card” pages, the value entered has white font color hence it’s not readable. For example when you enter Item List, you can see all the values as we should. But if the user click +New to create a new Item, let’s say entering Description data, it’s not visible. You can enter the data without problem, but the font color of the entered data is white. There is no problem on WebClient and WebClient/tablet.aspx. Initially, we thought that it was a problem with NAV 2016, we encountered this again on NAV 2017. What kind of information do you need to know in order to give solution or at least some suggestions to solve this issue.

How to show customer comments when introducing an order

$
0
0
Hello.
In NAV2016 we have comment lines and notes, but is there any standard configuration to show/alert about comments when you introduce an order or check anything?
For example, I add a comment to a customer card about to check something always we sell to him. I would like to have an alert when I create a new order for that customer, to avoid forgetting the comments. Is that possible or I have to add a message window or a fatbox for example?

Thanks!

Error on Web Client..

$
0
0
Hello experts,

I m getting below error on web client. On Sales Invoice page I add some action.
Inside that action I written code for sending an email with attachment of PDF document. It working super on windows client, but on web client giving error.

Kind Regards
2zyjh4lmug2t.png

Upgrade NAV2018 Webclient

$
0
0
Hi,

Now that CU1 for NAV2018 has been released, I would like to upgrade all software. Server and RoleTailored client go without a problem, but I run into issues with the webclient. What I used to do is copy all files (except .config files) from the DVD to the directory where the client is installed. Restart IIS, and everything is fine. However, this does not work with NAV2018.

The first thing I found is that navsettings.json should not be copied, as it holds the settings on how to connect to the middletier. I'm not sure about the other .json files, but I did not copy them either, just to be sure. I get into the login screen (I'm using UserName authentication), but then there is the message "An error has occurred". I checked the applicationlog, and for sure, there is an error: It is pointing to the directory c:\inetpub\wwwroot\dynamicsNAV110\wwwroot\resources\extractedresources, and then wants to load the file "1033_11.0.19846.0_NavigationGroup_Home.png". However, that file is nowhere to be found. The file 1033_11.0.19394.0_NavigationGroup_Home.png is available, apparently from the former installation.

I could ofcourse rename all files with some commandline/powershell magic, but I would rather copy the files from the DVD. However, there, I cannot find them. Where are those files, or how can I create them?

Track Table Locking, Navision Userid

$
0
0
Hi everyone,

I'm facing problems with table lockings. How can I determine which User sets the lock table command?

On SQL Server I can only see wich service tier blocks on sql process id. But I have actually no clue which User out of NAV sends the lock table command over service tier. Can some one help?

Thanks in advance
Daniel

NAV2015 - NAV2017: Report not filtering correctly after error.

$
0
0
Hi,

Anybody knows if this is known and fixed or if there's a workaround for this?

Happens to both NAV2015 with cumulative update 21 and NAV2017.

Below steps are done in Version 10.0.156010.0 (NAV 2017 NZ).

1. Created a report with a date variable in request page.

0utyau8xl12m.jpg

2. Run the report with invalid date and a customer no. filter.

t2ugcj81jvkg.jpg

3. Click Preview and "Unsaved changes.." will prompt. Click Yes.

elda3zxy4b24.jpg

4. Report will ignore the Customer No. filter and return all Customer.

tne9m2ikvld0.jpg

Thanks




1099 amounts on a voided check when voided check comes in following year

$
0
0
Hi all,

I believe this is a long-running issue. My user voided a check that was 1099-eligible in 2017. The original check's posting date was in 2016. They then re-issued the check (also in 2017)

When the 1099's for 2017 were printed, the re-issued check was included in the 1099 amounts. But the voided check was not. So the 1099 amount was overstated by the amount of the re-issued check.

The reason that the void-check entry was not included is that in Vendor Ledger Entry, the "Document Type" of a voided check is "Refund" (this is NV2016 - prior versions set the Document Type to <blank>).

The code in CU10202 that determines which entries to evaluate for 1099 amounts does not include Document Type = Refund - it checks only for Document type = Payment. The relevant filter expression in the code below is "VendLedgEntry.SETRANGE("Document Type",VendLedgEntry."Document Type"::Payment);"
GetAppliedVendorEntries(VAR TempAppliedVendLedgEntry : TEMPORARY Record "Vendor Ledger Entry";VendorNo : Code[20];PeriodDate : ARRAY [2] OF Date;UseLCY : Boolean)
TempAppliedVendLedgEntry.RESET;
TempAppliedVendLedgEntry.DELETEALL;

VendLedgEntry.SETCURRENTKEY("Document Type","Vendor No.","Posting Date");
VendLedgEntry.SETRANGE("Document Type",VendLedgEntry."Document Type"::Payment);
VendLedgEntry.SETRANGE("Vendor No.",VendorNo);
VendLedgEntry.SETRANGE("Posting Date",PeriodDate[1],PeriodDate[2]);
IF VendLedgEntry.FINDSET THEN
  REPEAT
    DtldVendLedgEntry.SETCURRENTKEY("Vendor Ledger Entry No.");
    DtldVendLedgEntry.SETRANGE("Vendor Ledger Entry No.",VendLedgEntry."Entry No.");
    DtldVendLedgEntry.SETRANGE("Entry Type",DtldVendLedgEntry."Entry Type"::Application);
    DtldVendLedgEntry.SETRANGE(Unapplied,FALSE);
    IF DtldVendLedgEntry.FINDSET THEN
...

I can change the posting date of the void check to the prior year or change the Document type to Payment and the 1099 report is corrected, but this seems like "non-optimal" ways of making this correction. I agree with any of you who say the posting date of the void should have been in the prior year, but in this case it was an issue of a check lost by the vendor and not reported until months after the prior year had been closed, so that wasn't an available option.

Any thoughts on this?

Ron
Viewing all 10068 articles
Browse latest View live


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