Tuesday, February 27, 2018

BLOG 1 : LS Retail & MS Dynamics NAVISION 2017


Hi All ,

This blog is all about LS NAV 2017 it will contain various details about LS Retail so be continue

with my blog post. I will try to make it as simple as possible , as per reader I will update my blogs 

and revise my this section of blog.

Q 1. What is LS Retail for NAVISION ?

LS Retail is a Add on provided to MS Dynamics NAV for all version from Nav 3.0 to till present. We

 NAV developers are provided with all the LS Retail objects. Whole customisation if required in LS 

Retail needs to be done in C/AL code itself on our base objects till we are using AL development 

environment. As we know the development environment is going to change soon I will update my 

blog post as required after release.


LS Retail License :

We need LS Retail License which is different from NAV License and this can be taken from below LS Partners in India.

1. Trident Information Systems Pvt. Ltd.

2. Godrej Infotech

3. EBT  



Tutorial 5 Conditional Statement in Dot Net

1. IF Statement

This is the most common operator for NAV developers and we use it with BEGIN END statement for every multiple line conditions. So its very common in Dot Net also.


It is very common for all programming language.

2. ELSE IF Statement

If we use, only if statement then all the conditions will be followed either they are true or not. So for program structure we must use this example.


Note : What is the difference between && and & operator?

&& operator does not check all conditions and if first condition is true then code block will excute.

For E.g.
IF (A && B && C) THEN
{
   Code block execution
}

If A is TRUE then code block will execute 

IF (A & B & C) THEN
{
    Code block execution
}
For this code execution all A B C conditions needs to be completed.
Same is true for || and | OR Operator.

3. SWITCH - CASE Operator

This operation is similar to NAV Switch Case. FOR Example :



Dot Net Tutorial 4 Starting with Array

Why we need Array ?

Instead of defining the multiple variables we can define multiple variables in 1 and we can complete our task easily.

How to define Array in Dot Net ?

Note : In NAV , we only need to provide an integer as dimensions in properties.

Example :


Using this Code we define an array and handle all operation in Array.

Note : Size of Array is constant. We will use collections classes in later blogs where we will can handle this constant size disadvantage in dot net.

How many types of comments are there in Dot Net ?

1. Single Line : It is done with // back Slash.

2. Multiple Line Comment : It is done with /* */.

3. XML Documentation Comment : It is done with triple back slash. /// 

Monday, February 19, 2018

Dotnet Tutorial 3 Operators

Operators

1. Assignment
2. Arithmetic Operators
3. Comparison Operators
4. Conditional Operator
5. Ternary Operator




Default Values of Data Types in Dot Net:

1. Null Value Type : Int , Float , Boolean , structs , enum etc.
2. Reference Value Type : Class,Interface,Delegates,Arrays etc.

Like in NAV , we generally dont care about default values of Variables and simply use CLEAR Function. But in Dotnet you need to be very curious about nullable value because you are going to use database anyhow to store and record the result.

Database concept is containing NULL value so how can we do this in Dotnet because here we need to work with variables like int and it can't contain Null value directly.

See this , how we can simply put ? after variable and can store null also in a variable.


Convertion of One DataType to Another DataType :

Yes , Its seriously required in Dotnet programming. Normally we dont need this functionality too much in NAV programming.

Simply we need to use Convert.Datatype.

NORMALLY WE ONLY USE format IN NAV.

Use Of Parse and TryParse

Parse : This function is used for converting the datatypes but it can give you Error if conversion is not successful.

TryParse : This function is will not throw error and program will run smoothly without stoping the process.





Sunday, February 18, 2018

Dot Net Tutorial 2 Understanding Place Holders

Hi ,

As in MS Dynamics NAV, we have used several times messages with FORMAT FUNCTION.

Same we do in Dot Net using Concatenation and place holders.


Main Data Types in Dot Net :

These datatypes store memory space for further calculation. Same when we define global and local variable in NAV.

1.Boolean
2.String
3.Integer
4.Float

All Datatypes Details are in the below URL :


How to define data Types in C# ?

To define any datatype in C# :

Just write the DATATYPE VARIABLE-NAME.

Below program is writing the minimum and maximum value in integer type variable like the same we can check for other data types.






Dot net Tutorial 1 Start Learning C#

Hi ,

MS Dynamics NAV 2018 has started his wings to compete and use Dotnet. This blog series is for all NAV developers and Technical Consultant.

TOPIC 1 : Structure of Dotnet.


Step 1 : Define Name Space.

Namespaces are used to define classes like system classes and self developers classes.

We can define more than 1 namespace if developers are more than 1.

Step 2 : Define Class.

All code is written in Code called class. This is called Object Oriented Concept.

Step 3 : Design Main Function.

Static as it means non changeable here it means it is only used in current class.
Void is Keyword.
String[] Args is defined argument.

This is a small demonstration for dot net program.

Additional : How to call another function in Main()?