A data editing method, device, apparatus, and storage medium

By displaying and responding to editing operations in the game development process, the synchronous updating of multiple data tables was achieved, solving the problems of low editing efficiency and data accuracy, improving editing efficiency and ensuring data accuracy.

CN118093610BActive Publication Date: 2026-11-20BOOMING TECH (HANGZHOU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410290387.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-14
Publication Date
2026-11-20
Estimated Expiration
2044-03-14

AI Technical Summary

Technical Problem

In game development, when editing multiple data tables with relationships, current technology results in low editing efficiency and difficulty in ensuring data accuracy, requiring frequent switching between data tables and manual checks of data synchronization.

Method used

By displaying the spliced ​​data table within the presentation interface, and responding to editing operations, the associated data tables are updated synchronously, thus achieving synchronous updates of multiple data tables.

Benefits of technology

It improves data editing efficiency, ensures data accuracy, reduces the need for manual checks, and ensures synchronized updates between data tables.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118093610B_ABST
    Figure CN118093610B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a data editing method, device and equipment and a storage medium, and relate to the technical field of data processing. The specific implementation scheme is as follows: in response to a display instruction for the data content of a target data table, a spliced data table obtained by splicing the target data table and at least one data table having an association relationship with the target data table is displayed; in response to an editing operation on a first cell in the spliced data table, the editing content in the first cell and first basic information corresponding to the first cell are obtained; based on the first basic information, a second cell is determined; based on the editing content, the data in the second cell is updated, and the spliced data table is updated based on the updated data; based on the data in a third cell in the spliced data table that has been updated, the data in a cell associated with the third cell in the spliced data table is updated. It can be seen that, by the present scheme, the editing efficiency can be improved and the data accuracy can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a data editing method, apparatus, device, and storage medium. Background Technology

[0002] In game development, data tables are a crucial component of game data management, used to store various types of game data, including character attributes, item attributes, skill attributes, and so on. Game data is diverse and vast, typically requiring distribution across multiple data tables, which are interconnected. For example, if data in table A references data in table B, and data in table A is depended upon by data in table C, then table B and table C are related to table A.

[0003] In related technologies, data tables are typically edited using tools such as Excel (a spreadsheet). When editing multiple data tables with interrelationships, data maintenance personnel need to frequently switch between different data tables to edit them one by one. Furthermore, after editing each data table, due to the relationships between them, data maintenance personnel also need to manually check whether the related data in each table remains synchronized to ensure data accuracy. This results in low editing efficiency and makes it difficult to guarantee data accuracy. Summary of the Invention

[0004] The purpose of this invention is to provide a data editing method, apparatus, device, and storage medium to simultaneously improve editing efficiency and ensure data accuracy. The specific technical solution is as follows:

[0005] In a first aspect, embodiments of this application provide a data editing method, the method comprising:

[0006] In response to a detected instruction to display data content of a target data table, a spliced ​​data table is displayed in the display interface; wherein, the spliced ​​data table is obtained by splicing the target data table and at least one data table that is related to the target data table; and each cell in the spliced ​​data table corresponds to basic information, which is the information of the original cell from which the data in the cell originates, recorded during splicing;

[0007] In response to detecting an editing operation on the first cell of the spliced ​​data table, the edited content in the first cell and the first basic information corresponding to the first cell are obtained;

[0008] Based on the first basic information, a second cell is determined; wherein, the second cell is the original cell corresponding to the first cell;

[0009] Update the data in the second cell based on the edited content, and update the spliced ​​data table based on the updated data in the second cell;

[0010] Based on the data in the third cell of the spliced ​​data table that has been updated, update the data in the cells of the spliced ​​data table that are associated with the third cell.

[0011] Optionally, updating the concatenated data table based on the updated data in the second cell includes:

[0012] If the second cell is a cell of the target type, determine the row data referenced by the updated data in the second cell as the data to be used; use the data to be used to replace the data in the spliced ​​data table and the cell to be updated; wherein, the data in the target type cell is used to reference row data in other data tables, and the cell to be updated includes the first cell and the cell whose row ID is the corresponding original cell;

[0013] If the second cell is not a cell of the target type, the updated data in the second cell is used to replace the data in the first cell of the concatenated data table.

[0014] Optionally, the cell associated with the third cell is a cell that references data in the original cell corresponding to the third cell.

[0015] Optionally, the display instruction for the data content of the target data table is: a display instruction generated in response to the target ID entered in the configuration interface;

[0016] The target data table is a data table with the target id as the key field;

[0017] The methods for generating the spliced ​​data table include:

[0018] The row data in the target data table that uses the target id as the row id is identified as the reference row data;

[0019] Locate the row data referenced by the reference row data in the database, and / or the row data on which the reference row data depends;

[0020] Based on the reference row data and the found row data, the data is concatenated to obtain a concatenated data table.

[0021] Optionally, the step of displaying the concatenated data table in the display interface in response to detecting a display instruction for the target data table includes:

[0022] In response to a data display instruction for a target node in a tree structure displayed on the configuration interface, based on the node information stored in the target node, row data associated with the target row data represented by the target node is determined; wherein, the tree structure is used to represent the relationship between row data in a data table stored in the database, each node in the tree structure is used to represent a row of data and is associated with node information, the node information includes the identifier of the row data represented by the node, and the identifier of the row data associated with the row data represented by the node, and the target node is a node used to represent row data in a target data table;

[0023] Based on the target row data and the row data associated with the target row data, construct a spliced ​​data table;

[0024] The spliced ​​data table is displayed within the display interface.

[0025] Secondly, embodiments of this application provide a data editing apparatus, the apparatus comprising:

[0026] The display module is used to respond to a display instruction for the data content of the target data table and display the spliced ​​data table in the display interface; wherein, the spliced ​​data table is obtained by splicing the target data table and at least one data table that is related to the target data table; and each cell in the spliced ​​data table corresponds to basic information, which is the information of the original cell from which the cell originates, recorded during splicing;

[0027] The acquisition module is used to acquire the edited content in the first cell and the first basic information corresponding to the first cell in response to the detection of an editing operation on the first cell in the spliced ​​data table;

[0028] The determining module is used to determine the second cell based on the first basic information; wherein the second cell is the original cell corresponding to the first cell;

[0029] The first update module is used to update the data in the second cell based on the edited content, and to update the spliced ​​data table based on the updated data in the second cell;

[0030] The second update module is used to update the data in the cells associated with the third cell in the spliced ​​data table based on the data in the third cell that has been updated in the spliced ​​data table.

[0031] Optionally, the first update module includes:

[0032] The first update submodule is used to determine the row data referenced by the updated data in the second cell if the second cell belongs to the target type, and use it as the data to be used; and use the data to be used to replace the data in the spliced ​​data table and the cell to be updated; wherein, the data in the target type cell is used to reference row data in other data tables, and the cell to be updated includes the first cell and the cell whose row ID is the corresponding original cell;

[0033] The second update submodule is used to replace the data in the first cell of the concatenated data table with the updated data in the second cell if the second cell does not belong to the target type.

[0034] Optionally, the cell associated with the third cell is a cell that references data in the original cell corresponding to the third cell.

[0035] Optionally, the display instruction for the data content of the target data table is: a display instruction generated in response to the target ID entered in the configuration interface;

[0036] The target data table is a data table with the target id as the key field;

[0037] The methods for generating the spliced ​​data table include:

[0038] The row data in the target data table that uses the target id as the row id is identified as the reference row data;

[0039] Locate the row data referenced by the reference row data in the database, and / or the row data on which the reference row data depends;

[0040] Based on the reference row data and the found reference row data, the data is concatenated to obtain a concatenated data table.

[0041] Optionally, in response to detecting a display instruction for a target data table, the display module displays the assembled data table within the display interface, including:

[0042] In response to a data display instruction for a target node in a tree structure displayed on the configuration interface, based on the node information stored in the target node, row data associated with the target row data represented by the target node is determined; wherein, the tree structure is used to represent the relationship between row data in a data table stored in the database, each node in the tree structure is used to represent a row of data and is associated with node information, the node information includes the identifier of the row data represented by the node, and the identifier of the row data associated with the row data represented by the node, and the target node is a node used to represent row data in a target data table;

[0043] Based on the target row data and the row data associated with the target row data, construct a spliced ​​data table;

[0044] The spliced ​​data table is displayed within the display interface.

[0045] Thirdly, embodiments of this application provide an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0046] Memory, used to store computer programs;

