Hello, 1C (PDF)
Total Page:16
File Type:pdf, Size:1020Kb
Rapid application development tutorial Contents Introduction .................................................................................................. 4 If you have everything you need? .................................................................... 5 Infobase ....................................................................................................... 6 Start "programming" ..................................................................................... 12 Subsystems ............................................................................................... 14 Catalogs ................................................................................................... 16 Register .................................................................................................... 41 Documents ................................................................................................ 45 Reports ..................................................................................................... 58 Improving the interface ................................................................................. 76 Improving subsystems ................................................................................ 76 Adjusting the subsystem content ................................................................. 80 Start page ................................................................................................. 85 Command interface of Main section .............................................................. 91 Managed forms .......................................................................................... 94 Standard and ordinary attributes ................................................................. 97 Object presentations ................................................................................ 101 Quick selection of values ........................................................................... 102 Adjusting reports ..................................................................................... 104 Report variants ........................................................................................ 109 Functional options ...................................................................................... 118 Cross-platform design ................................................................................. 125 Linux ...................................................................................................... 125 Web client ............................................................................................... 126 Mobile platform ........................................................................................ 131 Where and how to study 1C:Enterprise ......................................................... 149 1C:Enterprise 8 (training version) .............................................................. 149 1C:AccountingSuite demo ......................................................................... 150 Business automation ................................................................................... 151 1C:Enterprise 8 ....................................................................................... 151 1C partners ............................................................................................. 152 Useful online resources ............................................................................... 153 About 1C Company ..................................................................................... 154 2 Hello, 1C Hello, 1C rapid application development tutorial demonstrates the most basic features of the cutting-edge 1C:Enterprise 8 platform. You will understand the application development process and see that it is easy to learn and develop applications powered by 1C:Enterprise 8. Having downloaded 1C:Enterprise 8.3 training version for free, anyone can repeat the application development process on his or her computer. The third edition includes the description of new features implemented in 1C:Enterprise 8.3, which you can find in the Cross-platform design chapter on page 125. What do you think of this book? You are welcome to send us feedback as well as ask questions and get support on the Studying 1C:Enterprise platform forum. Hello, 1C rapid application development tutorial, version 3. Copyright (C) 2014 1C Company. All rights reserved. No part of this document or the related files may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording, or otherwise) without the prior written permission of the publisher except for the use of brief quotations in a book review. Limit of Liability and Disclaimer of Warranty: The publisher has used its best efforts in preparing this book, and the information provided herein is provided "as is." 1C Company makes no representation or warranties with respect to the accuracy or completeness of the contents of this book and specifically disclaims any implied warranties of merchantability or fitness for any particular purpose and shall in no event be liable for any loss of profit or any other commercial damage, including but not limited to special, incidental, consequential, or other damages. Trademarks: This book identifies product names and services known to be trademarks, registered trademarks, or service marks of their respective holders. They are used throughout this book in an editorial fashion only. In addition, terms suspected of being trademarks, registered trademarks, or service marks have been appropriately capitalized, although 1C Company cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark, registered trademark, or service mark. 1C Company is not associated with any other product mentioned in this book, except for 1C:Enterprise and applied solutions, developed by 1C Company or in association with 1C Company. 1C Company is not associated with any other vendor, mentioned in this book. Russian text: V. Rybalka Translation: T. Bugaevsky Correction: A. Novikov, S. Polikarpov 3 Rapid application development tutorial Introduction The main business of 1C Company (see page 154) is development of business management and accounting software, as well as educational applications development and publishing, and software distribution. Over 1,000,000 companies and over 4,000,000 employees are using business software powered by 1C:Enterprise (see page 151). Market requirements for developers and qualified users capable operating 1C:Enterprise grows up constantly. The main goal of this tutorial is to demonstrate the basic features of the 1C:Enterprise 8 platform and its software engineering technology. There will be no secrets except for one: within a few minutes, using almost only a mouse, you can create a fully functional application to keep personal finance records that is compatible with different DBMS (database management systems), Windows, Linux, web browsers, and even iOS and Android mobile devises. Perhaps you are already familiar with one of high-level programming language, for example Java, C++, or Delphi. Many books and programming training courses start with a simple task such as creating a program that would display a simple text on a screen, for example, "Hello, world!" In fact, what you are going to do in this tutorial is "Hello, world!" powered by 1C:Enterprise. Indeed, the functionality of the demo application is going to be much broader than the simple output of a phrase on a screen. However, considering all capabilities of the 1C:Enterprise 8 platform, what you are going to develop is precisely "Hello, world!" in the world of 1C:Enterprise. 4 Hello, 1C If you have everything you need? Before you begin, make sure that you have everything you need to get started. That is make sure that the 1C:Enterprise platform is installed. Check that when you click Start, and then point to All Programs, there is 1C Enterprise 8 (training version) inside. If this application icon is not in the menu, the 1C:Enterprise platform must be installed. If you do not have the installer, you can download the 1C:Enterprise 8 (training version) for free on 1C:Developer Network. After extracting from the archive, run setup.exe. Figure 1-1. Installing 1C:Enterprise 8 (training version) The installation procedure is simple. Agree with all default options, and continue clicking Next until the installation is complete. 5 Rapid application development tutorial Infobase 1C:Enterprise is not a universal IDE. You cannot create any type of program using 1C:Enterprise. It is designed for automation of business and individuals. For this reason, many concepts are already embedded into the heart of 1C:Enterprise, its technological platform. Anywhere where there is 1C:Enterprise, there will be a technological platform. This provides uniformity so that the development and modification technology, as well as structure of 1C:Enterprise applications are always the same. The major technological concept used in 1C:Enterprise is Infobase. Roughly, each infobase is a single 1C:Enterprise application. The unique characteristic is that each infobase contains not only the data the user works with, but also the program, which is named applied solution, that is executed by the platform. For example: 1C:AccountingSuite or 1C:Small Business both are applied solutions. Thus, when you need 1C:AccountingSuite application, create an infobase with 1C:AccountingSuite