OP04 What is C/AL and Why Should I Care?

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Preface Demo A Quick Thank You How Did We Do It?
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Reprint Outstanding Transactions Report © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Co- location Mass Market Managed Hosting ISV Hosting.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Connect with life Connect with life
NEXT: Overview – Sharing skills & code.
demo Receive Inventory Export Parse and Normalize.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
announcing Dev Manager Do I understand what we’ve built? Developer Can I bet on using this shared component? Testers What’s changed since I last.
Ian Ellison-Taylor General Manager Microsoft Corporation PC27.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

MIX 09 4/17/2018 4:41 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Microsoft Dynamics NAV 2018 – what’s new
Microsoft Dynamics NAV 2017
Возможности Excel 2010, о которых следует знать
Title of Presentation 11/22/2018 3:34 PM
Baseline: How Are We Doing Now?
Title of Presentation 12/2/2018 3:48 PM
1/3/2019 1:21 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
28 days.
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
4/27/17, Bell #8 What amount of net pay has been earned this period?
Windows 8 Security Internals
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
From Start to REST in 60 Minutes (DEV323)
WINDOWS AZURE A LAP AROUND PLATFORM THE Steve Marx
PENSACOLA ENERGY WORK PLAN OCTOBER 10, 2016
Title of Presentation 5/12/ :53 PM
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
5/24/2019 6:44 PM 1/8/18 Bell #10 In a world governed by the gods, is there any room for human will? Do human choices make a difference? EXPLAIN © 2007.
日本初公開!? Vista の新機能を実演 とっちゃん わんくま同盟 7/23/2019 9:09 AM
Title of Presentation 7/24/2019 8:53 PM
WCL425 App Compat for Nerds Chris Jackson.
Presentation transcript:

OP04 What is C/AL and Why Should I Care? Luc van Vugt, MVP – fluxxus.nl

Your presenter Luc van Vugt, Owner fluxxus.nl Contact 17 years on Dynamics NAV 6 years Blogger - Van Vugt’s dynamiXs 5 years Microsoft MVP Dynamics NAV 5 years Co-Founder and Board Member Dutch Dynamics Community 1 year Member Credentialing Committee AoDP (DynamicsPro) 1 year NAV Skills Contact lvanvugt@fluxxus.nl @lucvanvugt

Session objectives Help you answer the following questions When is C/AL needed? What can C/AL do? What have these developers been programming?

Get to level with dev experts in 45 minutes Session objectives Get to level with dev experts in 45 minutes ;-) Help you answer the following questions When is C/AL needed? What can C/AL do? What have these developers been programming? I hope :-$ This is normally a one day course!

AgenDA What is C/AL C/AL Building Blocks Readable C/AL 5

What is C/AL

Parlez-vous français? Qui?

Sprechen Sie Deutsch? Wer?

Spreekt u Nederlands? Wie?

Do you speak English? Who?

Do you speak C/AL? ?????

IF MyLanguage.GET('C/AL') THEN MESSAGE('I speak C/AL')

IF MyLanguage.GET('C/AL') THEN MESSAGE('I speak C/AL') ELSE ERROR('No speak no C/AL')

What is … C/AL

What is … ???????

What is … C/AL

Client / Application Language What is … Client / Application Language

Client / Application Language What is C/AL Client / Application Language

What is C/AL Programming language to … … make NAV do what cannot be achieved by setting properties.

What is C/AL In other words … … to implement business logic that cannot be achieved by setting properties.

C/AL Building Blocks

Long-Tall Luc C/AL Building Blocks Rocking-Chair Reading Lessons by … TAB18 - Payment Method Code field TAB23 – Name field Let’s not be sissies and just open this 150 pager COD80 (Sales-Post) and see what we can make out of that.

Let’s Read NAV Long-Tall Luc C/AL Building Blocks Rocking-Chair Reading Lessons by … Let’s Read NAV Long-Tall Luc Let’s not be sissies and just open this 150 pager COD80 (Sales-Post) and see what we can make out of that.

C/AL Building Blocks IF … THEN NOT COMMENTS BEGIN … END REPEAT … UNTIL OR / AND WITH … DO EXIT

:= NEXT FIND FINDSET GET ; C/AL Building Blocks IF … THEN NOT COMMENTS BEGIN … END REPEAT … UNTIL GET ; OR / AND FINDSET WITH … DO EXIT

MAKE C/AL Readable

Nerdy Code Readable Code Microsoft Dynamics 6/23/2018 © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Development Task Create a script to make an invoice for customer number 10000 (The Cannon Group PLC) and item number 70000 (Side Panel)

Test if the Customer is Blocked Create a New Document Test if the Customer is Blocked Read Customer 10000 Save the Document to the Database Create a Sales Line Test if the Item is Blocked Select Item 70000 Save Line to Database Open the Invoice Page

Readable Code I understand the steps required in this code, and the documentation is in there, right where I need it!

Nerdy Code Phew!!!

Natural Language Programming In C/AL! Natural Language Programming Example in NAV: Codeunit 99000854 - Inventory Profile Offsetting

Q & A

Conclusion

Conclusion When is C/AL needed? What can C/AL do? What have these developers been programming?

TAKE AWAY C/AL Since we left the classic client behind actually we no longer have C/AL (Client Application Language) , but AL. It’s primarily run on the service tier.

TAKE AWAY AL

Thank you for attending Contact information Luc van Vugt, fluxxus.nl lvanvugt@fluxxus.nl @lucvanvugt

Thank you for attending Reminders: Please download the session slides from the NAVUG Congress Community or through the Congress App Please visit our Dynamics NAV help desk Monday evening in the Expo Please complete your session survey in the Congress App