[0047] The processor, when executing a program stored in memory, implements any of the data editing methods described above.

[0048] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the data editing methods described above.

[0049] Beneficial effects of the embodiments of the present invention:

[0050] The solution provided in this invention detects a display instruction for the data content of a target data table and displays a composite data table on the display interface, which is obtained by combining the target data table and at least one other data table that is related to the target data table. This allows for the centralized display of the data content from the target data table and data content from other data tables that are related to the data content in the target data table. In response to an editing operation on the first cell of the composite data table, the original cell corresponding to the first cell is updated based on the edited content. Then, the composite data table displayed on the display interface is updated based on the updated data in the original cell. This ensures that the data in the composite data table displayed on the display interface remains synchronized with the data stored in the composite data table while updating the original cell corresponding to the first cell. Next, based on the updated data in the third cell of the composite data table, the data in the cells associated with the third cell in the composite data table is updated. In this way, the data in the cells associated with the third cell in the composite data table can be synchronized based on the updated content in the composite data table, achieving synchronous updates of related data across multiple data tables. This solution only requires editing the concatenated data table to simultaneously update the data in the cells associated with the edited cell within the concatenated data table, thus achieving synchronous updates across multiple data tables. Therefore, this solution can improve editing efficiency while ensuring data accuracy.

[0051] Of course, implementing any product or method of the present invention does not necessarily require achieving all of the advantages described above at the same time. Attached Figure Description

[0052] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained based on these drawings.

[0053] Figure 1 A flowchart of a data editing method provided in an embodiment of the present invention;

[0054] Figure 2 A flowchart illustrating a method for generating a spliced ​​data table according to an embodiment of the present invention;

[0055] Figure 3 A flowchart illustrating a method for displaying a spliced ​​data table according to an embodiment of the present invention;

[0056] Figure 4 A flowchart illustrating a method for displaying a spliced ​​data table within a display interface, as provided in an embodiment of the present invention;

[0057] Figure 5 A schematic diagram of a target tree structure provided in an embodiment of the present invention;

[0058] Figure 6 This is a schematic diagram of another target tree structure provided in an embodiment of the present invention;

[0059] Figure 7 This is a schematic diagram of the structure of a data editing device provided in an embodiment of the present invention;

[0060] Figure 8 A block diagram of an electronic device for implementing the data editing method provided in the embodiments of the present invention. Detailed Implementation

[0061] 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 based on this application are within the scope of protection of the present invention.

[0062] In related technologies, data tables are typically edited using tools such as Excel. When editing multiple data tables with interrelationships, data maintenance personnel need to frequently switch between different tables to edit them one by one. This results in a complex interface displaying multiple tables, making the operation less intuitive and hindering user experience, thus leading to low editing efficiency. Furthermore, opening multiple data tables can limit editor performance when switching between them, potentially causing lag or crashes when editing large amounts of data. Additionally, after editing each table, due to the relationships between them, data maintenance personnel need to manually check whether related data in each table remains synchronized. However, manual checking makes it difficult to accurately view and manage dependencies and references between tables, compromising data accuracy.

[0063] To address the aforementioned problems, embodiments of the present invention provide a data editing method, apparatus, device, and storage medium that balance improving editing efficiency with ensuring data accuracy.

[0064] Below, we will first introduce a data editing method provided by an embodiment of the present invention.

[0065] The data editing method provided in this embodiment of the invention can be applied to a client. In specific applications, the client implementing this data editing method can be a client with data display and editing functions in a terminal device. In practical applications, the terminal device can be a smartphone, tablet computer, desktop computer, etc.

[0066] Specifically, the entity executing this data editing method can be a data editing device. For example, when this data editing method is applied to a terminal device, the data editing device can be a plugin running in the client, such as a plugin in a client with data display and editing functions for editing data.

[0067] The data editing method provided in this embodiment of the invention may include:

[0068] In response to a detected instruction to display data content for a target data table, a spliced ​​data table is displayed in the display interface; wherein, the spliced ​​data table is obtained by splicing the target data table and at least one data table that is related to the target data table; and each cell in the spliced ​​data table corresponds to basic information, which is the information of the original cell from which the cell originates, recorded during splicing;

[0069] In response to detecting an editing operation on the first cell of the spliced ​​data table, the edited content in the first cell and the first basic information corresponding to the first cell are obtained;

[0070] Based on the first basic information, a second cell is determined; wherein, the second cell is the original cell corresponding to the first cell;

[0071] Update the data in the second cell based on the edited content, and update the spliced ​​data table based on the updated data in the second cell;

[0072] Based on the data in the third cell of the spliced ​​data table that has been updated, update the data in the cells of the spliced ​​data table that are associated with the third cell.

[0073] The solution provided in this invention detects a display instruction for the data content of a target data table and displays a composite data table on the display interface, which is obtained by combining the target data table and at least one other data table that is related to the target data table. This allows for the centralized display of the data content from the target data table and data content from other data tables that are related to the data content in the target data table. In response to an editing operation on the first cell of the composite data table, the original cell corresponding to the first cell is updated based on the edited content. Then, the composite data table displayed on the display interface is updated based on the updated data in the original cell. This ensures that the data in the composite data table displayed on the display interface remains synchronized with the data stored in the composite data table while updating the original cell corresponding to the first cell. Next, based on the updated data in the third cell of the composite data table, the data in the cells associated with the third cell in the composite data table is updated. In this way, the data in the cells associated with the third cell in the composite data table can be synchronized based on the updated content in the composite data table, achieving synchronous updates of related data across multiple data tables. This solution only requires editing the concatenated data table to simultaneously update the data in the cells associated with the edited cell within the concatenated data table, thus achieving synchronous updates across multiple data tables. Therefore, this solution can improve editing efficiency while ensuring data accuracy.

[0074] The data editing method provided by the embodiments of the present invention will be described below with reference to the accompanying drawings.

[0075] like Figure 1 As shown, the data editing method provided in this embodiment of the invention may include steps S101-S105:

[0076] S101, in response to detecting a display instruction for the data content of the target data table, display the spliced ​​data table in the display interface; wherein, the spliced ​​data table is obtained by splicing the target data table and at least one data table that is related to the target data table; and each cell in the spliced ​​data table corresponds to basic information, which is the information of the original cell from which the data in the cell comes, recorded during splicing;

