A method and system capable of dynamically expanding data

By adopting HTML5 technology and JavaScript encoding in the information system, the client dynamically parses and generates interfaces, and using redundant data tables and dynamically expands code on the server side, the problem of existing systems being difficult to adapt to rapidly changing data needs is solved, and the existing system has been realized. Dynamic scalability and high adaptability of the system.

CN112181391BActive Publication Date: 2025-02-25HEZE UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011078339.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-10
Publication Date
2025-02-25
Estimated Expiration
2040-10-10

AI Technical Summary

Technical Problem

Existing information systems are difficult to adapt to rapidly changing statistical data requirements, resulting in the system being deprecated or needs to be updated, and cannot meet the user's dynamic expansion needs.

Method used

By utilizing HTML5 technology, Ajax asynchronous communication and JavaScript encoding, the client parses the data sent by the server, dynamically generates the interface, and uses redundant data tables and dynamic extension code to achieve dynamic expansion of data in the background.

Benefits of technology

It realizes dynamic scalability of the system, reduces server pressure, improves user experience, and can adapt to changes in multiple data types and attributes without recompiling and publishing the system, greatly improving the adaptability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112181391B_ABST
    Figure CN112181391B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for dynamically expanding data, including: a client asynchronously requests to obtain the data type and the dynamic expansion code stored in the server; the client executes the cached corresponding dynamic expansion code according to the obtained data type label, and dynamically generates a graphical user interface. The present invention realizes the dynamic expansion of the system by combining the client's analysis of the entire data processing process with the server-side storage configuration, solves the user's demand for dynamic expansion of system functions, solves the problem of inconsistent attributes of various types of data and difficulty in collating and summarizing statistics, overcomes the execution speed problem caused by large-scale data processing through client caching and pre-compilation, utilizes the computing power of the client, greatly reduces the processing pressure of the server, enables the server to provide services to more clients at the same time, and realizes the dynamic expansion of data in multiple aspects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of information management, information system and information technology, and in particular to a method and system capable of dynamically expanding data. Background Art

[0002] In today's social environment, with the increase in various types of statistical data, the attributes of various data types change rapidly and are not uniform, making them difficult to organize and summarize, and statistical analysis is becoming more and more difficult. It is common that newly purchased and implemented information systems may not be able to meet the statistical needs of basic data within one or two years due to the rapid changes in statistical needs, resulting in the embarrassing situation that the system is abandoned and needs to be updated or re-purchased.

[0003] With the development of Web technology, software system development has become more efficient, less costly and more versatile. With the introduction of HTML5 standards and the development of wireless communication technology, Web systems have won both mobile and PC terminals. Only one set of HTML5 Web interface implementation is needed to provide services on multiple platforms at the same time, and it can be updated at any time. The characteristics of future software systems are interoperability, high concurrency, distribution, and cross-terminal. These characteristics are realized based on the development of Web technology and will evolve into a universal GUI solution for all software in the future.

[0004] Therefore, we consider using HTML5 technology, Ajax asynchronous communication and JavaScript coding to parse and process the data sent by the server on the client, and dynamically generate the operation and browsing interface parts of the page, so as to quickly realize the dynamic expansion of the system, reduce the pressure on the server and improve the user experience. Summary of the invention

[0005] In view of this, the first purpose of the present invention is to propose a method for dynamically expanding data, quickly and dynamically changing the client's parsing program, so that data can be dynamically expanded. To this end, after combing the attribute structure of general data, all data share the same redundant data table, so that various data types can naturally realize the association between attributes from the beginning of design, avoid resource consumption when using multiple data tables for connection query, reduce the algorithm complexity of the program, and eliminate exceptions caused by association errors; the dynamically expandable modules in the data parsing program are stored in the server's database in the form of a dictionary of key-value pairs. When the user logs in, the background automatically caches all dynamically configured code modules asynchronously to the client, and performs pre-compilation processing to improve the system operation efficiency when processing data. In view of the shortcomings of dynamic expansion in the existing data design, the problem that with the increase of various statistical data types in today's society, the attributes of various data change quickly and are not uniform, making it difficult to organize and summarize, and statistical analysis is difficult to solve.

