A system and method for bi-directional binding of data between a data source and a view

By splitting the data source into upstream and downstream data sources and terminating the linkage through data deduplication, the problems of infinite loops and coupling in multi-data source binding are solved, and a clear binding architecture and support for complex linkages are achieved.

CN114610693BActive Publication Date: 2026-02-17HANGZHOU JIEJING SCI & TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210284411.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-22
Publication Date
2026-02-17
Estimated Expiration
2042-03-22

AI Technical Summary

Technical Problem

Existing technologies are prone to causing infinite loops in two-way binding of multiple data sources, resulting in severe data source coupling, complex business logic, and difficulty in meeting complex linkage requirements.

Method used

The data source is split into upstream and downstream data sources. The upstream data source provides an external interaction interface, and the downstream data source receives external data and terminates the interaction by deduplicating the data. The view terminates the interaction with the upstream data source by deduplicating the data.

Benefits of technology

It achieves automatic uncoupling of loops and decoupling of binding sets, with a clear binding architecture that can meet complex linkage requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114610693B_ABST
    Figure CN114610693B_ABST
Patent Text Reader

Abstract

The application relates to a system and method for data linkage of two-way binding of a data source and a view, the system for data linkage of two-way binding of the data source and the view comprising a view and a data source; the data source is split into an upstream data source and a downstream data source; the method for data linkage of two-way binding of the data source and the view comprises the following steps: the data source is split into the upstream data source and the downstream data source; the upstream data source is always linked to the downstream data source; when the value is assigned, the downstream data source is always used to receive new data; and a linkage interface is exposed to link with the upstream data source. The application has the beneficial effects that each binding set can automatically break the loop, and a developer does not need to process the loop problem caused by data linkage; decoupling, each binding set is independent of each other, and only the linkage relationship needs to be specified; the binding architecture is clear, and the complex linkage demand can be met.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to a system and method for data linkage between data source and view bidirectional binding. BACKGROUND

[0002] Current application development basically involves the binding problem of data source and view, and the existing framework basically solves the binding and mapping problem of single data source, that is, the so-called bidirectional binding. However, in the case of multiple data sources and mutual data linkage, the existing framework has the following problems:

[0003] 1. Easy to cause a dead loop: for example, A is linked to B, and B is linked to A, and if there is no condition to terminate the linkage, a dead loop will be caused. In the case of more linkage data, such as A is linked to B, B is linked to C,..., Z is linked to A, and H is linked to C, due to the complexity of the graph itself, it is difficult to track the problem and is not conducive to testing.

[0004] 2. Serious coupling of data sources and complex business logic: while considering data linkage, the condition to terminate the linkage also needs to be considered; each data source is seriously coupled, which is not conducive to clarifying ideas, troubleshooting, and testing.

[0005] For example Figure 1 The existing instance of bidirectional binding data linkage, the existing bidirectional binding, the binding set of view and data source is removed by data deduplication, but the loop between data sources cannot be automatically removed. In the existing way, if the mutual linkage of data sources A and B is to be removed, an additional variable needs to be recorded on the data source: data source A, B. When data source A is linked to data source B, if the source is data source B, it cannot be linked; when data source B is linked to data source A, if the source is data source A, it cannot be linked. Moreover, when data source A processes the linkage logic, the variable of data source B needs to be recorded, that is, the binding set A needs to be coupled with the logic of the binding set B. If there are multiple data linkages, the coupling will be very serious and chaotic. The current binding architecture of data source and view is difficult to meet the complex linkage demand. SUMMARY

[0006] The purpose of the present application is to provide a system and method for data linkage between data source and view bidirectional binding to solve the problems raised in the background art.

[0007] To achieve the above purpose, the present application provides the following technical scheme:

[0008] A system for data linkage between data source and view bidirectional binding, comprising: a view and a data source;

[0009] The data source is divided into: an upstream data source and a downstream data source;

