Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Control data configuration method and computer readable storage medium

A technology of data configuration and storage medium, applied in the field of data processing, can solve the problems of low efficiency and a lot of labor costs, and achieve the effect of convenient reuse, improve development efficiency, and reduce repeated development.

Active Publication Date: 2017-11-24
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF8 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, the existing control configuration requires a lot of labor costs and is not efficient

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Control data configuration method and computer readable storage medium
  • Control data configuration method and computer readable storage medium
  • Control data configuration method and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] Please refer to figure 2 , Embodiment 1 of the present invention is: a control data configuration method, comprising the following steps:

[0052] S1: define a view data model (ViewModel) of the control, and the view data model includes fields for displaying data of the control.

[0053] S2: preset the field mapping relationship of the data source, the field mapping relationship is the mapping relationship between the fields in the view data model and the data fields in the data source.

[0054] S3: Build a data source model of the network data source, the data source model includes the network address of the network data source and the field mapping relationship of the network data source, further, the network address may be a URL address with access parameters.

[0055] S4: Judging whether the data in the data source of the control is directly given static data, that is, judging whether the data source of the control is a static data source, if yes, go to step S5, i...

Embodiment 2

[0069] This embodiment is a specific application scenario of Embodiment 1.

[0070] Suppose you want to develop a carousel control, which can be used to display the carousel of the news or the carousel of the advertising system, then define the view data model (ViewModel) of the control as:

[0071] {

[0072] id: "Data ID",

[0073] url: "image URL",

[0074] title: "title text",

[0075] click_url: "The jump address after clicking"

[0076]}

[0077] The view data model contains four fields.

[0078] Assuming that the data in the data source of the advertising system includes the advertising ID, the URL of the advertising banner, the advertising slogan and the product URL, the field mapping relationship of the data source is:

[0079] Data ID → Advertising ID

[0080] Image URL→Ad Banner URL

[0081] Title Text → Advertising Slogan

[0082] After clicking, jump to the address → product URL

[0083] Assuming that the data of the advertising system is dynamic data acc...

Embodiment 3

[0102] This embodiment is a computer-readable storage medium corresponding to the above-mentioned embodiments, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:

[0103] Defining a view data model of the control, the view data model including fields for displaying data of the control;

[0104] Preset the field mapping relationship of the data source, the field mapping relationship is the mapping relationship between the fields in the view data model and the data fields in the data source;

[0105] According to the field mapping relationship of a data source, the data of the data field corresponding to the field in the view data model in the data source is obtained, and returned to the control.

[0106] Further, the "acquire the data of the data field corresponding to the field in the view data model in the data source according to the field mapping relationship of a data source, and return it to the con...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a control data configuration method and a computer readable storage medium. The method comprises the steps of defining a view data model of a control, wherein the view data model comprises a field of control display data; presetting a field mapping relationship of a data source, wherein the field mapping relationship is a mapping relationship between the field in the view data model and a data field in the data source; and according to the field mapping relationship of the data source, obtaining data of the data field, corresponding to the field in the view data model, in the data source, and returning the data to a control. By separating display logic of the control from the data source, the difference of various different data sources is shielded, so that control development personnel concentrate on control implementation; and the control can be conveniently reused, so that a large amount of repeated development is reduced and the control development efficiency is greatly improved.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a control data configuration method and a computer-readable storage medium. Background technique [0002] In program development, pages need to be composed of controls, and the same control displays different data in different places. Usually, software developers need to obtain data from their respective business servers according to different business scenarios, or statically assign data, these require the intervention of developers. For example, if the same control displays different data, developers need to code to complete the following tasks: acquire data, interpret data, and convert the data format into a format recognizable by the control; the acquired data comes from different sources, including network data and statically assigned Data, control developers need completely different processing; need to deal with various abnormal conditions in the process of obtain...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F9/44
CPCG06F9/44526
Inventor 刘德建王杰光郭玉湖
Owner FUJIAN TIANQUAN EDUCATION TECH LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products