[0077] In this embodiment, the target data table is the data table to be displayed. It can be any data table stored in the database, and naming it the target data table has no limiting meaning. For example, the instruction to display the data content of the target data table can be an instruction to display a specific row of data in the target data table. Accordingly, the concatenated data table displayed in response to this concatenation instruction is obtained by concatenating the row of data and at least one row of data that is related to that row. Alternatively, the instruction to display the data content of the target data table can be an instruction to display multiple rows of data in the target data table. Accordingly, the concatenated data table displayed in response to this concatenation instruction is obtained by concatenating the multiple rows of data and rows of data that are related to each of the multiple rows of data. Furthermore, the instruction to display the data content of the target data table can also be an instruction to display a predetermined data column within one or more rows of data. In this case, the concatenated data table displayed in response to this instruction is obtained by concatenating the data in the predetermined data column and the data that is related to the data in the predetermined data column. All of these are reasonable.

[0078] It's understandable that game data is massive, often stored across multiple tables, with relationships between them—meaning there are dependencies and references between the data stored in each table. To improve editing efficiency, this embodiment, upon detecting a display command for data content in a target table, displays a composite data table on the interface, created by combining the target table with at least one other related table. This allows for direct data editing directly on the composite data table, eliminating the need to frequently switch between multiple tables for individual editing.

[0079] When concatenating a target data table and at least one related data table, the information of the original cell from which the data in each cell originates can be recorded as the basic information for that cell. This information can include: the table name, field name, and row ID (identity, sequence number) of the original cell from which the data in that cell originates. The row ID is the ID of the row it belongs to. This allows for quick identification of the original cell when editing the concatenated data table later.

[0080] For example, data tables that are related to the target data table include referencing data tables referenced by the target data table, and dependent data tables on which the target data table depends. The relationships between these data tables are illustrated below with reference to Tables 1-3:

[0081] Table 1

[0082] id name initial equipment 0301 A_01 28090001 0302 A_02 28090003 0303 A_03 28090002

[0083] Table 2

[0084] id initial equipment 28090001 B_01 28090003 B_02 28090002 B_03

[0085] Table 3

[0086] id Character Number 0001 0301 0002 0302 0003 0303

[0087] As can be seen from Tables 1-3 above, the data in the "Initial Equipment" field of Table 1 references the data in the "id" field of Table 2. In this case, Table 1 references data from Table 2, and Table 2 is the reference table referenced by Table 1. Furthermore, the data in the "id" field of Table 1 is stored in the "Character Number" field of Table 3. Therefore, Table 1 depends on the data in Table 3, and Table 3 is the dependency table on which Table 1 depends. In other words, both Table 2 and Table 3 are data tables that are related to Table 1.

[0088] The following description, using Table 4 as an example, illustrates how to determine the original cell corresponding to the edited cell in the concatenated data table. If the display instruction for the data content of the target data table is a display instruction for the "id" field and the "Initial Equipment" field of Table 1, and the concatenated data table displayed in the display interface in response to this display instruction is shown in Table 4:

[0089] Table 4

[0090] Table 1: id Table 1: Initial Equipment Table 2: Initial Equipment Table 3: id 0301 28090001 B_01 0001 0302 28090003 B_02 0002 0303 28090002 B_03 0003

[0091] The concatenated data table shown in Table 4 is obtained by concatenating the "id" and "initial equipment" fields from Table 1, the "initial equipment" field from Table 2, and the "id" field from Table 3. In this case, the "initial equipment" field in Table 1 corresponds to the "Table 1: Initial Equipment" field in Table 4, and the "id" field in Table 3 corresponds to the "Table 3: id" field in Table 4.

[0092] It's understandable that the original cells sourced from each cell in the concatenated data table can be cells in the target data table or cells in a data table that has a relationship with the target data table. For example, as seen in Table 4, the "B_01" in the "Table 2: Initial Equipment" field originates from cell A in Table 2, where the field name is "Initial Equipment" and the row id is "28090001". Therefore, cell A in Table 2 is the original cell corresponding to the cell containing "B_01" in Table 4. Similarly, the "0001" in the "Table 3: id" field in Table 4 originates from cell B in Table 3, where the field name is "id" and the row id is "0001". Therefore, cell B in Table 3 is the original cell corresponding to the cell containing "0001" in Table 4. During concatenation, the table name, field name, and row id of the cell from which the data in each cell in Table 4 originates are recorded as the basic information corresponding to that cell in Table 4.

[0093] It should be noted that, for the sake of clarity in the solution layout, the implementation method of displaying the spliced ​​data table in the display interface in response to the detection of the display instruction for the data content of the target data table will be described in the following embodiments, and will not be repeated here.

[0094] S102, in response to detecting an editing operation on the first cell of the concatenated data table, obtain the edited content in the first cell and the first basic information corresponding to the first cell;

[0095] In this embodiment, the first cell can be any cell in the concatenated data table that is currently being edited; naming it the first cell has no limiting meaning. It is understood that since the concatenated data table records information about the original cells from which the data in each cell originates during concatenation, when an editing operation is detected on the first cell of the concatenated data table, the edited content in the first cell can be obtained, and the first basic information corresponding to the first cell can be obtained from the storage address that records the basic information of each cell.

[0096] S103, Based on the first basic information, determine the second cell; wherein, the second cell is the original cell corresponding to the first cell;

[0097] For example, based on the table name, field name, and row ID included in the first basic information, the various data tables stored in the database can be traversed to find the cell whose table name, field name, and row ID match the first basic information, and this cell is used as the second cell.

[0098] S104 updates the data in the second cell based on the edited content, and updates the concatenated data table based on the updated data in the second cell;

[0099] In this embodiment, the data in the second cell is updated by replacing the data in the second cell with the obtained edited content. This updates the data in the original cell corresponding to the edited cell. After updating the data in the second cell, the concatenated data table can be updated based on the updated data in the second cell to synchronize the stored data with the data displayed on the interface.

[0100] Optionally, in one implementation, updating the concatenated data table based on the updated data in the second cell may include steps A1-A2:

[0101] A1, if the second cell is a cell of the target type, determine the row data referenced by the updated data in the second cell as the data to be used; use the data to be used to replace the data in the concatenated data table and the cells to be updated; where the data in the target type cell is used to reference row data in other data tables, and the cells to be updated include the first cell and the cells with the data in the first cell as the row ID of the corresponding original cell;

[0102] In this implementation, the data in the target type cells is used to reference row data in other data tables. For example, the data stored in each cell under the "Initial Equipment" field in Table 1 above is used to reference data in Table 2, where each cell under the "Initial Equipment" field in Table 1 is a target type cell.

[0103] For example, if the concatenated data table is as shown in Table 4, and an editing operation is performed on the cell containing "28090001" with the edited content being "28090003", then the cell containing "28090001" in Table 4 is the first cell. The second cell, determined based on the first basic information recorded during concatenation, is the cell containing "28090001" in Table 1. At this point, the second cell is a cell belonging to the target type. After updating the data in this second cell based on the edited content, the row data referenced by the updated data in this second cell is used as the data to be used, replacing the data in the concatenated data table, the first cell, and the cells whose row IDs are the corresponding original cells. That is, the row data with row ID "28090003" in Table 2 is used as the data to be used, replacing the data in the cell to be updated in Table 4. The cells to be updated include the cell containing "28090001" in Table 4, and the corresponding original cells with row ID "28090001", i.e., the cell containing "B_01" in Table 4. Thus, the updated concatenated data table is shown in Table 5:

[0104] Table 5

[0105] id reference id initial equipment Dependency ID 0301 28090003 B_02 0001 0302 28090003 B_02 0002 0303 28090002 B_03 0003

[0106] A2, if the second cell is not a cell of the target type, use the updated data in the second cell to replace the data in the first cell of the concatenated data table.

[0107] In this implementation, if the second cell is not a cell of the target type, the updated data in the second cell is used to replace the data in the first cell of the concatenated data table.