[0010] The upstream data source is used for receiving data of the view, transmitting values to the downstream data source, and providing an output interface for external data linkage to utilize the upstream data source for external data linkage;

[0011] The downstream data source is used for binding the view and providing a receiving interface for receiving external data linkage to access external data;

[0012] The downstream data source links the view and terminates the linkage through data deduplication;

[0013] The view links the upstream data source and terminates the linkage through data deduplication.

[0014] A system for bidirectional binding data linkage between a data source and a view, comprising: a first view, a first data source corresponding to the first view, a second view, and a second data source corresponding to the second view;

[0015] The first data source is split into a first upstream data source and a first downstream data source; the second data source is split into a second upstream data source and a second downstream data source;

[0016] The first view links the first upstream data source and terminates the linkage through data deduplication; the first upstream data source transmits values to the first downstream data source; the first downstream data source links the first view and terminates the linkage through data deduplication;

[0017] The second view links the second upstream data source and terminates the linkage through data deduplication; the second upstream data source transmits values to the second downstream data source; the second downstream data source links the second view and terminates the linkage through data deduplication;

[0018] The first upstream data source links the second downstream data source; the second upstream data source links the first downstream data source.

[0019] A method for bidirectional binding data linkage between a data source and a view, comprising the following steps:

[0020] Packaging a data source unit, splitting the data source into an upstream data source and a downstream data source, the upstream data source always links the downstream data source, wherein the upstream data source provides an output interface for external data linkage to utilize the upstream data source for external data linkage, and the downstream data source is used for receiving new data externally;

[0021] The data source unit is bound with the view, the downstream data source links the view and terminates the linkage through data deduplication, and the view links the upstream data source and terminates the linkage through data deduplication.

[0022] A method for bidirectional binding data linkage between a data source and a view, comprising the following steps:

[0023] Splitting the data source into an upstream data source and a downstream data source;

[0024] Upstream data sources are always linked to downstream data sources;

[0025] When assigning values, always use the downstream data source to receive new data;

[0026] Expose the linkage interface and use the upstream data source for linkage;

[0027] The downstream data source is linked to the view, and the linkage is terminated by deduplicating the data.

[0028] The view is linked to the upstream data source, and the linkage is terminated by deduplicating the data.

[0029] Compared with existing technologies, the advantages of this invention are: each binding set can automatically unloop, eliminating the need for developers to handle loop problems caused by data linkage; decoupling, each binding set is independent of each other, requiring only the linkage relationship to be specified; and a clear binding architecture that can meet complex linkage requirements.

[0030] Other features and advantages of the present invention will be disclosed in detail in the following detailed description and accompanying drawings. Attached Figure Description

[0031] Figure 1 This is a schematic diagram illustrating the existing two-way data binding and data linkage between the data source and the view;

[0032] Figure 2 This is a schematic diagram of a system for bidirectional data binding and linkage between a data source and a view according to the present invention;

[0033] Figure 3 This is a schematic diagram of a system for bidirectional data binding and linkage between a data source and a view according to the present invention, demonstrating the linkage between two data sources. Detailed Implementation

[0034] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0035] Please see Figure 2 In this embodiment of the invention, a system for bidirectional data binding and linkage between a data source and a view includes: a view and a data source.

[0036] The data source is divided into: upstream data source and downstream data source.

[0037] Upstream data sources are used to receive data from views, pass values ​​to downstream data sources, and provide output interfaces for external data interaction to leverage upstream data sources for external data interaction.

[0038] Downstream data sources are used to bind views and provide receiving interfaces for receiving external data.

[0039] The downstream data source is linked to the view, and the linking is terminated by data deduplication. The view is linked to the upstream data source, and the linking is terminated by data deduplication.

[0040] As Figure 2 For specific application scenarios of the Chinese embodiments, please refer to Figure 3 A system for bidirectional data binding and linkage between a data source and a view includes: a first view, a first data source corresponding to the first view, a second view, and a second data source corresponding to the second view.

