1 of 20 Microsoft ® Business Solutions–Navision ® Development I – C/SIDE Introduction Day 2.

Slides:



Advertisements
Similar presentations
Introducing JavaScript
Advertisements

Sue Wills July Objects The JavaScript language is completely centered around objects, and because of this, it is known as an Object Oriented Programming.
An Introduction to Hashing. By: Sara Kennedy Presented: November 1, 2002.
VBA Modules, Functions, Variables, and Constants
Working with JavaScript. 2 Objectives Introducing JavaScript Inserting JavaScript into a Web Page File Writing Output to the Web Page Working with Variables.
Using Objects and Properties
XP 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial 10.
Javascript II Expressions and Data Types. 2 JavaScript Review programs executed by the web browser programs embedded in a web page using the script element.
Concepts of Database Management Sixth Edition
Introduction to PL/SQL Lecture 0 – Self Study Akhtar Ali.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Microsoft ® Business Solutions–Navision ® 4.0 Development II – C/SIDE Solution Development Day 1.
1 of 6 Microsoft ® Business Solutions–Navision ® Development I – C/SIDE Introduction Day 4.
CORE 2: Information systems and Databases STORAGE & RETRIEVAL 2 : SEARCHING, SELECTING & SORTING.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 25 – Perl and CGI (Common Gateway Interface) Outline 25.1 Introduction 25.2 Perl 25.3 String Processing.
Introduction to Database Systems
Copyright © Curt Hill SQL The Data Definition Language.
1 of 29 Microsoft ® Business Solutions–Navision ® Development I – C/SIDE Introduction – Day 1.
Microsoft ® Business Solutions–Navision ® 4.0 Development II – C/SIDE Solution Development Day 4.
Your Tour Guide is Jim Provensal. What We Will Cover s Introduction to MicroSoft Access u What is a database u What is a “Relational” Database s The Major.
ASP.NET Programming with C# and SQL Server First Edition
Copyright © 2003 Pearson Education, Inc. Slide 8-1 The Web Wizard’s Guide to PHP by David Lash.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor Ms. Arwa.
Concepts of Database Management Seventh Edition
10 May Microsoft Access 2010 Relational databases’ program Part of the Microsoft Office package Administer relational database Update database through.
CHAPTER:14 Simple Queries in SQL Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
JavaScript, Fourth Edition
XP Tutorial 10New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with JavaScript Creating a Programmable Web Page for North Pole.
S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S A computer is a mechanical or electrical device which stores, retrieves,
Introduction to PHP A user navigates in her browser to a page that ends with a.php extension The request is sent to a web server, which directs the request.
Microsoft ® Business Solutions–Navision ® 4.0 Development II - C/SIDE Solution Development Day 2.
Microsoft ® Business Solutions–Navision ® 4.0 Development II - C/SIDE Solution Development Day 5.
Concepts of Database Management Seventh Edition
Chapter 17 Creating a Database.
Using Visual Basic for Applications in Microsoft Project Sean Vogel.
Copyright © 2010 Certification Partners, LLC -- All Rights Reserved Perl Specialist.
CS 1308 Computer Literacy and the Internet
Introduction to LINQ Chapter 11. Introduction Large amounts of data are often stored in a database—an organized collection of data. A database management.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Concepts of Database Management Eighth Edition Chapter 3 The Relational Model 2: SQL.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
XP Tutorial 10New Perspectives on HTML and XHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial.
Copyright © 2003 ProsoftTraining. All rights reserved. Perl Fundamentals.
GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION EFFECTIVE DATABASE DESIGN for BEGINNERS.
1 of 6 Microsoft ® Business Solutions–Navision ® Development I – C/SIDE Introduction Day 3.
Database Management System. DBMS A software package that allows users to create, retrieve and modify databases. A database is a collection of related.
1 of 16 Microsoft ® Business Solutions–Navision ® Development I – C/SIDE Introduction.
CHAPTER 6 LESSON B Creating Custom Forms. Lesson B Objectives  Suppress default system messages  Create alerts and messages to provide system feedback.
SAP DEVELOPMENT BASICS Bohuslav Tesar. TRAINING OVERVIEW Amazing life of ABAP developer ;) SAP introduction ABAP basics ABAP Reporting.
Higher Computing Software Development -So Far- 5/10/10.
05/02/ Records. 205/02/2016 Learning Objectives State: The difference between records and arrays. The difference between records and arrays. How.
Language Find the latest version of this document at
SQL. Originally developed by IBM Standardized in 80’s by ANSI and ISO Language to access relational database and English-like non-procedural Predominant.
XP Tutorial 10New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties.
Chapter 11.  Large amounts of data are often stored in a database—an organized collection of data.  A database management system (DBMS) provides mechanisms.
© 2010 Lawrenceville Press Slide 1 Chapter 5 The Do…Loop Statement  Loop structure that executes a set of statements as long as a condition is true. 
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
Concepts of Database Management, Fifth Edition Chapter 3: The Relational Model 2: SQL.
Chapter 9: Data types and data structures OCR Computing for A Level © Hodder Education 2009.
OCR AS Level F452: Data types and data structures Data types and data structures a. define different data types, eg numeric (integer, real),
Practical Office 2007 Chapter 10
Microsoft Access Illustrated
Chapter 12: Text Processing
Chapter 12: Text Processing
Navision 4.0 Financials Training
ICT Database Lesson 2 Designing a Database.
C# Revision Cards Data types
Introduction to Programming
PHP an introduction.
Presentation transcript:

1 of 20 Microsoft ® Business Solutions–Navision ® Development I – C/SIDE Introduction Day 2

