当前位置:网站首页>[IVX junior engineer training course 10 papers] 06 database and services
[IVX junior engineer training course 10 papers] 06 database and services
2022-07-02 01:14:00 【1_ bit】
Catalog
【iVX Junior engineer training course 10 Textual evidence 】01 understand iVX Complete the New Year greeting card
【iVX Junior engineer training course 10 Textual evidence 】02 Numerical binding and adaptive website production
【iVX Junior engineer training course 10 Textual evidence 】03 Events and guessing numbers games
【iVX Junior engineer training course 10 Textual evidence 】04 Canvas and me iVX Group photo
【iVX Junior engineer training course 10 Textual evidence 】05 Canvas and aircraft war game production
【iVX Junior engineer training course 10 Textual evidence 】06 Database and services
【iVX Junior engineer training course 10 Textual evidence 】07 08 News page making
【iVX Junior engineer training course 10 Textual evidence 】09 Chat room production
For high score promotion, please check the column :
iVX Beginner to master
Big talk IVX From actual combat to mastery
One 、 Background and database
stay iVX in database As a data storage warehouse , adopt database Can permanently store data , and Background services Play the role of data transmission , take database The data is transferred to the foreground page , The page uses this data again .
1.1.1 Database add
stay iVX Click on the backstage You can create database , The operation process is as follows :
establish database after , Can be in database Add field values to , The creation method of this field value is the same as Two dimensional array similar . First click on database , In the presence of database Click new field in the edit box , Field can be understood as “ Column ”:
Let's create the following fields in turn :
Then click the plus sign to enter the specific content :
In the database , We found that data ID It will be added automatically in order , This is because the database data ID Can't repeat , this ID As the unique identification of this piece of data . stay database in , data ID Just like our personal ID number. , Used to mark personal identification information :
There are also two automatically generated data here , One for Creation time , For another Update time , The information of these two fields will be recorded automatically :
1.1.2 Create background services
Now you have created database , Next, we create a database information acquisition service . service Used to be called to get information or perform certain operations , We can set the service logic , When used in other actions service , This service It will execute the operation process set by itself . service You need to select backstage after , Click... In the right column service You can create :
Then we click service , stay Service edit box The direct editing action in is to use private Database objects perform Output operation , Output Operation means database Will return its own content , Then we used this service You can get database What's stored inside :
The operation process is as follows :
When the data return content operation is completed , We also need to set the final return result in the callback as database The value returned :
Here, set the final result after the execution of the current service as the output result, and use the value output by the object Output , as a result of An array of objects It's easier for us to choose a value .
The operation process is as follows :
At this point we are The front desk Create a An array of objects , This An array of objects Used to receive database The obtained value content :
Create good Variable Later, for our convenience , You also need to set Variable The column of and the required database The field name corresponds to , Just set the fields we need :
Here we assume that there is a requirement , Automatically display... When the page is displayed database How does the value stored in operate ? In fact, we have done similar examples of this requirement before , At this point, we add an event for the foreground , This event Triggering event by initialization , initialization It means that an event is triggered when the page is preparing , The operation process is as follows :
Set it up Triggering event after , The selected object is the service just set , Select action as Start the service :
Then set when the service is processed , We got the returned content for the just created An array of objects Do assignment , The content of the assignment is the value of the returned result of the service :
The operation process is as follows :
Finally, we create one in the page Loop variable and Three texts , Set up Loop components The data source of is this An array of objects , Finally, set the values of the three texts to the data obtained by the loop component , This operation process is similar to the previous example, but I will not repeat it here :
The operation process and demonstration are as follows :
边栏推荐
- Random avatar encyclopedia, multi category wechat applet source code with history_ Support traffic master
- How to compress video size while adding watermark with one click?
- Evolution of Himalayan self-developed gateway architecture
- [eight sorts ②] select sort (select sort, heap sort)
- [eight sorts ④] merge sort, sort not based on comparison (count sort, cardinal sort, bucket sort)
- Summary of Aix storage management
- Global and Chinese market of collaborative applications 2022-2028: Research Report on technology, participants, trends, market size and share
- Principle of finding combinatorial number and template code
- Datawhale community blackboard newspaper (issue 1)
- SSO single sign on implementation.
猜你喜欢
Schrodinger's Japanese learning applet source code
Docker安装Oracle_11g
Iclr2022 | spherenet and g-spherenet: autoregressive flow model for 3D molecular graph representation and molecular geometry generation
Common loss function of deep learning
SAP ui5 beginner tutorial XXI - trial version of custom formatter of SAP ui5
教你白嫖Amazon rds一年并搭建MySQL云数据库(只需10分钟,真香)
How does schedulerx help users solve the problem of distributed task scheduling?
[eight sorts ④] merge sort, sort not based on comparison (count sort, cardinal sort, bucket sort)
[disease detection] realize lung cancer detection system based on BP neural network, including GUI interface
gradle
随机推荐
AIX存储管理之逻辑卷的创建及属性的查看和修改
2022 safety officer-b certificate examination practice questions simulated examination platform operation
[dynamic planning] interval dp:p3205 Chorus
Bilstm CRF code implementation
【八大排序②】选择排序(选择排序,堆排序)
Global and Chinese market of wireless charging magnetic discs 2022-2028: Research Report on technology, participants, trends, market size and share
2022 safety officer-a certificate examination questions and online simulation examination
Cat Party (Easy Edition)
What are the differences between software testers with a monthly salary of 7K and 25K? Leaders look up to you when they master it
Based on Simulink and FlightGear, the dynamic control of multi rotor UAV in equilibrium is modeled and simulated
[Chongqing Guangdong education] Tianshui Normal University universe exploration reference
【八大排序④】归并排序、不基于比较的排序(计数排序、基数排序、桶排序)
cookie、session、tooken
Edge extraction edges based on Halcon learning_ image. Hdev routine
Powerful calendar wechat applet source code - support the main mode of doing more traffic
Bubble Sort Graph
Basic number theory -- Gauss elimination
Creating logical volumes and viewing and modifying attributes for AIX storage management
Viewing and modifying volume group attributes of Aix storage management (II)
Day 13 of hcip (relevant contents of BGP agreement)