[0006] A second object of the present invention is to provide a system that can dynamically expand data.

[0007] The present invention provides a method for dynamically expanding data, comprising the following steps:

[0008] The client asynchronously requests to obtain the data type and the dynamic extension code stored in the server;

[0009] After each successful login, the client asynchronously requests the dictionary values ​​and extension codes stored on the server when the page is loaded, and all are cached locally on the client for retrieval and use when dynamically generating the interface;

[0010] The client executes the cached corresponding dynamic extension code according to the acquired data type tag to dynamically generate a graphical user interface;

[0011] The user initiates an access request through the address link, and the processing module corresponding to the dynamic extension is mainly executed on the client side, preferably, the module is written and implemented using JavaScript code.

[0012] Furthermore, the process of generating the digital type and the extended code also includes:

[0013] Backend management classifies the data types stored in the database;

[0014] The data type is distinguished by the label field of each record of the data, and the dynamic processing code corresponding to the data type is applied; preferably, the data type is distinguished by the data type label defined in the dictionary, and the common data type field is used for distinction, and the data type field is common to all data and is required, and is used for label use when matching the extended function code. The value of this field is limited to the data set of the type classification defined in the dictionary, and the data set is extended by the administrator by modifying the dictionary item;

[0015] The background management configures addresses according to different data types;

[0016] By setting the address to define the function button for the data type, the corresponding page address for data browsing and data entry is set for different data types. Through the address setting, various types of function buttons can be defined for different types, and the user's home page access rights and data operation rights when operating different types of data can be controlled; the address format is composed of the public access address plus the data type label value, and the page address format of the data type is composed of the public access address plus the data type label value. The corresponding data type is associated with the label value. The configuration of the address module also includes the function button setting on the page, which can expand the available operations of this type. The service address of the button is also composed of the public address and the corresponding data type label value. All related address configurations can be used to set user permissions, and the purpose of user permission setting is achieved by restricting user access to the corresponding address;

[0017] The background management configures the dynamic extension code for the corresponding function of the data;

[0018] The data form interface generation code, list interface generation code, data format objects, chart format objects, and data dynamic processing method objects are all stored in the database table. Administrators can perform add, delete, modify, and query operations through the management interface in the background. They are stored in the form of key-value pairs, and are stored in a secondary table structure like a dictionary. Through flexible code configuration, the data processing methods, interface structures, chart styles and other dynamic processing method objects can be arbitrarily expanded. Through customized primary and secondary tag values, they can be searched and dynamically called by all functional modules. During the calling process, they will be automatically compiled and cached by the client to increase the computing speed. Dynamic expansion can be achieved without recompiling the publishing system, which greatly improves the adaptability of the system.

[0019] Furthermore, the client asynchronously requests to obtain the data type and the dynamic extension code stored in the server, by the client periodically initiating a version number request to the server, checking whether the currently configured version number is the same, and actively initiating an asynchronous request and refreshing the locally cached data type and extension code when the client version number is lower than the server version number value;

[0020] Preferably, the client asynchronously requests to obtain the data type and the dynamic extension code stored in the server. Preferably, the data type is a dictionary value. The client periodically initiates a version number request to the server to check whether the currently configured version number is the same. When the client version number is lower than the server version number value, an asynchronous request is actively initiated and the locally cached dictionary data and extension code are refreshed to ensure that the dynamically generated page is updated in real time. Because version changes rarely occur during user login and use, the extension code can be updated artificially to avoid user peak hours, and the time interval for initiating version verification can be set to no check or a longer interval.

[0021] Furthermore, the background management classifies the data types stored in the database by distinguishing the data types through the label fields of each record of the data, and applying the dynamic processing code corresponding to the data type;

[0022] Preferably, the data types are distinguished by data type labels defined in the dictionary, and a common data type field is used for distinction. The data type field is common to all data and is required. It is used as a label when matching extended function codes. The value of this field is limited to a data set of type classification defined in the dictionary. This data set is expanded by the administrator by modifying the dictionary item.