[0108] For example, if the concatenated data table is as shown in Table 4, and an editing operation is performed on the cell containing "B_01" with the edited content being "B_04", then the cell containing "B_01" in Table 4 is the first cell. The second cell, determined based on the first basic information corresponding to the first cell recorded during concatenation, is the cell containing "B_01" in Table 1. This second cell is a cell that does not belong to the target type. Then, after updating the data in this second cell based on the edited content, the updated data in this second cell replaces the data in the first cell of the concatenated data table, resulting in a new concatenated data table as shown in Table 6.

[0109] Table 6

[0110] id reference id initial equipment Dependency ID 0301 28090003 B_04 0001 0302 28090003 B_02 0002 0303 28090002 B_03 0003

[0111] S105, based on the data in the third cell of the concatenated data table that has been updated, update the data in the cells of the concatenated data table that are associated with the third cell.

[0112] It is understandable that after updating the concatenated data table in step S104, the third cell in the concatenated data table that is updated may include only the first cell, or it may include the first cell and other cells besides the first cell. For example, when editing the data in a cell of the target type in the concatenated data table, the cells in the concatenated data table that are updated include the first cell and the cell whose row ID is the corresponding original cell, with the data in the first cell as the row ID.

[0113] In this embodiment, the spliced ​​data table is the data table used during the splicing process. After updating the spliced ​​data table displayed in the interface, modifications can be made again based on the updated data in the third cell of the spliced ​​data table, that is, modifying the data in the cells associated with the third cell in the spliced ​​data table. In this way, the data in the cells associated with the third cell in the spliced ​​data table can be synchronized according to the updated content in the spliced ​​data table, realizing the synchronous update of related data in multiple data tables.

[0114] Alternatively, in one implementation, the cell associated with the third cell is: a cell that references data in the original cell corresponding to the third cell.

[0115] Understandably, if the data in the third cell is updated, the corresponding original cell can be determined based on the basic information of the third cell. In this case, the data in the cell referencing the data in the original cell needs to be synchronized with the data in the original cell to ensure accuracy. Therefore, the data in cells associated with the third cell can be updated based on the updated data in the concatenated data table; that is, the data in the cells referencing the data in the original cell is updated to match the data in the third cell. In this way, by concatenating the updated data in the third cell of the concatenated data table, the data in the concatenated data table and the cells associated with the third cell are synchronously updated, thus ensuring data accuracy.

[0116] The solution provided in this invention detects a display instruction for the data content of a target data table and displays a composite data table on the display interface, which is obtained by combining the target data table and at least one other data table that is related to the target data table. This allows for the centralized display of the data content from the target data table and data content from other data tables that are related to the data content in the target data table. In response to an editing operation on the first cell of the composite data table, the original cell corresponding to the first cell is updated based on the edited content. Then, the composite data table displayed on the display interface is updated based on the updated data in the original cell. This ensures that the data in the composite data table displayed on the display interface remains synchronized with the data stored in the composite data table while updating the original cell corresponding to the first cell. Next, based on the updated data in the third cell of the composite data table, the data in the cells associated with the third cell in the composite data table is updated. In this way, the data in the cells associated with the third cell in the composite data table can be synchronized based on the updated content in the composite data table, achieving synchronous updates of related data across multiple data tables. This solution only requires editing the concatenated data table to simultaneously update the data in the cells associated with the edited cell within the concatenated data table, thus achieving synchronous updates across multiple data tables. Therefore, this solution can improve editing efficiency while ensuring data accuracy.

[0117] Optionally, in another embodiment of the present invention, the display instruction for the data content of the target data table is: a display instruction generated in response to the target id entered in the configuration interface; the target data table is a data table with the target id as a key field;

[0118] For example, in practical applications, data maintenance personnel can open a configuration interface on the client used for data display and editing. This configuration interface can include an input box for entering an ID. When a data maintenance personnel needs to view a specific row of data in a data table, they can enter the row ID of that row in the data table into this input box. At this time, the ID entered in the input box is the target ID. The client responds to the target ID entered in the configuration interface to generate a display instruction, that is, to generate a display instruction for the row data in the data table that uses the target ID as the key field, with the row ID of the current row as the target ID. For example, determining the target data table based on the target ID could be done by traversing all the data tables stored in the database to find the data table that uses the target ID as the key field, and using this as the target data table. Here, the key field is also called the ID field; each data table has a unique ID field, and each row of data in the data table has a unique row ID.

[0119] Accordingly, in this embodiment, as Figure 2 As shown, the method for generating a concatenated data table may include steps S201-S203:

[0120] S201, Determine the row data in the target data table that uses the target id as the row id, and use it as the reference row data;

[0121] In this embodiment, the configuration interface may display an input box for entering an ID. In response to the display command generated by the target ID entered in the configuration interface, the target data table is traversed to find the row data in the target data table that uses the target ID as the row ID, which is then used as the reference row data.

[0122] S202, Locate the row data referenced by the reference row data in the database, and / or the row data that the reference row data depends on;

[0123] For example, the row data referenced by the reference field in the reference row data, which represents a reference to row data in other data tables, can be determined as the row data referenced by the reference row. That is, the field in the reference row data that stores an id (excluding the key field) is the reference field of the reference row data, and the row data whose row ID is the id of the reference field is the row data referenced by the reference row data.

[0124] For example, if the target data table has display columns, the row data referenced by the reference field in the display column of the reference row data can be determined as the row data referenced by the reference row. The display columns of the target data table can be set up as follows: Data maintenance personnel open the configuration interface in the client used for data display and editing. This configuration interface also includes an input box for entering the table name. After entering the table name of the target data table in this input box, the configuration interface outputs the field names of all columns of the target data table. Each field name is displayed as a field name + checkbox. Data maintenance personnel can check the checkboxes for each field name, and the column with the field name corresponding to the checked checkbox is the display column.

[0125] Alternatively, by traversing the row data in each data table stored in the database, you can find the row data that stores the row ID of the reference row data, excluding the key fields, and use it as the row data that the reference row data depends on.

[0126] S203. Based on the reference row data and the found row data, perform data splicing to obtain a spliced ​​data table.

[0127] For example, data can be concatenated from the reference row data and all the content of the found row data to obtain a concatenated data table; alternatively, data can be concatenated from a portion of the reference row data and the found row data, both of which are reasonable. In practical applications, after detecting the target ID entered in the input box, the configuration interface can output and display the field names of the reference row data corresponding to the target ID, as well as the field names of the row data referenced and / or dependent by the reference row data. Each field name is displayed as a field name + checkbox. Data maintenance personnel can select the field names to be displayed from the field names displayed in the configuration interface according to business needs. In this way, the column with the field name corresponding to the checked checkbox becomes the display column. The data belonging to the display column from all the row data found based on the target ID is concatenated into a single row to obtain the concatenated data table.

[0128] Additionally, it should be noted that after data concatenation, other IDs can be entered as new target IDs in the input boxes of the configuration interface. Steps S201-S202 are repeated to find the reference row data corresponding to the new target ID and the row data referenced and / or depended upon by that reference row data. Then, step S203 is repeated to concatenate the data and obtain the concatenated data table.

[0129] As can be seen, this solution allows for the centralized display of related data from multiple data tables. This eliminates the need to open multiple data tables for editing; instead, editing can be performed within the concatenated data table, thus improving editing efficiency.

[0130] Alternatively, in another embodiment of the invention, such as Figure 3 As shown, in step S101 above, responding to the detection of a display instruction for the target data table, displaying the assembled data table in the display interface may include steps S301-S303:

[0131] S301, in response to the data display instruction for the target node in the tree structure displayed on the configuration interface, determine the row data associated with the target row data represented by the target node based on the node information stored in the target node; wherein, the tree structure is used to represent the relationship between the row data of the data table stored in the database, each node in the tree structure is used to represent a row of data and is associated with node information, the node information includes the identifier of the row data represented by the node, and the identifier of the row data that is associated with the row data represented by the node, and the target node is the node used to represent the row data in the target data table;

[0132] In this embodiment, the configuration interface can display a tree structure representing the relationships between rows of data in a database table. Each node in the tree structure represents a row of data and is associated with node information. The node information of each node includes the identifier of the row of data represented by the node, and the identifiers of the row of data associated with the row represented by the node. In response to a data display command for a target node in the tree structure displayed on the configuration interface, the target row of data represented by the target node and the row of data associated with the target row of data can be determined based on the node information stored in the target node.

[0133] For example, the row ID of the row data represented by the target node, as well as the row IDs of the row data referenced by that row data and / or the row IDs of the row data that the row data depends on, can be used as the node information for that node. In practical applications, data maintenance personnel can click on a node in the configuration interface to display the tree structure; the clicked node is the target node, triggering a data display command for the target node. At this time, based on the node information stored in the target node, the row data with that row ID can be determined according to each row ID included in the node information, thereby identifying the row data associated with the target row data represented by the target node.

[0134] S302, construct a concatenated data table based on the target row data and the row data associated with the target row data;

[0135] In this embodiment, the target row data and the row data associated with the target row data can be concatenated into a single row to obtain a concatenated data table.

[0136] S303 displays the spliced ​​data table in the display interface.

[0137] In this embodiment, after constructing the composite data table, it can be displayed in the presentation interface. For example, a table interface can be provided in the client used for data display and editing using WPF (Windows Presentation Foundation, a user interface framework) technology to display the composite data table in one interface; this interface is the presentation interface.

[0138] As can be seen, this solution stores node information in each node of the tree structure. By clicking on the target node in the tree structure, the target row data represented by that target node and the concatenated data table formed by splicing the row data associated with that target row data can be displayed on the interface. In this way, the related data in each data table can be centrally displayed.

[0139] Optionally, in another embodiment of the present invention, the instruction for displaying the data content of the target data table is: in response to opening the target data table, triggering an instruction for displaying the data content of the target data table;

[0140] Accordingly, in this embodiment, as Figure 4 As shown, the methods for displaying the assembled data table within the display interface can include S401-S404:

[0141] S401, Obtain the data table identifier of the target data table;

[0142] In this embodiment, a user can open a target data table in the client, triggering a display command for the data content of the target data table. The client detects this display command and can obtain the data table identifier of the target data table indicated by the command. For example, the data table identifier can be the data table name, the data table storage path, etc.

[0143] S402, determine the tree structure whose root node is the data table identifier of the target data table, as the target tree structure; wherein, each data table corresponds to a tree structure, and the tree structure corresponding to each data table takes the data table identifier of the data table as the root node, and the tree structure corresponding to each data table includes a first type of node representing the field in the data table, and a second type of node associated with the first type of node when the field represented by any first type of node is an index field, the second type of node representing the field in other data tables other than the data table referenced by the index field;

[0144] In this embodiment, data maintenance personnel can pre-set tree structures for each data table stored in the database. The tree structure corresponding to each data table takes the data table identifier as the root node. Therefore, after obtaining the data table identifier of the target data table, the target tree structure corresponding to the target data table can be determined from the pre-set tree structures. That is, the tree structure whose root node is the data table identifier of the target data table is the target tree structure corresponding to the target data table.

[0145] For example, if the root node of tree structure 1 is identifier A and the root node of tree structure 2 is identifier B, and if a data display instruction for a target data table with identifier A is detected, then tree structure 1 can be determined as the target tree structure corresponding to the target data table.

[0146] Each data table's tree structure includes first-type nodes representing fields in that data table, and second-type nodes associated with any first-type node when the field represented by that first-type node is an index field. These second-type nodes represent fields in other data tables referenced by the index field. It can be understood that when the field represented by the first-type node is an index field, by associating the first-type node with the second-type node in the tree structure, a data reference relationship is established between the index field in the target data table and fields in other data tables; that is, the index field references the field represented by its associated second-type node.

[0147] For example, if the target data table A includes field 1 and field 2, and field 1 is an index field referencing field 3 in data table B, then those skilled in the art can construct a structure as follows: Figure 5 The target tree structure is shown. The root node of this target tree structure is the table identifier of the target data table. The next level nodes of this root node include first-type nodes representing field 1 and first-type nodes representing field 2. Since field 1 is an index field, the first-type nodes representing field 1 are associated with second-type nodes. These second-type nodes, associated with the first-type nodes, represent field 3 in data table B.

[0148] S403, based on the fields represented by the first type of nodes in the target tree structure, obtain the first data to be displayed from the target data table, and based on the fields represented by the second type of nodes in the target tree structure, obtain the second data to be displayed from other data tables;

[0149] In this embodiment, after determining the target tree structure through step S402, the fields represented by each first-type node and the fields represented by each second-type node in the target tree structure can be determined. For example, if the target tree structure is as follows... Figure 5As shown, it can be determined that in the target tree structure, the fields represented by the first type of node are field 1 and field 2, and the field represented by the second type of node is field 3.

[0150] Understandably, since the fields represented by each first-type node in the target tree structure are fields in the target data table, the first data to be displayed can be obtained from the target data table. This first data to be displayed is the field value of the field represented by the determined first-type node in the target data table. Since the second-type nodes in the target tree structure are nodes corresponding to fields in other data tables referenced by the index field (excluding the target data table), and the field value of the index field is an index pointing to the storage location in those other data tables, the second data to be displayed can also be obtained from those other data tables. This second data to be displayed is the field value of the field represented by the second-type node associated with the index field in the other data table pointed to by the index field's field value.

[0151] Optionally, in one implementation, obtaining the first data to be displayed from the target data table based on the fields represented by the first type of nodes in the target tree structure may include: reading the field values ​​of the fields represented by each of the first type of nodes in the determined target tree structure from the target data table to obtain the first data to be displayed.

[0152] It is understandable that, since the fields represented by the first type of nodes are fields in the target data table, the field values ​​of each field represented by the first type of nodes can be directly read from the target data table to obtain the first data to be displayed.

[0153] Optionally, in one implementation, obtaining the second data to be displayed from the other data table based on the field represented by the second type of node in the target tree structure may include steps B1-B3:

[0154] B1, determine the index field represented by the first type node associated with the second type node in the target tree structure, and use it as the target index field;

[0155] B2, for each field value in the target index field, determine the data table to be accessed in the other data table, and the data row to be accessed in the data table to be accessed, based on the field value;

[0156] B3: From the data row of the data table to be accessed, read the field value of the field represented by the second type of node associated with the target index field to obtain the second data to be displayed.

[0157] It is understandable that, in the target tree structure, the field represented by the second type of node associated with each first type of node representing an index field is the field referenced by that index field, and the values ​​of each field in the index field are indexes. The actual business data corresponding to the field value of each index field is the field value of the field in the storage location represented by that field value that belongs to the field referenced by that index field. Therefore, in this implementation, the index field represented by the first type of node associated with the second type of node can be determined first as the target index field. Subsequently, the data table to be accessed can be determined from other data tables based on the field value of the target index field, and then the second data to be displayed can be obtained from the data table to be accessed.

[0158] Since the index field's value is an index used to point to the storage location in other data tables, the data table to be accessed and the data row to be accessed within that table can be determined based on this field value. Therefore, the field value of the field represented by the second type of node associated with the target index field can be read from the data row to be accessed in that table to obtain the second set of data to be displayed.

