Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Ext JS Data-driven Application Design

You're reading from   Ext JS Data-driven Application Design Learn how to build a user-friendly database in Ext JS using data from an existing database with this step-by-step tutorial. Takes you from first principles right through to implementation.

Arrow left icon
Product type Paperback
Published in Dec 2013
Publisher Packt
ISBN-13 9781782165446
Length 162 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Kazuhiro Kotsutsumi Kazuhiro Kotsutsumi
Author Profile Icon Kazuhiro Kotsutsumi
Kazuhiro Kotsutsumi
Arrow right icon
View More author details
Toc

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image