Wednesday, April 26, 2017

Killing an Idle Session Automatically in NAV 2016

Hi All,

This is the requirement of one of our client using MS Dynamics NAV with 20 Users License so they want to kill sessions with idle time of 10 min.

In NAV 2009 R2 we can achieve it via SQL Stored procedure.

But from NAV 2013 we can achieve it via defining time on NAS Application Server.

You may have a look on Screen for Reference but I had faced issue with this solution that

Some users are getting logged out after 10 min. However , this solution has resolved problem upto an Extent if any body has resolved it more perfectly then please do comment.



Thanks.



Monday, April 24, 2017

----Error---------While running the RTC from development Environment in navision 2017.

Hi All,

This is the error which have faced During run the RTC from development in 2013R2.
So, I thought To share the Solution which have done.

--------------------------
Microsoft Dynamics NAV
---------------------------
The company name must be specified if the server and instance are specified.
---------------------------
OK   
Solution:-

1. Open Tools-Option-defined the name under company.



2. Then It will show an error while run the object from development Environment. 
---------------------------
Microsoft Dynamics NAV
---------------------------
The client version does not match the server version. You can only connect to a server with a matching version.
Client version: 7.0.33781.0
Server version: 7.1.35473.0
---------------------------
OK   
3. That's a Common  issue. For this You Can follow  my previous blog's  link as below:

Hope,This information will help Someone.
Thanks for reading my blog:


Saturday, April 22, 2017

How to create new Web Client Instance of NAV using Powershell.

Hi All,

This post is related with creating a new server instance of Web Client using powershell 




New-NAVWebServerInstance YMINNAV -Server localhost -ServerInstance  YMIN -ClientServicesCredentialType Windows -ClientServicesPort 8046 -Company YMIN 




Cumulative Update 05 for Microsoft Dynamics NAV 2017 (Build 16177) April 2017

Hi,



Microsoft have been released CU 05 for Microsoft Dynamics NAV 2017 which includes all the updates about new features.

Remember this cumulative update includes all previous versions so get the latest update as soon.

Note Implementing this cumulative update will require a database upgrade.

According to MSDN,

It may be necessary to update your license after implementing this hotfix to gain access to new objects included in this or a previous cumulative update (this only applies to customer licenses).

For All CU 2017 , released cumulative updates for Microsoft Dynamics NAV 2017.

Download your CU 2017 Update 05











Wednesday, April 19, 2017

How to apply current page filters on Report in NAV 2016

Hi All,

Today I want to share a code which will setup the report to run on the current filters which are applicable on our current page.

For Example :-

I want to run a report which shows me all the vendor ledgers on behalf of the current filters on Journal Template and Journal Batch Name.

To apply the filters I had written the below code on the OnAction trigger of Field :-

PrnGenJournal.RESET;
PrnGenJournal.SETRANGE("Journal Template Name","Journal Template Name");
PrnGenJournal.SETRANGE("Journal Batch Name","Journal Batch Name");
PrnGenJournal.SETRANGE("Document No.","Document No.");
PrnGenJournal.SETRANGE("Posting Date","Posting Date");
REPORT.RUNMODAL(50121, TRUE, TRUE, PrnGenJournal);


You can check the screen Shot as well.






This is just an example to get work faster . I hope you like the post.

Thanks.










Sunday, April 9, 2017

Seven Questions To Ask At Functions Used In Nav.

Hi All,

This post is all about functions which are available in MS Dynamics NAV for Technical customisations.

So the First we have present is :-

1. STRSUBSTNO

Syntax :-

NewString := STRSUBSTNO(String [, Value1] ,...) 

It replaces all the %1 , %2 used in message.

Example:- 

STRSUBSTNO('Your balance is %1',Customer.Balance);

2.STRPOS

Syntax:-

Position := STRPOS(String, SubString)

It provides you the position of the string.

Example:-

Position := STRPOS('Navision','v');

3.STRLEN

Syntax-

Length := STRLEN(String);

It provides the length of the string .

Example :

Length := STRLEN('MSDYNAMICSNAV');

4.INCSTR

Syntax:-

NewString := INCSTR(String)

It increases the integer part in a string.

Example :

NewString := INCSTR('APU12');

Result will be APU13

5. COPYSTR


NewString := COPYSTR(String, Position[, Length])

It copies a part of string into new string.

Example :
Str := COPYSTR('Apurwa', 1, 3);    

6. MAXSTRLEN

MaxLen := MAXSTRLEN(String);

It returns the maximum String Length of the Variable.
Similarly, we have STRLEN to return the Actual String Length of a variable.

7. PADSTR

Str := PADSTR('MS DYNAMICS NAV', 50, 'd'); 

It can be used to select a part of a string on behalf of length and add a string if we want in a part.

8. DELCHR

NewString := DELCHR(String [, Where] [, Which])

To delete a particular character from a string.
You can use where as =,>,<,<>,AND,NOT

9.CONVERTSTR

Str := CONVERTSTR('MS DYnamics Nav', 'D', 'L');

It converts some string to another if present in the orignal string.

10. UPPERCASE & LOWERCASE

It converts a string in Lower and uppercase of orignal string.

11. SELECTSTR 

It retrieves the part of comma separated in a string.

Str := SELECTSTR(2, 'MS ,DYNAMICS ,NAV');

12. DELSTR & INSSTR

It deletes and inserts a part of string in orignal String.

Str := DELSTR('MS DYNAMICS NAV', 3, 8);

Str := INSSTR('MS DYNAMICS NAV', 'Anand', 8);

Thanks for giving your time to read this blog. Please do comment if you want more such post.
these are the system functions provided in MS Dynamics NAV.