[0023] Furthermore, the configuration of the address, the format of the address consists of a public access address plus the data type tag value, the page address format of the data type consists of a public access address plus the data type tag value, the corresponding data type is associated with the tag value, the configuration of the address module also includes function button settings on the page, which can expand the available operations of this type, the service address of the button is also composed of a public address and a corresponding data type tag value, all relevant address configurations can be used to set user permissions, and the purpose of user permission setting is achieved by restricting user access to the corresponding address.

[0024] A system capable of dynamically expanding data, comprising:

[0025] Asynchronous data request module: used for the client to asynchronously request to obtain the data type stored in the server and the dynamic expansion code;

[0026] Data parsing and processing module: used by the client to execute the corresponding dynamic extension code in the cache according to the acquired data type label, and dynamically generate a graphical user interface.

[0027] Furthermore, the modules of the digital type and the process of extending the code generation include:

[0028] Data type classification unit: used to classify the data types stored in the database;

[0029] Data address configuration unit: configure addresses according to different data types;

[0030] Configuration extension code unit: used to configure the dynamic extension code for the corresponding function of the data.

[0031] Further, the data parsing and processing module precompiles and caches asynchronously acquired server graphical user interface code objects and data dynamic processing method objects, including a formatting layer, an interface generation layer, a business processing layer, and a data transmission unit;

[0032] The formatting layer is used to format the data using a custom format;

[0033] The data returned by the user request will be received and processed by the formatting layer. The data is returned in two forms: details and lists. The formatting layer retrieves and uses the formatting object of the corresponding type according to the tag attribute of the data record (the formatting object is managed by the business processing layer) to format the data using a custom format; the formatting object defines the database field, attribute name, and formatting method used for each type; preferably, the formatting method of the attribute value is JavaScript code, and the formatting method can also call other methods in the business processing layer for auxiliary processing, and can also calculate and dynamically generate additional data columns by existing data;

[0034] The interface generation layer is used to verify the legitimacy of the data input by the user, call and display the code execution results of the business processing layer, and assign values ​​to the generated interface elements;

[0035] The interface generation layer calls various interface generation codes cached by the business processing layer to generate interface appearance, generate page logic, control the generation format of charts, verify the legitimacy of user input data, call and display the code execution results of the business processing layer, and assign values ​​to the generated interface elements. The interface generation process is the process of combining business rules, constraints, activities and data together; the data objects transmitted by the formatting layer contain both original data and formatted data. The business processing layer calls the dedicated or general dynamic code corresponding to the data type to generate form entry, details, list, and chart analysis interfaces. In the process of interface generation, the business processing layer management method can also be called to perform more customized function expansion;

[0036] The business processing layer is the management layer of various custom dynamic functions and objects, which is used to request, receive, cache, retrieve, and precompile dynamic codes stored on the server side at the client side. All objects managed by the business processing layer can be dynamically expanded;

[0037] The business processing layer is the management layer of various custom dynamic functions and objects. It is responsible for requesting, receiving, caching, retrieving, and precompiling dynamic codes stored on the server side at the client side. All objects managed by the business processing layer can be dynamically extended, and custom method objects can be added arbitrarily. The business processing layer executes specific business rules, constraints, and data calculations, and is responsible for generating and managing code objects for processing data. It can precompile and cache all dynamic extension codes. When the interface generation layer and formatting layer call custom codes and objects, the corresponding execution results can be quickly returned. The code objects of the business processing layer can be arbitrarily extended according to user needs, and when the formatting layer and interface generation layer are executed, they are called and executed through the business processing layer according to needs.

[0038] The data transmission unit is used to transfer data between different layers;

[0039] The data transmission object is passed via parameters and / or is directly generated by the code defined in the business processing layer or directly extracted from the page; preferably, the data transmission object is stored in the form of a JavaScript JSON object.

[0040] A computer-readable storage medium stores a computer program, which implements the steps of the method for dynamically extending data when the program is executed by a processor.

[0041] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the method for dynamically extending data are implemented.

