MVC in AX2012 Rama Sridhar Ramasridhar_rr@hotmail.com http://ramasridhar.wordpress.com.

Slides:



Advertisements
Similar presentations
DIGIDOC A web based tool to Manage Documents. System Overview DigiDoc is a web-based customizable, integrated solution for Business Process Management.
Advertisements

Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
Windows Communication Foundation and Web Services.
Microsoft Focus & Expertise We have a world-class team of Microsoft experts that can make any other platform integrate better with an existing enterprise.
Using Microsoft SharePoint to Develop Workflow and Business Process Automation Ted Perrotte National Practice Manager, Quilogy, Microsoft Office SharePoint.
UNIT-V The MVC architecture and Struts Framework.
Convergence /20/2017 © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Collaborative Systems Developing Collaborative Systems with a Reuse Driven Process.
Introduction to Object-oriented Programming CSIS 3701: Advanced Object Oriented Programming.
Introduction to the Enterprise Library. Sounds familiar? Writing a component to encapsulate data access Building a component that allows you to log errors.
The Design Discipline.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
MT311 Java Application Development and Programming Languages Li Tak Sing( 李德成 )
Microsoft Visual Basic 2008 CHAPTER ELEVEN Multiple Classes and Inheritance.
Virtual techdays INDIA │ Nov 2010 Developing Office Biz Application using WPF on Windows 7 Sarang Datye │ Sr. Consultant, Microsoft Sridhar Poduri.
Todd Kitta  Covenant Technology Partners  Professional Windows Workflow Foundation.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Application Fundamentals Microsoft Dynamics TM AX 4.0 Michael Fruergaard Pontoppidan Partner Productivity – Microsoft Dynamics AX TM Microsoft Corporation.
JSF Introduction Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
1 Hammad Khan. COURSE CONTENTS.NET Framework And C# SQL Server 2008 ADO.NET LINQ ASP.NET Dynamics Data ASP.NET MVC framework 2 Advance C# Concepts Windows.
Visual Studio 2008 and.NET 3.5 provide seamless support for all of the protocols and techniques popular in Web 2.0-style applications. Visual Studio.
Alcatel-Lucent CDC Workshop, Coaching & Knowledge Transfer Architecture.
Dynamics AX TAP Knowledge Transfer Wave 2. Dynamics™ AX Business Connector Lachlan Cash Program Manager Microsoft Corporation Karl Tolgu Program Manager.
University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 system architecture 1 after designing to meet functional requirements, design the system.
Microsoft Visual Basic 2008 CHAPTER ELEVEN Multiple Classes and Inheritance.
Separating the Interface from the Engine: Creating Custom Add-in Tasks for SAS Enterprise Guide ® Peter Eberhardt Fernwood Consulting Group Inc.
Java EE Patterns Dan Bugariu.  What is Java EE ?  What is a Pattern ?
Presented by Vishy Grandhi.  Architecture (Week 1) ◦ Development Environments ◦ Model driven architecture ◦ Licensing and configuration  AOT (Week 2)
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
Practical Workflow Services Peter Goodman. Agenda  Why Workflow?  The Workflow Runtime  Workflow Services  Windows Server AppFabric  Demo.
Presented by Syed Baber Development Lead Mazik Global.
Presentation Title Subtitle DSpace UI Prototype 7 Spring, Angular.js, and the DSpace REST API.
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
Spaso Lazarević Microsoft MVP Nova banka ad Banja Luka Building business application using Visual Studio 2013 LightSwitch.
High degree of user interaction Interactive Systems: Model View Controller Presentation-abstraction-control.
By Aleksey Stukalov How to Develop Highly Customizable Off-the-Shelf Software.
Introduction The concept of a web framework originates from the basic idea that every web application obtains its foundations from a similar set of guidelines.
Worklist Manager Service Engine (WLMSE)
The Holmes Platform and Applications
Windows Communication Foundation and Web Services
Introduction to Oracle Forms Developer and Oracle Forms Services
Building Enterprise Applications Using Visual Studio®
Running a Forms Developer Application
Working in the Forms Developer Environment
MVC Architecture, Symfony Framework for PHP Web Apps
Introduction to Oracle Forms Developer and Oracle Forms Services
MPCS – Advanced java Programming
Ben Riga 02 | Basics of View Models Ben Riga
Business Connectivity Services in SharePoint 2010 and Office 2010
Observer Design Pattern
Introduction to Oracle Forms Developer and Oracle Forms Services
Distribution and components
Windows Communication Foundation and Web Services
iVend Retail Extensibility
Visual Studio 2005 “Personalized productivity”
Inventory of Distributed Computing Concepts and Web services
Inventory of Distributed Computing Concepts
An Introduction to Software Architecture
Visual Studio 2005 Tools For Office: Creating A Multi-tier Application
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
SAMANVITHA RAMAYANAM 18TH FEBRUARY 2010 CPE 691
Introduction to VSTS Database Professional
Basic OOP Concepts and Terms
Louis DeJardin | Software Developer, Microsoft
Jim Fawcett CSE681 – SW Modeling & Analysis Fall 2018
Server & Tools Business
GoF Patterns Ch. 26.
Presentation transcript:

MVC in AX2012 Rama Sridhar Ramasridhar_rr@hotmail.com http://ramasridhar.wordpress.com

Agenda What is MVC? Overview on BOF BOF in Services BOF in Reports Q&A

What is MVC? Is MVC an architecture or design pattern?

Pros and cons of MVC Pros: Loosely coupled Clear separation of UI, Data and Business logic Test Driven Code Reuse Hide Data Access Adaptable to change cons: Duplicated code between common views Not a true n-tier architecture (triangulation) Not a true publisher – subscriber model

Business Operation Framework The Business Operation Framework service is one of the system services exposed by Microsoft Dynamics AX and that adheres to the Windows Communication Foundation (WCF) protocols and standards. Following are the features of BOF: Allows menu-driven execution or batch execution of services. Call services in synchronous or asynchronous mode. Automatically creates a customizable UI based on the data contract. Encapsulates code to operate on the appropriate tier (prompting on the client tier, and business logic on the server tier).

Components DataContract Controller Service class UIBuilder

Example

Sequence

BOF in Services Methods Diaglog() GetFromDialog() PutToDialog() Prompt() Run() Main() Member variables pack/unpack methods

BOF Service Demo

How to create a BOF service? To create a Business Operation Framework service, the following steps must be performed: Create a data contract class Identify the parameters passed to the service Register the class as a Business Operation Framework service Optionally customize the automatically generated UI for the class

What are the ways to customize UI? Attribute based customizations. Attributes are SysOperationGroupAttribute, SysOperationGroupMemberAttribute, SysOperationDisplayOrderAttribute, SysOperationLabelAttribute, SysOperationHelpTextAttribute etc. Code based customizations. Using UIBuilder class. For example check CustRecurrenceInvoiceUIBuilder Class.

DataContract Validate DataContract at design time To perform validation on contract class, you need to implement SysOperationValidatable Interface and override the validate method. For example of this, check CustRecurrenceInvoiceDataContract class. Modify DataContract at run time To modify the contract at runtime, we need to create a controller class extend from SysOperationServiceController class. Get the contract object by calling the method getDataContractObject from controller class instance and then call the corresponding parm methods of contract class, passing the desired values.

Calling a BOF service A Business Operation Framework service can be called in four ways: As a menu item Create an Action Menu Item Set the ObjectType to Class Set the Object to SysOperationServiceController Set the Parameters to <ServiceClassName>.<MethodName> As a batch process Create a job and create the service method in that job Synchronously To run the service synchronously, edit the menu item, set EnumTypeParameter=SysOperationExecutionMode; EnumParameter=Synchronous Asynchronously To run the service synchronously, edit the menu item, set EnumTypeParameter=SysOperationExecutionMode; EnumParameter=ASynchronous

BOF in Reports AX 2012 report programming model is build on SysOperation Framework In AX2012, we have 2 options to develop reports Modeled solution aka query based Code based solution aka Report data provider based

View: SrsReportDataContractUIBuilder Model: SrsReportDataContract/SrsReportDataProviderBase Controller: SrsReportRunController