[0159] For example, if target data table A contains several rows of data, each row can be considered a data row. Each row includes field 1 and field 2, where field 1 is an index field that references field 3 from another data table. The target tree structure corresponding to this target data table A is as follows: Figure 5 As shown, the second type of node in the target tree structure is the node used to represent field 3. To obtain the second data to be displayed, the target index field represented by the first type of node associated with this second type of node can be determined, namely field 1. Then, if field 1 in the target data table A has two field values, namely, the field value belonging to field 1 in the first data in the target data table A, which is index 1; and the field value belonging to field 1 in the second data in the target data table A, which is index 2. If the storage location indicated by index 1 is the third data in data table B, and the storage location indicated by index 2 is the fifth data in data table B, then the field value belonging to field 3 in the third data in data table B can be read. The read field value is the actual business data corresponding to index 1, and the field value belonging to field 3 in the fifth data in data table B can also be read. The obtained field value belonging to field 3 in data table B is the second data to be displayed.

[0160] Additionally, it should be noted that the field values ​​included in the target index field can be null. When a field value is null, there is no corresponding business data for that field value.

[0161] For example, in one optional implementation, the field value of the index field consists of a data table identifier and a row number identifier; the row number identifier is used to identify the data row in the data table.

[0162] Accordingly, in this implementation, step B2 above, which determines the data table to be accessed in the other data table based on the field value, and the data row to be accessed in the data table to be accessed, may include steps B21-B22:

[0163] B21. Based on the data table identifier in this field value, determine the data table in the other data table that has the data table identifier in this field value, and obtain the data table to be accessed.

[0164] B22 determines the data row indicated by the row number in the field value of the data table to be accessed, and obtains the data row to be accessed.

[0165] In this implementation, the field value of the index field can consist of a data table identifier and a row number identifier. The row number identifier is used to identify the data row in the data table. This data row can be the nth record in the data table, or, if the data table type is a table, the row number identifier can represent the nth row in that table, and so on.

[0166] For example, if a field value of the index field is 28090001, and the first four digits of this field value are the table identifier and the last four digits are the row number identifier, representing the first row of data in the table with identifier 2809, then the table to be accessed with identifier 2809 can be found based on the table identifier included in this field value. Then, from the table to be accessed with identifier 2809, the field values ​​of the fields belonging to the second type of node associated with the index field in the first row of data are read to obtain the second data to be displayed.

[0167] S404, based on the first and second data to be displayed, display the spliced ​​data table in the display interface.

[0168] It is understandable that after obtaining the first and second data to be displayed through step S403, these two data are centrally displayed on the display interface, thereby enabling the display of the spliced ​​data table within the display interface. Since the second data to be displayed is the field value of a field in another data table referenced by an index field in the target data table, in this embodiment, by centrally displaying the first and second data to be displayed on the interface, users do not need to open other data tables to view all data related to the target data table, improving data viewing efficiency and facilitating user editing of all data related to the target data table.

[0169] Optionally, in one implementation, displaying the spliced ​​data table within the display interface based on the first and second data to be displayed may include steps C1-C2:

[0170] C1, construct the spliced ​​data table based on the first data to be displayed and the second data to be displayed; wherein, each column of the spliced ​​data table is used to represent the field value of the first data to be displayed and the second data to be displayed regarding the same field, as well as the same field;

[0171] C2 displays the assembled data table within the display interface.

[0172] In this embodiment, after obtaining the first and second data to be displayed, they can be combined into a single table. Specifically, the field values ​​and the field itself related to the same field in both data can be treated as the same column, thus constructing a combined data table. This target data table is then displayed on the interface. For example, if the first data to be displayed includes field values ​​11 and 21 in field 1, and field values ​​21 and 22 in field 2, and the second data to be displayed includes field values ​​31 and 32 in field 3, then a data table as shown in Table 7 can be constructed. Each column in this data table contains the field values ​​and the corresponding field values.

[0173] Table 7

[0174] Field 1 Field 2 Field 3 Field value 11 Field value 21 Field value 31 Field value 21 Field value 22 Field value 32

[0175] Understandably, displaying the first and second sets of data to be displayed together in a combined data table allows users to more intuitively view the complete data related to the target data table. When displaying the combined data table, the field values ​​of the indexed fields in the first set of data to be displayed, along with the field values ​​of the fields referenced by the indexed fields in their corresponding storage locations, can be displayed on the same row. This allows users to quickly see the specific business data corresponding to the indexed field values.

[0176] As can be seen, this solution allows for the centralized display of data associated with the target data table when the target data table is opened. This eliminates the need to open multiple data tables for subsequent data editing; instead, editing operations can be performed within the concatenated data table, thus improving editing efficiency.

[0177] Alternatively, in another embodiment of the invention, in the above... Figure 4Based on the embodiment shown, the target tree structure may further include a third type of node between the root node and the first type of node; the third type of node is used to represent a preset field category, different third type of nodes are used to represent different field categories, and the next level node of the third type of node representing any field category includes: the first type of node representing the field belonging to that field category;

[0178] In this embodiment, a third type of node is also included between the root node and the first type of node in the target tree structure. This third type of node is used to represent a preset field category; different third type nodes represent different field categories, and different field categories correspond to different fields. For example, as shown... Figure 6 As shown, the target tree structure corresponding to the target data table includes third-type nodes representing field category 1 and field category 2. The next-level nodes corresponding to the third-type nodes of field category 1 include first-type nodes representing fields 1 and 2 belonging to field category 1. Similarly, the next-level nodes corresponding to the third-type nodes of field category 2 include first-type nodes representing fields 4 and 5 belonging to field category 2. Fields 1 and 5 are index fields, associated with second-type nodes; that is, field 1 references field 3 in another data table, and field 5 references field 6 in another data table.

[0179] Understandably, when data maintenance personnel construct this target tree structure, they can define the categories of each field according to business needs. Correspondingly, when a user opens any data table, a data display panel with a selection box can be displayed on a specified client. The dropdown options in this selection box include various field categories, allowing the user to select any field category and view the business data under that selected field category. For example, if the target data table includes four fields: Field 1, Field 2, Field 3, and Field 4, data maintenance personnel can set a default category and a basic information category. The default category can correspond to Field 1, Field 2, Field 3, and Field 4, while the basic information category can correspond to Field 1 and Field 2.

[0180] Accordingly, in this embodiment, before step S403, which retrieves the first data to be displayed from the target data table based on the fields represented by the first type of nodes in the target tree structure, and retrieves the second data to be displayed from the other data table based on the fields represented by the second type of nodes in the target tree structure, the method may further include:

[0181] In response to detecting a data display instruction for a target field category in the target data table, a third type of node representing the target field category in the target tree structure is determined;

[0182] In this embodiment, when a user opens any data table in a designated client, the designated client can also display a data display panel with a selection box. The drop-down options in the selection box include various preset field categories. If, after opening the target data table, the user selects a field category in the selection box of the data display panel displayed in the designated client, the client detects a data display instruction for the field category selected by the user in the target data table. The detected field category selected by the user is the target field category of the target data table, and at this time, the third type of node representing the target field category can be determined from the target tree structure.

[0183] Accordingly, in this embodiment, step S403 above, which involves obtaining the first data to be displayed from the target data table based on the fields represented by the first type of nodes in the target tree structure, and obtaining the second data to be displayed from the other data table based on the fields represented by the second type of nodes in the target tree structure, may include:

[0184] Based on the field represented by the next-level node of the third type node that represents the target field category, the first data to be displayed is obtained from the target data table, and based on the field represented by the second type node associated with the next-level node that represents the target field category, the second data to be displayed is obtained from the other data table.