[0041] The first data source is split into: a first upstream data source and a first downstream data source. The second data source is split into: a second upstream data source and a second downstream data source.

[0042] The first view links to the first upstream data source and terminates the linking by deduplicating the data; the first upstream data source passes values ​​to the first downstream data source; the first downstream data source links to the first view and terminates the linking by deduplicating the data.

[0043] The second view is linked to the second upstream data source, and the linkage is terminated through data deduplication. The second upstream data source passes values ​​to the second downstream data source. The second downstream data source is linked to the second view, and the linkage is terminated through data deduplication.

[0044] The first upstream data source is linked to the second downstream data source. The second upstream data source is linked to the first downstream data source.

[0045] A method for two-way data binding and linkage between a data source and a view includes the following steps:

[0046] The data source unit is encapsulated and split into upstream data source and downstream data source. The upstream data source is always linked with the downstream data source. The upstream data source provides an output interface for external data linkage to use the upstream data source for external data linkage, and the downstream data source is used to receive new data from the outside.

[0047] The data source unit is bound to the view. The downstream data source links with the view and terminates the link by deduplicating the data. The view links with the upstream data source and terminates the link by deduplicating the data.

[0048] A method for two-way data binding and linkage between a data source and a view includes the following steps:

[0049] 1. Encapsulate the data source unit;

[0050] 1.1 Split the data source into upstream data source and downstream data source;

[0051] 1.2 The upstream data source is always linked to the downstream data source;

[0052] 1.3 When assigning values, always use the downstream data source to receive new data;

[0053] 1.4 Expose the linkage interface and use the upstream data source for linkage;

[0054] 2. Bind the data source unit to the view;

[0055] 2.1 The downstream data source is linked to the view, and the linkage is terminated by deduplicating the data;

[0056] 2.2 The view is linked to the upstream data source and the linkage is terminated by deduplicating the data.

[0057] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the invention can be implemented in other specific forms without departing from its spirit or essential characteristics. Therefore, the embodiments should be considered in all respects as exemplary and non-limiting, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within the present invention. No reference numerals in the claims should be construed as limiting the scope of the claims.

[0058] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.

Claims

1. A system for data linkage of two-way binding of data source and view, characterized in that, Comprising: a first view, a first data source corresponding to the first view, a second view, and a second data source corresponding to the second view; the first data source is split into a first upstream data source and a first downstream data source; the second data source is split into a second upstream data source and a second downstream data source; the first view is linked to the first upstream data source and the linkage is terminated by data deduplication; the first upstream data source passes values to the first downstream data source; the first downstream data source is linked to the first view and the linkage is terminated by data deduplication; the second view is linked to the second upstream data source and the linkage is terminated by data deduplication; the second upstream data source passes values to the second downstream data source; the second downstream data source is linked to the second view and the linkage is terminated by data deduplication; the first upstream data source is linked to the second downstream data source; the second upstream data source is linked to the first downstream data source.

2. A method for data linkage of data source and view two-way binding, characterized in that, Comprising: a data source unit encapsulating a data source, the data source is split into an upstream data source and a downstream data source, the upstream data source is always linked to the downstream data source, wherein the upstream data source provides an output interface for external data linkage to utilize the upstream data source, and the downstream data source is used to externally receive new data; the data source unit is bound to a view, the downstream data source is linked to the view and the linkage is terminated by data deduplication, and the view is linked to the upstream data source and the linkage is terminated by data deduplication.

3. A method for data linkage of data source and view two-way binding, characterized in that, Comprising: a data source is split into an upstream data source and a downstream data source; the upstream data source is always linked to the downstream data source; when assigning values, the downstream data source is always used to receive new data; an linkage interface is exposed, and the upstream data source is linked; the downstream data source is linked to a view and the linkage is terminated by data deduplication; the view is linked to the upstream data source and the linkage is terminated by data deduplication.

Citation Information

Patent Citations

  • Interactive data visualization method, application system and storage medium

    CN110543306A