[0042] Compared with the prior art, the beneficial effect of the present invention is that by combining the analysis of the entire data processing process by the client and the storage configuration on the server side, the system can be dynamically expanded, solving the problem of users' demand for dynamic expansion of system functions. Through the client cache and pre-compilation method, the execution speed problem caused by large-scale data processing is overcome, the computing power of the client is utilized, and the processing pressure of the server is greatly reduced. During the operation of the system, the service capacity of the server can be improved, allowing the server to provide services to more clients at the same time, and realizing the dynamic expansion function of data in multiple aspects.

[0043] The present invention uses redundant data tables with common fields to store data, and limits the use of type label fields to distinguish different data types. All other attributes are defined through formatting objects. Through flexible code configuration, the data processing method, interface structure, and chart style can be arbitrarily expanded. Dynamic expansion can be achieved without recompiling the publishing system, which greatly improves the adaptability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the following detailed description of the preferred embodiment.The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting the invention.

[0045] In the attached picture:

[0046] Figure 1 A flow chart of a method for dynamically expanding data according to the present invention;

[0047] Figure 2 A process flow chart for the digital type and extended code generation of the present invention;

[0048] Figure 3 This is an execution flow chart of a dynamically extensible data client parsing module according to an embodiment of the present invention;

[0049] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and products consistent with some aspects of the present disclosure as detailed in the appended claims.

[0051] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0052] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0053] The present invention will be further described in detail below in conjunction with the accompanying drawings.

[0054] See attached pictures Figure 1 The present invention provides a method for dynamically expanding data, comprising the following steps:

[0055] S1, the client asynchronously requests to obtain the data type and the dynamic extension code stored in the server;

[0056] Preferably, after each successful login by the user, the client asynchronously requests to obtain the dictionary value and extension code stored in the server when the page is loaded, and all are cached locally on the client, and the dynamic extension code is precompiled for retrieval and use when the interface is dynamically generated;

[0057] The client asynchronously requests to obtain the data type and the dynamic extension code stored in the server. Preferably, this embodiment adopts HTML5 technology and Ajax asynchronous communication. Preferably, the data type in this embodiment is a dictionary value. The client periodically initiates a version number request to the server to check whether the currently configured version number is the same. When the client version number is lower than the server version number value, an asynchronous request is actively initiated and the dictionary data and extension code cached locally are refreshed to ensure that the dynamically generated page is updated in real time. Because version replacement rarely occurs during user login and use, the extension code can be updated artificially to avoid the peak period of user use, and the time interval for initiating version verification can be set to no check or a longer interval.

[0058] S2. The client executes the cached corresponding dynamic extension code according to the acquired data type tag to dynamically generate a graphical user interface;

[0059] The user initiates an access request through the address link, and the processing module corresponding to the dynamic extension is mainly executed on the client side, preferably, the module is written and implemented using JavaScript code.

[0060] See attached pictures Figure 2 As shown, the process of generating the digital type and the extended code also includes:

[0061] S11. Backend management classifies the data types stored in the database;

[0062] The data type is distinguished by the label field of each record of the data, and the dynamic processing code corresponding to the data type is applied; preferably, the data type is distinguished by the data type label defined in the dictionary, and the common data type field is used for distinction, and the data type field is common to all data and is required, and is used for label use when matching the extended function code. The value of this field is limited to the data set of the type classification defined in the dictionary, and the data set is extended by the administrator by modifying the dictionary item;

[0063] S12. The background management configures the address according to different data types;

[0064] By setting the address to define the function button for the data type, the corresponding page address for data browsing and data entry is set for different data types. Through the address setting, various types of function buttons can be defined for different types, and the user's home page access rights and data operation rights when operating different types of data can be controlled; the address format is composed of the public access address plus the data type label value, and the page address format of the data type is composed of the public access address plus the data type label value. The corresponding data type is associated with the label value. The configuration of the address module also includes the function button setting on the page, which can expand the available operations of this type. The service address of the button is also composed of the public address and the corresponding data type label value. All related address configurations can be used to set user permissions, and the purpose of user permission setting is achieved by restricting user access to the corresponding address;

[0065] S13, the background management configures the dynamic extension code for the corresponding function of the data;

