当前位置:网站首页>[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 :

边栏推荐
- What are the differences between software testers with a monthly salary of 7K and 25K? Leaders look up to you when they master it
- How to reflect and solve the problem of bird flight? Why are planes afraid of birds?
- Just using the way and method of consuming the Internet to land and practice the industrial Internet will not bring long-term development
- King combat power query renamed toolbox applet source code - with traffic main incentive advertisement
- Global and Chinese markets for supply chain strategy and operation consulting 2022-2028: Research Report on technology, participants, trends, market size and share
- Keepalived introduction and installation
- Weather forecast applet source code weather wechat applet source code
- [dynamic planning] interval dp:p3205 Chorus
- Mathematics - feelings -20220215
- Based on Simulink and FlightGear, the dynamic control of multi rotor UAV in equilibrium is modeled and simulated
猜你喜欢
![[leetcode] number of maximum consecutive ones](/img/70/7f3d1c8e0ab2698d98220cca911209.png)
[leetcode] number of maximum consecutive ones

Zak's latest "neural information transmission", with slides and videos

The first "mobile cloud Cup" empty publicity meeting, looking forward to working with developers to create a new world of computing!

Otaku wallpaper Daquan wechat applet source code - with dynamic wallpaper to support a variety of traffic owners

Upgraded wechat tool applet source code for mobile phone detection - supports a variety of main traffic modes

AIX存储管理之卷组属性的查看和修改(二)

学习笔记25--多传感器前融合技术

Design and control of multi rotor aircraft (VII) -- sensor calibration and measurement model

Schrodinger's Japanese learning applet source code

Friends circle community program source code sharing
随机推荐
Synthetic watermelon game wechat applet source code / wechat game applet source code
ECS project deployment
测试员8年工资变动,令网友羡慕不已:你一个月顶我一年工资
Variables and constants of go language foundation
2022 low voltage electrician examination questions and answers
测试人进阶技能:单元测试报告应用指南
Mathematics - feelings -20220215
Global and Chinese markets of edge AI software 2022-2028: Research Report on technology, participants, trends, market size and share
一名优秀的软件测试人员,需要掌握哪些技能?
Advanced skills of testers: a guide to the application of unit test reports
Collection: comprehensive summary of storage knowledge
Global and Chinese market of safety detection systems 2022-2028: Research Report on technology, participants, trends, market size and share
UDS bootloader of s32kxxx bootloader
[eight sorts ④] merge sort, sort not based on comparison (count sort, cardinal sort, bucket sort)
What skills does an excellent software tester need to master?
XMind思维导图
The pain of Xiao Sha
Global and Chinese markets for maritime services 2022-2028: Research Report on technology, participants, trends, market size and share
AIX存储管理之卷组的创建(一)
To meet the needs of consumers in technological upgrading, Angel water purifier's competitive way of "value war"