Migrating components between Databases
Transferring pages, tables, forms, and dashboards.
To do this, each component has a transfer icon at the top right Transferring a component < / > (relevant for tables, forms, and dashboards).
A similar button icon is also used for pages.
Based on A
To export components from the database, it must contain the following functions and procedures, set in the following order:
- The split Function accepts the string to split and the symbol to split by. At the exit, returns a line-by-line broken string.
- Function as_system_getStringFromCode - accepts the stored procedure code at the input. Returns a string with the stored procedure code in which string comments are replaced with block comments.
- Function as_system_getSQL_procs - accepts the initial fragment of the name of the required procedures and overwrite (if 1, it will overwrite everything, if 0, it will add only what was not there). Returns a script string that includes create for the selected stored procedures
- Procedures-at the input accept the component code and overwrite (if 1, it will overwrite everything, if 0, it will add only what was not there). Returns a script string that includes insert for component data and create for the selected stored procedures of the component
- as_system_getSQL_page - transfers page data (from the pg_pages table), and its stored procedure pg_crumbs_{pageCode} - the so-called page SQL
- as_system_getSQL_table - transfers the data of the table and its columns (from tables as_crud_tables and as_crud_cols), stored procedure list _dict columns, and stored procedures table getItems, updateField, deteleField, fastCreate
- as_system_getSQL_form - transfers the data on the form and its columns (from tables as_forms and as_formCols), stored procedure list _dict columns, and stored procedures forms getItem, checkItem, saveItem
- as_system_getSQL_dashboards - transfers data about dashboards and their panels (as_dashboards and as_dashboardPanels), and all corresponding stored procedures
Next, to get a script for exporting a component (page, table, form, or dashboard), run the corresponding of the four procedures as follows:
- Select Create query
- Select the menu item Request/SQLCMD mode
- In the query window, write
:OUT D:\filename.txt
exec {Procedure name} '{component Code to export}'
- Find the file in the path specified above filename.txt, open and copy everything under the line:
Note: you only need to run one component at A time, otherwise the program will overwrite everything in one file, overlaying the code on top of each other
Based on B
We run the copied script, and we create the required component and the stored procedures attached to it.
- Management
- Falcon Space Foundation
- Basic components
- Falcon Space Features
- Коммуникация с пользователем
- Дизайн, стилизация
- Integrations
- Каталоги
- Навигация
- Документы
- Additional component
- Продвижение, SEO
- Системные моменты Migrating components between Databases HOWTO. How can I quickly transfer a solution (tables, forms, pages) to another database? HOWTO. Where can I edit the search procedure, the Layout common elements procedure, the periodic launch procedure, and so on? HOWTO. How to do lazy loading for separate image HOWTO. Tracking changes to stored procedures and pages (logChanges) How to organize the periodic sending of an error report to the mail Feedback form for errors, suggestions How to differentiate rights at the level of the business logic of stored procedures Secure data processing and access verification in stored procedures How to enable the system log in the Core version of the platform To increase the size of downloads Using standard markup in the form of snippets for solving various tasks Working with the code editor Logging changes to objects using stored procedures as an example How to log clicks on certain elements in the system Processing old browsers (message about an outdated browser) How to track and limit a large number of similar queries on a site How to change the timeout of DB requests Safety. How to hide some headers (http headers) in requests Logging events in the application (trace) How to improve the performance of IIS (Internet Information Services web server) Windows Server, IIS, How to make the site work from a certain account Displaying a message about offline (No network) Developer's workplace via the terminal FAQ для системного администратора сервера Системный анализ работы сайта на Falcon Space. Профилактика, диагностика работы сайта Обновляемые метки времени в сообщениях на сайте Подсказка по интерфейсам хранимых процедур компонентов Защита от CSRF атак через дополнительный токен в формах Дополнительные параметры в @parameters (во многих хранимых процедурах) Массовая оптимизация картинок в менеджерах ресурсов Как логировать события в Falcon в другую базу (чтобы ограничить рост основной базы данных)
- HOWTO
- HOWTO Tables
- HOWTO Forms
- Working with SQL
- HOWTO JS
- HOWTO Layout
- Solve problems
Falcon Space Platform
This is a reduction in the cost of ownership
at the expense of fewer people to support
This is a quick change
while using the program
This is a modern interface
full adaptation for mobile devices
- Falcon Space Video
- Platform features demo will allow you to understand how this or that component looks and works
- Have a question? Write to the chat at the bottom right