[0066] The data form interface generation code, list interface generation code, data format objects, chart format objects, and data dynamic processing method objects are all stored in the database table. Administrators can perform add, delete, modify, and query operations through the management interface in the background. They are stored in the form of key-value pairs, and are stored in a secondary table structure like a dictionary. Through flexible code configuration, the data processing methods, interface structures, chart styles and other dynamic processing method objects can be arbitrarily expanded. Through customized primary and secondary tag values, they can be searched and dynamically called by all functional modules. During the calling process, they will be automatically compiled and cached by the client to increase the computing speed. Dynamic expansion can be achieved without recompiling the publishing system, which greatly improves the adaptability of the system.

[0067] The client asynchronously requests to obtain the data type and the dynamic extension code stored in the server, by the client periodically initiating a version number request to the server to check whether the currently configured version number is the same, and when the client version number is lower than the server version number value, actively initiating an asynchronous request and refreshing the data type and extension code cached locally;

[0068] Preferably, the client asynchronously requests to obtain the data type and the dynamic extension code stored in the server. Preferably, the data type is a dictionary value. The client periodically initiates a version number request to the server to check whether the currently configured version number is the same. When the client version number is lower than the server version number value, an asynchronous request is actively initiated and the locally cached dictionary data and extension code are refreshed to ensure that the dynamically generated page is updated in real time. Because version changes rarely occur during user login and use, the extension code can be updated artificially to avoid user peak hours, and the time interval for initiating version verification can be set to no check or a longer interval.

[0069] The background management classifies the data types stored in the database by distinguishing the data types through the label fields of each record of the data and applying the dynamic processing code corresponding to the data type;

[0070] Preferably, the data types are distinguished by data type labels defined in the dictionary, and a common data type field is used for distinction. The data type field is common to all data and is required. It is used as a label when matching extended function codes. The value of this field is limited to a data set of type classification defined in the dictionary. This data set is expanded by the administrator by modifying the dictionary item.

[0071] The configuration of the address, the format of the address consists of the public access address plus the data type tag value, the page address format of the data type consists of the public access address plus the data type tag value, and the corresponding data type is associated with the tag value. The configuration of the address module also includes the function button settings on the page, which can expand the available operations of this type. The service address of the button is also composed of the public address and the corresponding data type tag value. All relevant address configurations can be used to set user permissions, and the purpose of user permission setting is achieved by restricting user access to the corresponding address.

[0072] A system capable of dynamically expanding data, comprising:

[0073] Asynchronous data request module: used for the client to asynchronously request to obtain the data type stored in the server and the dynamic expansion code;

[0074] Data parsing and processing module: used by the client to execute the corresponding dynamic extension code in the cache according to the acquired data type label, and dynamically generate a graphical user interface.

[0075] The digital type and the module of the extended code generation process include:

[0076] Data type classification unit: used to classify the data types stored in the database;

[0077] Data address configuration unit: configure addresses according to different data types;

[0078] Configuration extension code unit: used to configure the dynamic extension code for the corresponding function of the data.

[0079] The data analysis processing module precompiles and caches asynchronously acquired server graphical user interface code objects and data dynamic processing method objects, including a formatting layer, an interface generation layer, a business processing layer, and a data transmission unit, see the attached figure Figure 3 As shown;

[0080] The formatting layer is used to format the data using a custom format;

[0081] The data returned by the user request will be received and processed by the formatting layer. The data will be returned in two forms: details and lists. The formatting layer retrieves and uses the formatting object of the corresponding type according to the tag attributes of the data record. The formatting object is managed by the business processing layer and uses a custom format to format the data. The formatting object defines the database field, attribute name, and formatting method used for each type. Preferably, the formatting method of the attribute value is JavaScript code. The formatting method can also call other methods in the business processing layer for auxiliary processing, and can also calculate and dynamically generate additional data columns by existing data.

[0082] The interface generation layer is used to verify the legitimacy of the data input by the user, call and display the code execution results of the business processing layer, and assign values ​​to the generated interface elements;