[0185] In this embodiment, after determining the third type of node representing the target field category, the first data to be displayed can be obtained from the target data table based on the fields represented by the next-level nodes of the third type of node in the target tree structure. The next-level nodes of the third type of node are the first type of nodes. It should be noted that the methods for obtaining the first data to be displayed from the target data table based on the fields represented by each first type of node, and for obtaining the second data to be displayed from other data tables based on the fields represented by the second type of nodes associated with the first type of nodes, can refer to the description in the above embodiments, and will not be repeated here.

[0186] For example, if the target tree structure is as follows Figure 6 As shown, if the target field category is field category 2, and the next-level node representing the third type of node representing this target field category represents fields 4 and 5, then fields 4 and 5 are the fields represented by the first type of node to be displayed. It can be understood that by setting third-type nodes representing preset field categories, users can select various field categories as needed to view business data under different field categories, thereby improving the flexibility of displaying concatenated data tables.

[0187] As can be seen, this solution can improve the flexibility of displaying spliced ​​data tables.

[0188] To better understand this solution, the following example illustrates the data editing method provided by this embodiment of the invention.

[0189] This example demonstrates a data editing method that displays related datasets from multiple data tables in a single table. The following section first introduces a process for centrally displaying multiple related data tables.

[0190] 1. Data maintenance personnel open the client software used for data display and editing. After identifying a base table (corresponding to the target table mentioned above), they can first set the display columns of the base table. For example, the configuration interface may include an input box for entering the table name. After entering the base table name in this input box, the configuration interface will output the field names of all columns of that base table. Each field name is displayed as a field name + checkbox. Data maintenance personnel can check the checkboxes for each field name. The columns with the field names corresponding to the checked checkboxes are the display columns. These display columns need to include an "id" column to store ID data. That is, the checkbox for the field name "id" is checked by default, and each piece of data in the "id" column is unique and non-repeating. The base table is typically the one most frequently associated with other data tables.

[0191] 2. The data maintenance personnel open the configuration interface in the client and enter an id from the base table (corresponding to the target id mentioned above) in the input box of the configuration interface. The client responds by detecting the id entered in the input box and searches for the row data corresponding to the id and all the row data referenced and dependent on the row data in the various data tables stored in the database. The process of searching for the row data corresponding to the id and all the row data referenced and dependent on the row data is as follows (1)-(3):

[0192] (1) Find the row data with the id entered in the input box as the row id (corresponding to the reference row data in the above text);

[0193] (2) Find the row data in the display column of the row data in (1) that is referenced by the reference field of other data tables, and use it as the row data referenced by the row data found in (1);

[0194] (3) Find the data in all data tables except the base table, and find the row data in the data column that contains the id entered in the input box, which is the row data that the row data found in (1) depends on.

[0195] 3. The configuration interface displays the field names of all columns of all rows of data retrieved. Each field name is displayed as a field name + checkbox. Data maintenance personnel can check the checkboxes for each field name. The column with the field name corresponding to the checked checkbox is the display column. The data belonging to the display column from all rows of data retrieved based on the id entered in the input box is concatenated into a single row and displayed in the display interface.

[0196] 4. Data maintenance personnel can enter the id again in the input box and repeat the processing steps 2 and 3 above.

[0197] 5. Provide a table interface using WPF technology. This interface displays all the columns of the row data selected by the data maintenance personnel. In other words, all the columns are combined into a composite data table and displayed in a single interface for the data maintenance personnel to view.

[0198] This example also provides another way to centrally display multiple related data tables. The processing flow of this alternative central display method is described below.

[0199] This example provides a tree-structured data table relationship viewer. Data maintenance personnel open the viewer in the client, where a tree structure is displayed in the configuration interface. Each node in the tree structure represents a row of data and is associated with node information. Each node's information includes the row ID of the row data it represents, the row IDs of the rows it references, and / or the row IDs of the rows it depends on. When a data maintenance personnel clicks on a node in the tree structure, a composite data table is displayed. This allows them to select a node and directly modify the row data corresponding to that node on the display interface, without needing to open the original data table to find the row data and then modify it – a simple and intuitive operation. The composite data table is obtained by piecing together specified row data, which is determined based on the node information of the clicked node. The row data determined based on the node information of each node includes: the row data represented by that node, the row data it references, and / or the row data it depends on.

[0200] The tree structure is pre-constructed based on the relationships between data tables stored in the database. When displayed on the interface, nodes with relationships are connected by a line. During tree construction, node information for each node is recorded. This node information includes all references and dependencies for that node. For a row of data from a specific table that serves as the initial node of the tree structure, the reference information is determined as follows: using the row's ID as the search key, the database is searched for rows with that ID. This row is then traversed to find reference fields that represent references to data in other tables; these reference fields indicate rows referenced by the initial node. The data in these reference fields is added to the initial node's node information as its reference information. The dependencies are determined as follows: using the row's ID as the search key, the database is traversed through other tables to find all rows storing that ID; these rows depend on the row represented by the initial node. The row ID from the dependent row data is used as dependency information for the initial node and added to the node information of the initial node. Additionally, this node information also stores the row ID of the row data represented by that node.

[0201] Based on the datasets shown above, the processing flow of the editing method provided in this example is as follows:

[0202] (1) Data maintenance personnel edit a cell in the composite data table (corresponding to the first cell mentioned above) within the display interface. The client responds to the editing operation on that cell by obtaining the edited content and the corresponding basic information (corresponding to the first basic information mentioned above). The basic information of this cell is the information of the original cell from which the data in this cell originates, namely, the table name, field name, and row ID of the original cell from which the data in this cell originates. During the process of assembling the composite data table, the basic information of each cell in the composite data table is recorded.

[0203] (2) Based on the basic information obtained, determine the original cell corresponding to the cell being edited (corresponding to the second cell in the above text), use the obtained edit content to modify the data in the original cell stored in the database, and update the spliced ​​data table in the display interface based on the updated data in the original cell.

[0204] (3) Based on the data in the cell in the concatenated data table that has been updated (corresponding to the third cell in the above text), update the data in the data table stored in the database, and the cells associated with the cell in the concatenated data table that has been updated. The cells associated with the cell in the concatenated data table that has been updated are those that reference the data in the original cell corresponding to the cell that has been updated.

[0205] As can be seen, this solution allows for the centralized display of data from multiple tables on a single interface. Editing the concatenated data table within the interface enables synchronized updates of related tables, improving editing efficiency. Utilizing a tree structure provides a clear view of the dependencies and references between nodes, further enhancing editing efficiency. Upon completion of editing, the system automatically checks whether the data in all associated tables of the edited cell is updated synchronously, improving data accuracy. Therefore, this solution effectively balances improved editing efficiency with guaranteed data accuracy.

[0206] Corresponding to the above method embodiments, this invention also provides a data editing device, such as... Figure 7 As shown, it includes:

[0207] The display module 710 is used to display the spliced ​​data table in the display interface in response to the detection of a display instruction for the data content of the target data table; wherein the spliced ​​data table is obtained by splicing the target data table and at least one data table that is related to the target data table; and each cell in the spliced ​​data table corresponds to basic information, the basic information being the information of the original cell from which the cell originates, recorded during splicing;

[0208] The acquisition module 720 is used to acquire the edited content in the first cell and the first basic information corresponding to the first cell in response to detecting an editing operation on the first cell in the spliced ​​data table;

[0209] The determining module 730 is used to determine the second cell based on the first basic information; wherein the second cell is the original cell corresponding to the first cell;

