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

边栏推荐
- ACM教程 - 快速排序(常规 + 尾递归 + 随机基准数)
- New version of free mobile phone, PC, tablet, notebook four terminal Website thumbnail display diagram online one click to generate website source code
- Mitsubishi PLC FX3U pulse axis jog function block (mc_jog)
- Han Zhichao: real time risk control practice of eBay based on graph neural network
- Infiltration records of CFS shooting range in the fourth phase of the western regions' Dadu Mansion
- MySQL application day02
- Design and control of multi rotor aircraft (VII) -- sensor calibration and measurement model
- 一名优秀的软件测试人员,需要掌握哪些技能?
- [eight sorting ③] quick sorting (dynamic graph deduction Hoare method, digging method, front and back pointer method)
- How to determine whether the current script is in the node environment or the browser environment?
猜你喜欢

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

Keepalived introduction and installation

You probably haven't noticed the very important testing strategy in your work

Study note 2 -- definition and value of high-precision map

SSO single sign on implementation.

The pain of Xiao Sha

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

首场“移动云杯”空宣会,期待与开发者一起共创算网新世界!

AIX存储管理之逻辑卷的创建及属性的查看和修改

ACM tutorial - quick sort (regular + tail recursion + random benchmark)
随机推荐
Edge extraction edges based on Halcon learning_ image. Hdev routine
XMind思维导图
AIX存储管理之卷组的创建(一)
PLC Analog input analog conversion FB s_ ITR (Mitsubishi FX3U)
ECS project deployment
关于ASP.NET CORE使用DateTime日期类型参数的一个小细节
What skills does an excellent software tester need to master?
Develop a simple login logic based on SSM
A problem about function template specialization
Global and Chinese market of wireless chipsets 2022-2028: Research Report on technology, participants, trends, market size and share
Daily work and study notes
Viewing and modifying volume group attributes of Aix storage management (II)
2022 operation of simulated examination platform for melting welding and thermal cutting work license
Two TVs
Global and Chinese markets of beverage seasoning systems 2022-2028: Research Report on technology, participants, trends, market size and share
[eight sorts ①] insert sort (direct insert sort, Hill sort)
Zak's latest "neural information transmission", with slides and videos
[disease detection] realize lung cancer detection system based on BP neural network, including GUI interface
King combat power query renamed toolbox applet source code - with traffic main incentive advertisement
Cookie, session, tooken