[0083] The interface generation layer calls various interface generation codes cached by the business processing layer to generate interface appearance, generate page logic, control the generation format of charts, verify the legitimacy of user input data, call and display the code execution results of the business processing layer, and assign values ​​to the generated interface elements. The interface generation process is the process of combining business rules, constraints, activities and data together; the data objects transmitted by the formatting layer contain both original data and formatted data. The business processing layer calls the dedicated or general dynamic code corresponding to the data type to generate form entry, details, list, and chart analysis interfaces. In the process of interface generation, the business processing layer management method can also be called to perform more customized function expansion;

[0084] The business processing layer is the management layer of various custom dynamic functions and objects, which is used to request, receive, cache, retrieve, and precompile dynamic codes stored on the server side at the client side. All objects managed by the business processing layer can be dynamically expanded;

[0085] The business processing layer is the management layer of various custom dynamic functions and objects. It is responsible for requesting, receiving, caching, retrieving, and precompiling dynamic codes stored on the server side at the client side. All objects managed by the business processing layer can be dynamically extended, and custom method objects can be added arbitrarily. The business processing layer executes specific business rules, constraints, and data calculations, and is responsible for generating and managing code objects for processing data. It can precompile and cache all dynamic extension codes. When the interface generation layer and formatting layer call custom codes and objects, the corresponding execution results can be quickly returned. The code objects of the business processing layer can be arbitrarily extended according to user needs, and when the formatting layer and interface generation layer are executed, they are called and executed through the business processing layer according to needs.

[0086] The data transmission unit is used to transfer data between different layers;

[0087] The data transmission object is passed via parameters and / or is directly generated by the code defined in the business processing layer or directly extracted from the page; preferably, the data transmission object is stored in the form of a JavaScript JSON object.

[0088] Compared with the prior art, the beneficial effect of the present invention is that by combining the analysis of the entire data processing process by the client and the storage configuration on the server side, the system can be dynamically expanded, solving the problem of users' demand for dynamic expansion of system functions. Through the client cache and pre-compilation method, the execution speed problem caused by large-scale data processing is overcome, the computing power of the client is utilized, and the processing pressure of the server is greatly reduced. During the operation of the system, the service capacity of the server can be improved, allowing the server to provide services to more clients at the same time, and realizing the dynamic expansion function of data in multiple aspects.

[0089] The present invention uses redundant data tables with common fields to store data, and limits the use of type label fields to distinguish different data types. All other attributes are defined through formatting objects. Through flexible code configuration, the data processing method, interface structure, and chart style can be arbitrarily expanded. Dynamic expansion can be achieved without recompiling the publishing system, which greatly improves the adaptability of the system.

[0090] The present invention solves the problem that in today's social environment, with the increase of various statistical data types, the attributes of various data change quickly and are not uniform, making it difficult to organize and summarize, and statistical analysis is difficult.

[0091] The embodiment of the present invention further provides a computer device, which can integrate a method for dynamically expanding data provided by the embodiment of the present invention; FIG. Figure 4 is a schematic diagram of the structure of a computer device provided by an embodiment of the present invention; Figure 4 As shown, the computer device includes: an input device 43, an output device 44, a memory 42 and a processor 41; the memory 42 is used to store one or more programs; when the one or more programs are executed by the one or more processors 41, the one or more processors 41 implement a control method of a security Internet of Things provided in the above embodiment; wherein the input device 43, the output device 44, the memory 42 and the processor 41 can be connected through a bus or other means, Figure 4 The example of connecting through bus is taken in the following.

[0092] The memory 42 is a readable and writable storage medium of a computing device, which can be used to store software programs and computer executable programs, such as program instructions corresponding to a control method of a security Internet of Things described in an embodiment of the present invention; the memory 42 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the device, etc.; in addition, the memory 42 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device; in some instances, the memory 42 may further include a memory remotely arranged relative to the processor 41, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0093] The input device 43 may be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the device; the output device 44 may include a display device such as a display screen.

[0094] The processor 41 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 42, that is, implements the above-mentioned method of dynamically expandable data.

[0095] The computer device provided above can be used to execute the method for dynamically expanding data provided in the above embodiment, and has corresponding functions and beneficial effects.