[0210] The first update module 740 is used to update the data in the second cell based on the edited content, and to update the spliced ​​data table based on the updated data in the second cell;

[0211] The second update module 750 is used to update the data in the cells associated with the third cell in the spliced ​​data table based on the data in the third cell that has been updated in the spliced ​​data table.

[0212] Optionally, the first update module includes:

[0213] The first update submodule is used to determine the row data referenced by the updated data in the second cell if the second cell belongs to the target type, and use it as the data to be used; and use the data to be used to replace the data in the spliced ​​data table and the cell to be updated; wherein, the data in the target type cell is used to reference row data in other data tables, and the cell to be updated includes the first cell and the cell whose row ID is the corresponding original cell;

[0214] The second update submodule is used to replace the data in the first cell of the concatenated data table with the updated data in the second cell if the second cell does not belong to the target type.

[0215] Optionally, the cell associated with the third cell is a cell that references data in the original cell corresponding to the third cell.

[0216] Optionally, the display instruction for the data content of the target data table is: a display instruction generated in response to the target ID entered in the configuration interface;

[0217] The target data table is a data table with the target id as the key field;

[0218] The methods for generating the spliced ​​data table include:

[0219] The row data in the target data table that uses the target id as the row id is identified as the reference row data;

[0220] Locate the row data referenced by the reference row data in the database, and / or the row data on which the reference row data depends;

[0221] Based on the reference row data and the found reference row data, the data is concatenated to obtain a concatenated data table.

[0222] Optionally, in response to detecting a display instruction for a target data table, the display module displays the assembled data table within the display interface, including:

[0223] In response to a data display instruction for a target node in a tree structure displayed on the configuration interface, based on the node information stored in the target node, row data associated with the target row data represented by the target node is determined; wherein, the tree structure is used to represent the relationship between row data in a data table stored in the database, each node in the tree structure is used to represent a row of data and is associated with node information, the node information includes the identifier of the row data represented by the node, and the identifier of the row data associated with the row data represented by the node, and the target node is a node used to represent row data in a target data table;

[0224] Based on the target row data and the row data associated with the target row data, construct a spliced ​​data table;

[0225] The spliced ​​data table is displayed within the display interface.

[0226] This invention also provides an electronic device, such as... Figure 8 As shown, it includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804.

[0227] Memory 803 is used to store computer programs;

[0228] When the processor 801 executes the program stored in the memory 803, it implements the steps of any of the above data editing methods.

[0229] The communication bus mentioned in the above electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0230] The communication interface is used for communication between the aforementioned electronic devices and other devices.

[0231] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0232] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0233] In another embodiment of the present invention, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements the steps of any of the above-described data editing methods.

[0234] In another embodiment of the present invention, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the data editing methods described above.

[0235] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).

[0236] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0237] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the apparatus embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0238] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.

Claims

1. A data editing method, characterized in that, The method includes: In response to a detected instruction to display data content of a target data table, a spliced ​​data table is displayed in the display interface; wherein, the spliced ​​data table is obtained by splicing the target data table and at least one data table that is related to the target data table; and each cell in the spliced ​​data table corresponds to basic information, which is the information of the original cell from which the data in the cell originates, recorded during splicing; In response to detecting an editing operation on the first cell of the spliced ​​data table, the edited content in the first cell and the first basic information corresponding to the first cell are obtained; Based on the first basic information, a second cell is determined; wherein, the second cell is the original cell corresponding to the first cell; The data in the second cell is updated based on the edited content. If the second cell belongs to the target type, the row data referenced by the updated data in the second cell is determined as the data to be used. The data to be used is used to replace the data in the concatenated data table and the cell to be updated. The data in the target type cell is used to reference row data in other data tables. The cell to be updated includes the first cell and the cell whose row ID is the corresponding original cell. If the second cell does not belong to the target type, the data in the first cell is used to replace the data in the first cell of the concatenated data table. Based on the data in the third cell of the spliced ​​data table that has been updated, update the data in the cells of the spliced ​​data table that are associated with the third cell; the spliced ​​data table is the data table used when splicing the spliced ​​data table.

2. The method according to claim 1, characterized in that, The cell associated with the third cell is a cell that references data in the original cell corresponding to the third cell.

3. The method according to claim 1, characterized in that, The display command for the data content of the target data table is: a display command generated in response to the target ID entered in the configuration interface; The target data table is a data table with the target id as the key field; The methods for generating the spliced ​​data table include: The row data in the target data table that uses the target id as the row id is identified as the reference row data; Locate the row data referenced by the reference row data in the database, and / or the row data on which the reference row data depends; Based on the reference row data and the found row data, the data is concatenated to obtain a concatenated data table.

4. The method according to claim 1, characterized in that, The step of displaying the concatenated data table in the display interface in response to detecting a display instruction for the data content of the target data table includes: In response to a data display instruction for a target node in a tree structure displayed on the configuration interface, based on the node information stored in the target node, row data associated with the target row data represented by the target node is determined; wherein, the tree structure is used to represent the relationship between row data in a data table stored in the database, each node in the tree structure is used to represent a row of data and is associated with node information, the node information includes the identifier of the row data represented by the node, and the identifier of the row data associated with the row data represented by the node, and the target node is a node used to represent row data in a target data table; Based on the target row data and the row data associated with the target row data, construct a spliced ​​data table; The spliced ​​data table is displayed within the display interface.

5. A data editing device, characterized in that, The device includes: The display module is used to respond to a display instruction for the data content of the target data table and display the spliced ​​data table in the display interface; wherein, the spliced ​​data table is obtained by splicing the target data table and at least one data table that is related to the target data table; and each cell in the spliced ​​data table corresponds to basic information, which is the information of the original cell from which the cell originates, recorded during splicing; The acquisition module is used to acquire the edited content in the first cell and the first basic information corresponding to the first cell in response to the detection of an editing operation on the first cell in the spliced ​​data table; The determining module is used to determine the second cell based on the first basic information; wherein the second cell is the original cell corresponding to the first cell; The first update module is used to update the data in the second cell based on the edited content. If the second cell belongs to a target type, the module determines the row data referenced by the updated data in the second cell as the data to be used. The module then uses the data to replace the data in the concatenated data table and the cell to be updated. The data in the target type cell is used to reference row data in other data tables. The cell to be updated includes the first cell and a cell whose row ID is the corresponding original cell. If the second cell does not belong to the target type, the module uses the updated data in the second cell to replace the data in the first cell of the concatenated data table. The second update module is used to update the data in the cells associated with the third cell in the spliced ​​data table based on the data in the third cell that has been updated in the spliced ​​data table; the spliced ​​data table is the data table used when splicing the spliced ​​data table.

6. The apparatus according to claim 5, characterized in that, The display module, in response to detecting a display command for the data content of the target data table, displays the assembled data table within the display interface, including: In response to a data display instruction for a target node in a tree structure displayed on the configuration interface, based on the node information stored in the target node, row data associated with the target row data represented by the target node is determined; wherein, the tree structure is used to represent the relationship between row data in a data table stored in the database, each node in the tree structure is used to represent a row of data and is associated with node information, the node information includes the identifier of the row data represented by the node, and the identifier of the row data associated with the row data represented by the node, and the target node is a node used to represent row data in a target data table; Based on the target row data and the row data associated with the target row data, construct a spliced ​​data table; The spliced ​​data table is displayed within the display interface.

7. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method described in any one of claims 1-4.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1-4.

Citation Information

Patent Citations

  • Business data display method and device, equipment and storage medium

    CN116842910A

  • Dynamically updated data sheets using row links

    US20210365446A1