Book Image

Ext JS Data-driven Application Design

By : Kazuhiro Kotsutsumi
Book Image

Ext JS Data-driven Application Design

By: Kazuhiro Kotsutsumi

Overview of this book

Sencha Ext JS is an industry leader for business-standard web application development. Ext JS is a leading JavaScript framework that comes with a myriad of components, APIs, and extensive documentation that you can harness to build powerful and interactive applications. Using Ext JS, you can quickly develop rich desktop web applications that are compatible with all major browsers. This book will enable you to build databases using information from an existing database with Ext JS. It covers the MVC application architecture that enables development teams to work independently on one project. Additionally, the book teaches advanced charting capability, enabling developers to create state-of-the-art charts just once. These charts are compatible with major browsers without the need to rely on plugins. This hands-on, practical guide will take you through the mechanics of building an application. In this instance, we will use this application to manage existing data structures in the form of a database. You will begin by making SQL and tables in MySQL and will then move on to developing the project environment and introducing Sencha Cmd. You will learn to create a form to input data and monitor the state of the input, while seeing how Ext Direct will validate the form on the server side. Finally, you will have a working application that is ready for you to customize to suit your needs. You can also use it as a template for any future projects when you need a similar database.
Table of Contents (14 chapters)
Ext JS Data-driven Application Design
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Designing Import and Export


Let's start by thinking about the Quotation table. Because Bill is mostly the same as Quotation, we'll just implement Quotation here. Try this implementation with Bill, as well by yourself. First, we'll add an Export and Import button in the Quotation list, so that it begins to function. Next, we'll make the file start downloading when the Export button is pressed. We'll add a new panel so that we can visually check the selected data that we are about to import. So let's go ahead and create this type of data import and export functions.

Data format

At first, when exporting, let's consider the data format in which it will be downloaded. This time, we're thinking of outputting in the TSV format instead of CSV or XML. TSV is easier for the developers to read and it's very simple to generate with JavaScript. The following list shows the order of output.

Quotation and Quotations are outputted in a single file. In the case of quotation, the order of output is as follows...