[0096] The embodiment of the present invention also provides a storage medium containing computer executable instructions, which are used to execute a method for dynamically expanding data as provided in the above embodiment when executed by a computer processor. The storage medium is any of various types of memory devices or storage devices, and the storage medium includes: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc.; the storage medium may also include other types of memory or a combination thereof; in addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet); the second computer system may provide program instructions to the first computer for execution. The storage medium includes two or more storage media that may reside in different locations (for example, in different computer systems connected via a network). The storage medium may store program instructions (for example, specifically implemented as a computer program) that may be executed by one or more processors.

[0097] Of course, the storage medium containing computer executable instructions provided by an embodiment of the present invention is not limited to the method for dynamically expanding data as described in the above embodiment, and can also execute a method for dynamically expanding data provided by any embodiment of the present invention.

[0098] The technical solutions of the present invention are described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

[0099] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for dynamically expanding data, characterized in that: The following steps are involved: The client asynchronously requests the data type and dynamic extension code stored by the server; The client executes the cached corresponding dynamic extension code according to the acquired data type tag to dynamically generate a graphical user interface; The data type and the process of extending the code generation also include: Backend management classifies the data types stored in the database; The background management configures addresses according to different data types, wherein the page address format of the data type is composed of a public access address plus a data type tag value; The background management configures the dynamic extension code for the corresponding functions of the data. The data form interface generation code, list interface generation code, data format object, chart format object, and dynamic processing method object of the data are all stored in the database table. The administrator can perform addition, deletion, modification and query operations through the management interface in the background. The dynamic processing method object of the data can be expanded through flexible code configuration. The dynamic processing method object of the data is the processing method, interface structure, and chart style.

2. The method according to claim 1, characterized in that The client asynchronously requests to obtain the data type and the dynamic extension code stored in the server by periodically initiating a version number request to the server to check whether the currently configured version number is the same. When the client version number is lower than the server version number value, an asynchronous request is actively initiated to refresh the locally cached data type and extension code.

3. The method according to claim 1, characterized in that The background management classifies the data types stored in the database by distinguishing the data type through the label field of each record of the data and applying the dynamic extension code corresponding to the data type.

4. The method according to claim 1, characterized in that The configuration of the address, the format of the address consists of a public access address plus the data type tag value, and the corresponding data type is associated with the tag value.

5. The system of the method for dynamically expanding data according to any one of claims 1 to 4, characterized in that: include: Asynchronous data request module: used by the client to asynchronously request the data type stored in the server and dynamically expand the code; Data parsing and processing module: used for the client to execute the corresponding dynamic extension code in the cache according to the acquired data type label and dynamically generate a graphical user interface; Data types and extended code generation modules, including: Data type classification unit: used to classify the data types stored in the database; Data address configuration unit: configures addresses according to different data types, wherein the page address format of the data type is composed of a public access address plus a data type tag value; Configuration extension code unit: used to configure the dynamic extension code for the corresponding functions of the data. The data form interface generation code, list interface generation code, data format object, chart format object, and data dynamic processing method object are all stored in the database table. The administrator can perform addition, deletion, modification and query operations through the management interface in the background. The dynamic processing method object of the data can be expanded through flexible code configuration. The dynamic processing method object of the data is the processing method, interface structure, and chart style.

6. The system capable of dynamically expanding data according to claim 5, characterized in that: The data analysis and processing module includes a formatting layer, an interface generation layer, a business processing layer, and a data transmission unit; The formatting layer is used to format the data using a custom format; The interface generation layer is used to verify the legitimacy of the data input by the user, call and display the code execution results of the business processing layer, and assign values ​​to the generated interface elements; The business processing layer is used to request, receive, cache, retrieve and precompile the dynamic code stored in the server at the client; the data transmission unit is used to transfer data between different layers.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for dynamically expanding data according to any one of claims 1 to 4 are implemented.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method for dynamically expanding data as claimed in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Intelligent software interface dynamic generation method facing network

    CN101699393A

  • Caching and interaction method and system for dynamic data of terminal, terminal and computer readable medium

    CN107301051A

  • Code file generation method and device, computing apparatus, and storage medium

    CN109189383A