2 of 20 Class Schedule

3 of 20 Course Structure – Day 2 Course Introduction Introduction to Microsoft Navision Development Basic Design Architecture The C/AL Programming Language Data Manipulation Integration Review

4 of 20 Definitions C/AL = Client Application Language C/SIDE = Client/Server Integrated Development Environment

5 of 20 What is it used for? C/SIDE objects already account for: –Data presentation is handled through the form objects and report objects –Data acquisition is mainly handled through form and dataport objects –Data storage and organization is handled by the table objects in conjunction with the built-in DBMS Customize for: –Data manipulation –Control the execution of C/SIDE objects

6 of 20 C/AL Programming – Data Types, Simple vs Complex Simple Data Types: –Data which have only one value and cannot be broken into other values of different types Complex Data Types: –Data that has more than just a value and operators –Can include both member variables and member functions

7 of 20 C/AL Programming – Numeric Data Types DescriptionExample Integer -2,147,483,647 to 2,147,483,647 12; 1000; -100; 0 BigInteger64 bit integer1L; L Decimal18 significant digits12.50; Option Refers to “Option String” property Option := 2 OptionString := Red,Orange,Yellow Value would be Yellow CharSingle character‘b’; ‘C’; ‘3’

8 of 20 C/AL Programming – Other Simple Data Types DescriptionExample Text Alphanumeric string up to 1024 characters ‘Hello’;’127.50’ Code Uppercase alphanumeric string up to 1024 characters ‘HELLO’; ‘127.50’ BooleanTRUE or FALSETRUE; FALSE Date Calendar date from 1/1/0000 to 12/31/ D; 0D TimeTime of day103000T; 0T DateTimeDate and time of day December 31, 2004, 14:20:59.999

9 of 20 C/AL Programming – Complex Data Types BLOB Record Form Codeunit File Dialog Report DateFormula GUID TableFilter RecordRef RecordID KeyRef InStream and OutStream Variant BigText

10 of 20 C/AL Programming – Variables Global vs Local Variables: –Global variables can be accessed anywhere in the object; local variables can only be accessed in a single trigger System Defined Variables: –Variables that are pre-defined within MBS Navision –Rec, xRec, COMPANYNAME, USERID are examples Initialization –Numeric variables initialize to 0 –String variables initialize to the empty string (‘’) –Boolean variables initialize to FALSE –Date, Time, and DateTime initialize to 0D, 0T, 0DT

11 of 20 C/AL Programming – Expressions ItemJnlLine.Amount := -(Amount * (QtyToBeInvoiced / "Qty. to Invoice") - RemAmt); Expression TermSub-expression Operator

12 of 20 C/AL Programming – Logical Operator NOTTrueFalseORTrueFalse ResultFalseTrue FalseTrueFalse ANDTrueFalseXORTrueFalse True FalseTrueFalseTrue False TrueFalse

13 of 20 C/AL Programming – Arrays QuantityArray[10] Identifier = QuantityArray Element = Designated in the “Dimensions” property Index = Reference to a single element (10) Dimensions = Designated in the “Dimensions” property

14 of 20 C/AL Programming – Repetitive Statements SyntaxComments FOR… TO FOR idx := 4 TO 8 DO BEGIN Total := Total + 2.5; GrandTotal := GrandTotal + Total; END; Start and end value evaluated at the beginning FOR… DOWNTO FOR idx := 9 DOWNTO 1 DO BEGIN TotalSales := TotalSales + Sales[idx]; NumberSales := NumberSales + 1; END; Start and end value evaluated at the beginning WHILE… DO WHILE Sales[idx + 1] <> 0 DO BEGIN idx := idx + 1; TotalSales := TotalSales + Sales[idx]; END; Boolean expression evaluated at the beginning REPEAT… UNTIL REPEAT idx := idx + 1; TotalSales := TotalSales + Sales[idx]; UNTIL Sales[idx] = 0; Boolean expression evaluated at the end

15 of 20 C/AL Programming – Essential C/AL Functions Searching… SyntaxDescription GET[Ok :=] Record.GET([Value],...) Retrieves one record based on the primary key, regardless of filters FINDOk := Record.FIND([Which]) Retrieves a record based on filters NEXTSteps := Record.NEXT([Steps]) Steps through records of a table

16 of 20 C/AL Programming – Essential C/AL Functions Sorting & Filtering… SyntaxDescription SETCURRENTKEY [Ok :=] Record.SETCURRENTKEY (Field1, [Field2],...) Used to select a key for a record, which sets the sorting of the records SETRANGERecord.SETRANGE (Field [,FromValue] [.ToValue]) Sets a filter on the table SETFILTERRecord.SETFILTER (Field, String, [Value],...) Sets a filter using a string field

17 of 20 C/AL Programming – Essential C/AL Functions Inserting, Modifying, Deleting… SyntaxDescription INSERT[Ok :=] Record.INSERT( [RunTrigger]) Inserts a record into a table MODIFY[Ok :=] Record.MODIFY( [RunTrigger]) Modifies an existing record in a table DELETE[Ok :=] Record.DELETE( [RunTrigger]) Deletes a record in a table

18 of 20 C/AL Programming – Other Essential C/AL Functions LOCKTABLE CALCFIELDS CALCSUMS FIELDERROR FIELDNAME INIT TESTFIELD VALIDATE

19 of 20 C/AL Programming – Creating Your Own Functions Organization/Simplification Code Re-use Easier to Debug Modifications are Easier Localization Size Reduction

20 of 20 Reports Properties Triggers Properties Controls Properties Triggers Properties Triggers Controls Triggers Data Items Global Var. Request Form Sections Report Description