Data reference method, device, electronic device and storage medium

Through the associated storage and synchronization of table identifiers and row and column data, two-way synchronization of table contents is achieved, which solves the problem of high memory resource consumption when sharing tables and improves data processing efficiency.

CN118246416BActive Publication Date: 2024-09-13TIANJIN ZHONGXIN ZHIGUAN INFORMATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410642769.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-09-13
Estimated Expiration
2044-05-23

AI Technical Summary

Technical Problem

When tables are shared among multiple departments or employees, the overall table sharing will consume a large amount of memory resources on the employee's device, especially when there is a lot of table content, leading to resource waste and low efficiency.

Method used

The user selects the table range data and content, pastes it to the target location, and uses the table identifier and row and row data for associated storage to achieve two-way synchronization of the table content. The user only needs to process the required parts at the target location, reducing the processing of the complete table.

Benefits of technology

It effectively reduces the consumption of user-side memory resources, improves data processing efficiency, and avoids redundant operations in complete tables.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118246416B
    Figure CN118246416B
Patent Text Reader

Abstract

The embodiment of the present application discloses a data reference method, device, electronic device and storage medium. The method includes: in response to a user's first reference operation, obtaining the table range data and table content data selected by the first reference operation, the table range data including a table identifier and the selected first row and column data; in response to a user's second reference operation, pasting the table content data to a target location, and obtaining the address identifier of the target location and the second row and column data after pasting; associating and storing the table identifier, the first row and column data, the address identifier, and the second row and column data to obtain reference associated data; synchronizing the table content data pasted to the target location with the table content data selected by the first reference operation using the reference associated data. The partial table in the target location is bidirectionally synchronized with the table content data in the source table, avoiding the user from directly processing in the complete table and reducing the consumption of user-side memory resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data synchronization technology, and in particular, to a data reference method, device, electronic device and storage medium. Background Art

[0002] With the advent of the data age, both work and life are increasingly inseparable from the use and interaction of data. Especially after paperless office has been vigorously advocated, the degree of office dataization has become deeper and deeper.

[0003] At present, many office scenarios involve various forms. When it involves interactions between multiple departments or multiple employees, it is usually necessary to share the forms as a whole or distribute them to each department and employee, and each department or employee processes the parts of the form that they need to pay attention to.

[0004] However, when the table content is large, overall table sharing will consume a large amount of memory resources on the employee's device. Summary of the invention

[0005] The embodiments of the present application provide a data citation method, device, electronic device and storage medium to reduce memory consumption of a user-end device by citing only a portion of a table that a user needs to pay attention to.

[0006] In a first aspect, an embodiment of the present application provides a data citation method, the method comprising:

[0007] In response to a first reference operation of the user, obtaining table range data and table content data selected by the first reference operation, wherein the table range data includes a table identifier and the first row and column data selected;

[0008] In response to the user's second reference operation, the table content data is pasted to a target location, and an address identifier of the target location and the second row and column data after pasting are obtained;

[0009] The table identifier, the first row and column data, the address identifier, and the second row and column data are stored in association with each other to obtain reference associated data;

[0010] The table content data pasted to the target location is synchronized with the table content data selected by the first reference operation by using the reference associated data.

[0011] In a second aspect, an embodiment of the present application provides a data citation device, the device comprising:

[0012] A selection acquisition module, for acquiring, in response to a first reference operation of a user, table range data and table content data selected by the first reference operation, wherein the table range data includes a table identifier and the selected first row and column data;

[0013] A paste acquisition module, used for pasting the table content data to a target location in response to a second reference operation by the user, and acquiring an address identifier of the target location and the second row and column data after pasting;

[0014] An association module is used to associate and store the table identifier, the first row and column data, the address identifier, and the second row and column data to obtain reference associated data;

[0015] The synchronization module is used to synchronize the table content data pasted to the target position with the table content data selected by the first reference operation by using the reference associated data.

[0016] In a third aspect, an embodiment of the present application further provides an electronic device, the electronic device comprising:

[0017] one or more processors;

[0018] a storage device for storing one or more programs,

[0019] When one or more programs are executed by one or more processors, the one or more processors implement the data reference method provided in any embodiment of the present application.

[0020] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, characterized in that when the program is executed by a processor, a data reference method provided in any embodiment of the present application is implemented.

[0021] The technical solution of the embodiment of the present application, in response to the user's first reference operation, obtains the table range data and table content data selected by the first reference operation, the table range data includes a table identifier and the selected first row and column data; in response to the user's second reference operation, pastes the table content data to the target location, and obtains the address identifier of the target location and the second row and column data after pasting; associates and stores the table identifier, the first row and column data, the address identifier, and the second row and column data to obtain reference associated data; uses the reference associated data to synchronize the table content data pasted to the target location with the table content data selected by the first reference operation. Based on this, the user pastes a partial table range in the table to the target location through the first reference operation and the second reference operation, and the partial table in the target location is bidirectionally synchronized with the table content data in the source table. The subsequent user only needs to process the partial table at the target location, avoiding the user directly processing in the complete table and reducing the consumption of user-side memory resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A flowchart of a data reference method provided in Example 1 of the present application;

[0023] Figure 2 A schematic diagram of the structure of a data reference device provided in Embodiment 2 of the present application;

[0024] Figure 3 A schematic diagram of the structure of an electronic device provided in Example 3 of the present application. DETAILED DESCRIPTION

[0025] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.

[0026] Embodiment 1

[0027] Figure 1 A flowchart of a data reference method provided in Example 1 of the present application is shown in FIG. Figure 1 As shown, the data reference method provided in this embodiment can be applied to a data reference platform mounted on a device with data processing capabilities such as a computer, and can be used in conjunction with some work platform software to achieve a better experience. Specifically, the method may include the following steps:

[0028] Step 101: In response to a first reference operation by a user, obtain table range data and table content data selected by the first reference operation, wherein the table range data includes a table identifier and the first row and column data selected.

[0029] In this step, the user's first reference operation may be a combination of common selection and copy operations (the copy operation is only the name of an operation, which can be customized by the developer, and the operation is mainly used to trigger the processing of this step 101).

[0030] That is, for a table, the user selects part of the table from the table, and performs a copy operation after selection. This step can obtain the first row and column data of the selected part of the table and the table identifier of the table. Among them, the first row and column data are the starting row, ending row, starting column, and ending column of the selected part. In addition, the table content data is the data contained in each cell.

[0031] It should be noted that the table on which the user performs the first reference operation may be a source table in a database, hereinafter referred to as a source table, and the source table may be presented on any platform.

[0032] Step 102: In response to the user's second reference operation, the table content data is pasted to a target location, and an address identifier of the target location and the second row and column data after pasting are obtained.

[0033] In this step, the target location can be a content box in any platform where table content can be input. The second reference operation can be an operation similar to paste, and the name of the operation can also be customized by the developer. The operation is mainly used to trigger the related actions of step 102.

[0034] It should be noted that the pasting process is mainly to present the table content data of the part of the table selected in the above step in the target location, and the presentation needs to keep the form of the table unchanged.

[0035] After the pasting is completed, this step can obtain the address identifier of the target location. It should be noted that the address identifier can be composed of different components according to the type of the target location. Specifically, if the target location is a content box in a user platform, the address identifier can be composed of the platform identifier, the content box identifier in the platform, and the currently logged in user identifier.

[0036] In addition, this step will also obtain the second row and column data after pasting. After pasting the table content data to the target location, the original table row and column attributes will usually be lost. Therefore, this step will re-acquire it, that is, the new row and column data of this part of the table in the target location, usually arranged from the 1st row and the 1st column.

[0037] In a specific example, the selected part of the table is a table with 2 rows and 3 columns, so the first row and column data can be the number of rows and columns in the source table, such as starting row 20, ending row 21, starting column 1, and ending row 3.

[0038] After pasting, the corresponding second row and column data will be starting row 1, ending row 2, starting column 1, and ending row 3.

[0039] Step 103: store the table identifier, the first row and column data, the address identifier, and the second row and column data in an associated manner to obtain reference associated data.

[0040] In this step, when associating, first associate the table identifier and the address identifier to obtain identifier associated data; then associate the first row and column data and the second row and column data cell by cell according to the table arrangement to obtain row and column associated data; then map the identifier associated data and the row and column associated data to store as reference associated data.

[0041] Among them, cell-by-cell association refers to associating cells one by one. Specifically, for any cell to be associated in the first row and column data, according to the table arrangement of the cell to be associated within the table data range, a target cell matching the position of the cell to be associated is determined from the second row and column data; the row and column number of the cell to be associated is associated with the row and column number of the target cell to obtain cell association data of the cell to be associated and the target cell; after matching all the cells to be associated in the first row and column data, all the obtained cell association data are stored as row and column association data.

[0042] Still taking the above table with 2 rows and 3 columns as an example, for the sake of convenience, the number of rows and columns of a cell is expressed in the form of a value pair, that is, (number of rows, number of columns). Then when associating, since the layout of the tables at both ends is the same, the cells of the part of the table corresponding to the first row and column data can be traversed.

[0043] When traversing to any cell, for example, a cell with row and column numbers (20, 3) and a table layout of 1st row and 3rd column, then the corresponding table pasted to the target location has a cell with row and column numbers (1, 3) in 1st row and 3rd column. Therefore, the cell with row and column numbers (20, 3) obtained from the first row and column data is determined as the cell to be associated, and the cell with row and column numbers (1, 3) obtained from the second row and column data is the target cell.

[0044] After the traversal is completed according to the above process, the matching is completed, and finally all the obtained cell-related data are stored as row-column related data.

[0045] Step 104: Synchronize the table content data pasted to the target location with the table content data selected by the first reference operation by using the reference associated data.

[0046] The synchronization in this step can be bidirectional, which can be synchronized from the table pasted to the target location to the source table, or from the source table to the table pasted to the target location. In order to improve the synchronization performance, the synchronization of this embodiment can be implemented by a separately set transfer station, and the aforementioned referenced associated data are stored in the transfer station as the associated basis for synchronization.

[0047] Among them, when the content data of the table pasted to the target position changes, the reference associated data corresponding to the changed cell row and column number, the changed content and the address identifier of the target position are obtained; for any changed cell row and column number, based on the reference associated data, the cell row and column number to be synchronized in the source table corresponding to the changed cell row and column number is determined; the changed content is synchronized to the cell corresponding to the cell row and column number to be synchronized in the source table.

[0048] It should be noted that this embodiment can monitor the state changes of each cell in the table. Every time the user edits the table pasted to the target location, the state of the edited cell will change, and the state change will be monitored, thereby determining that the content data of the table pasted to the target location has changed.

[0049] In addition, each time a state change event is detected, the cell whose state has changed can be directly recorded, and the latest content of the cell can be determined as the changed content. Based on the record, this embodiment can directly obtain the row and column number of the cell, that is, the row and column number of the changed cell, and the changed content. In addition, since the aforementioned reference associated data also includes the association relationship between the table identifier and the address identifier, in order to distinguish a specific table, it is also necessary to obtain the address identifier of the target location, and then obtain the reference associated data associated with the address identifier, that is, the reference associated data corresponding to the address identifier of the target location.

[0050] After the corresponding reference-related data is determined, the row and column related data therein can be used to find the number of rows and columns of cells to be synchronized in the original table. The source table to be synchronized can be determined based on the table identifier included in the reference-related data first; then the number of target cell rows and columns corresponding to the number of changed cell rows and columns can be determined based on the row and column related data included in the reference-related data; finally, the number of target cell rows and columns can be determined as the number of cells rows and columns to be synchronized in the source table.

[0051] Specifically, since the row and column association data includes a one-to-one correspondence between cells, as in the above example, each cell has an association relationship between row and column numbers. Since the row and column numbers of the changed cells are obtained above, at this time, the row and column numbers of the target cells corresponding to the row and column numbers of the changed cells can be found from the row and column association data.

[0052] It should be noted that in order to distinguish the table to which the row and column numbers belong, a reference identifier or source identifier can be added to the row and column numbers. The reference identifier refers to the row and column numbers of the cells in the table pasted to the target location, and the source identifier is the row and column numbers of the cells in the source table.

[0053] After determining the number of target cell rows and columns, it can be determined as the number of cells rows and columns to be synchronized in the source table, and then the changed content is synchronized to the cells corresponding to the number of cells rows and columns to be synchronized in the source table.

[0054] In addition to the above synchronization direction, this embodiment describes the process of synchronizing from the source table to the target table as follows:

[0055] When the table content data selected by the first reference operation changes, obtain the changed cell row and column number, the changed content, and the reference associated data corresponding to the table identifier in the table range data selected by the first reference operation; for any changed cell row and column number, determine the cell row and column number to be synchronized in the target position table corresponding to the changed cell row and column number based on the reference associated data; synchronize the changed content to the cell corresponding to the cell row and column number to be synchronized in the source table.

[0056] It should be noted that the above process is the opposite direction of the aforementioned synchronization direction. For the specific process, please refer to the relevant description of the aforementioned synchronization direction, which will not be repeated here.

[0057] In this embodiment, in response to the user's first reference operation, the table range data and table content data selected by the first reference operation are obtained, and the table range data includes a table identifier and the selected first row and column data; in response to the user's second reference operation, the table content data is pasted to the target location, and the address identifier of the target location and the second row and column data after pasting are obtained; the table identifier, the first row and column data, the address identifier, and the second row and column data are associated and stored to obtain reference associated data; the table content data pasted to the target location is synchronized with the table content data selected by the first reference operation using the reference associated data. Based on this, the user pastes a partial table range in the table to the target location through the first reference operation and the second reference operation, and the partial table in the target location is bidirectionally synchronized with the table content data in the source table. The subsequent user only needs to process the partial table at the target location, avoiding the user directly processing in the complete table and reducing the consumption of user-side memory resources.

[0058] Embodiment 2

[0059] Figure 2 This is a schematic diagram of the structure of a data reference device provided in the second embodiment of the present application. The data reference device provided in the embodiment of the present application can execute the data reference method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. The device can be implemented in software and / or hardware, such as Figure 2 As shown, the data reference device specifically includes: a selection acquisition module 201 , a paste acquisition module 202 , an association module 203 , and a synchronization module 204 .

[0060] The selection acquisition module is used to respond to the user's first reference operation and acquire the table range data and table content data selected by the first reference operation, wherein the table range data includes a table identifier and the selected first row and column data;

[0061] A paste acquisition module, used for pasting the table content data to a target location in response to a second reference operation by the user, and acquiring an address identifier of the target location and the second row and column data after pasting;

[0062] An association module is used to associate and store the table identifier, the first row and column data, the address identifier, and the second row and column data to obtain reference associated data;

[0063] The synchronization module is used to synchronize the table content data pasted to the target position with the table content data selected by the first reference operation by using the reference associated data.

[0064] Furthermore, the associated module includes:

[0065] A first associating unit, used to associate the table identifier with the address identifier to obtain identifier associated data;

[0066] A second associating unit is used to associate the first row and column data with the second row and column data in a table arrangement, cell by cell, to obtain row and column associated data;

[0067] The mapping storage unit is used to map and store the identification associated data and the row-column associated data into reference associated data.

[0068] Furthermore, the second association unit is specifically used for:

[0069] For any cell to be associated in the first row and column of data, according to the table arrangement of the cell to be associated within the table data range, a target cell matching the position of the cell to be associated is determined from the second row and column of data;

[0070] Associating the row and column numbers of the cell to be associated with the row and column numbers of the target cell to obtain cell association data of the cell to be associated and the target cell;

[0071] After all the cells to be associated in the first row and column data are matched, all the obtained cell associated data are stored as row and column associated data.

[0072] Furthermore, the synchronization module is specifically used for:

[0073] When the content data of the table pasted to the target position changes, the reference associated data corresponding to the changed cell row and column number, the changed content and the address identifier of the target position are obtained;

[0074] For any number of changed cell rows and columns, based on the referenced associated data, determine the number of cells rows and columns to be synchronized in the source table corresponding to the number of changed cell rows and columns;

[0075] Synchronize the changed content to the cells in the source table that correspond to the number of rows and columns of cells to be synchronized.

[0076] Furthermore, the synchronization module is specifically used for:

[0077] Determine the source table to be synchronized based on the table identifier included in the referenced associated data;

[0078] Based on the row and column associated data included in the reference associated data, determine the row and column numbers of the target cells corresponding to the row and column numbers of the changed cells;

[0079] The number of target cell rows and columns is determined as the number of cells rows and columns to be synchronized in the source table.

[0080] Furthermore, the synchronization module is specifically used for:

[0081] When the content data of the table selected by the first reference operation changes, the number of rows and columns of changed cells, the changed content, and the reference associated data corresponding to the table identifier in the table range data selected by the first reference operation are obtained;

[0082] For any number of changed cell rows and columns, based on the referenced associated data, determine the number of cells rows and columns to be synchronized in the table at the target position corresponding to the number of changed cell rows and columns;

[0083] Synchronize the changed content to the cells in the source table that correspond to the number of rows and columns of cells to be synchronized.

[0084] Embodiment 3

[0085] Figure 3 A schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present application is shown in FIG. Figure 3 As shown, the electronic device includes a processor 310, a memory 320, an input device 330 and an output device 340; the number of the processor 310 in the electronic device can be one or more. Figure 3 A processor 310 is taken as an example; the processor 310, the memory 320, the input device 330 and the output device 340 in the electronic device can be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0086] The memory 320 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the data reference method in the embodiment of the present invention. The processor 310 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 320, that is, implements the above-mentioned data reference method:

[0087] In response to a first reference operation of the user, obtaining table range data and table content data selected by the first reference operation, wherein the table range data includes a table identifier and the first row and column data selected;

[0088] In response to the user's second reference operation, the table content data is pasted to a target location, and an address identifier of the target location and the second row and column data after pasting are obtained;

[0089] The table identifier, the first row and column data, the address identifier, and the second row and column data are stored in association with each other to obtain reference associated data;

[0090] The table content data pasted to the target location is synchronized with the table content data selected by the first reference operation by using the reference associated data.

[0091] Furthermore, the table identifier, the first row and column data, the address identifier, and the second row and column data are stored in association with each other to obtain reference associated data, including:

[0092] Associating the table identifier with the address identifier to obtain identifier-associated data;

[0093] Associating the first row and column data with the second row and column data cell by cell according to the table arrangement to obtain row and column associated data;

[0094] The identification association data and the row-column association data mapping are stored as reference association data.

[0095] Furthermore, the first row and column data and the second row and column data are associated cell by cell according to the table arrangement to obtain row and column associated data, including:

[0096] For any cell to be associated in the first row and column of data, according to the table arrangement of the cell to be associated within the table data range, a target cell matching the position of the cell to be associated is determined from the second row and column of data;

[0097] Associating the row and column numbers of the cell to be associated with the row and column numbers of the target cell to obtain cell association data of the cell to be associated and the target cell;

[0098] After all the cells to be associated in the first row and column data are matched, all the obtained cell associated data are stored as row and column associated data.

[0099] Further, synchronizing the table content data pasted to the target location with the table content data selected by the first reference operation by using the reference associated data includes:

[0100] When the content data of the table pasted to the target position changes, the reference associated data corresponding to the changed cell row and column number, the changed content and the address identifier of the target position are obtained;

[0101] For any number of changed cell rows and columns, based on the referenced associated data, determine the number of cells rows and columns to be synchronized in the source table corresponding to the number of changed cell rows and columns;

[0102] Synchronize the changed content to the cells in the source table that correspond to the number of rows and columns of cells to be synchronized.

[0103] Further, based on the referenced associated data, determining the number of rows and columns of cells to be synchronized in the source table corresponding to the number of rows and columns of changed cells includes:

[0104] Determine the source table to be synchronized based on the table identifier included in the referenced associated data;

[0105] Based on the row and column associated data included in the reference associated data, determine the row and column numbers of the target cells corresponding to the row and column numbers of the changed cells;

[0106] The number of target cell rows and columns is determined as the number of cells rows and columns to be synchronized in the source table.

[0107] Further, synchronizing the table content data pasted to the target location with the table content data selected by the first reference operation by using the reference associated data includes:

[0108] When the content data of the table selected by the first reference operation changes, the number of rows and columns of changed cells, the changed content, and the reference associated data corresponding to the table identifier in the table range data selected by the first reference operation are obtained;

[0109] For any number of changed cell rows and columns, based on the referenced associated data, determine the number of cells rows and columns to be synchronized in the table at the target position corresponding to the number of changed cell rows and columns;

[0110] Synchronize the changed content to the cells in the source table that correspond to the number of rows and columns of cells to be synchronized.

[0111] The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 320 may further include a memory remotely arranged relative to the processor 310, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0112] Embodiment 4

[0113] Embodiment 4 of the present application further provides a storage medium containing computer executable instructions, and when the computer executable instructions are executed by a computer processor, they are used to execute a data reference method, the method comprising:

[0114] In response to a first reference operation of the user, obtaining table range data and table content data selected by the first reference operation, wherein the table range data includes a table identifier and the first row and column data selected;

[0115] In response to the user's second reference operation, the table content data is pasted to a target location, and an address identifier of the target location and the second row and column data after pasting are obtained;

[0116] The table identifier, the first row and column data, the address identifier, and the second row and column data are stored in association with each other to obtain reference associated data;

[0117] The table content data pasted to the target location is synchronized with the table content data selected by the first reference operation by using the reference associated data.

[0118] Furthermore, the table identifier, the first row and column data, the address identifier, and the second row and column data are stored in association with each other to obtain reference associated data, including:

[0119] Associating the table identifier with the address identifier to obtain identifier-associated data;

[0120] Associating the first row and column data with the second row and column data cell by cell according to the table arrangement to obtain row and column associated data;

[0121] The identification association data and the row-column association data mapping are stored as reference association data.

[0122] Furthermore, the first row and column data and the second row and column data are associated cell by cell according to the table arrangement to obtain row and column associated data, including:

[0123] For any cell to be associated in the first row and column of data, according to the table arrangement of the cell to be associated within the table data range, a target cell matching the position of the cell to be associated is determined from the second row and column of data;

[0124] Associating the row and column numbers of the cell to be associated with the row and column numbers of the target cell to obtain cell association data of the cell to be associated and the target cell;

[0125] After all the cells to be associated in the first row and column data are matched, all the obtained cell associated data are stored as row and column associated data.

[0126] Further, synchronizing the table content data pasted to the target location with the table content data selected by the first reference operation by using the reference associated data includes:

[0127] When the content data of the table pasted to the target position changes, the reference associated data corresponding to the changed cell row and column number, the changed content and the address identifier of the target position are obtained;

[0128] For any number of changed cell rows and columns, based on the referenced associated data, determine the number of cells rows and columns to be synchronized in the source table corresponding to the number of changed cell rows and columns;

[0129] Synchronize the changed content to the cells in the source table that correspond to the number of rows and columns of cells to be synchronized.

[0130] Further, based on the referenced associated data, determining the number of rows and columns of cells to be synchronized in the source table corresponding to the number of rows and columns of changed cells includes:

[0131] Determine the source table to be synchronized based on the table identifier included in the referenced associated data;

[0132] Based on the row and column associated data included in the reference associated data, determine the row and column numbers of the target cells corresponding to the row and column numbers of the changed cells;

[0133] The number of target cell rows and columns is determined as the number of cells rows and columns to be synchronized in the source table.

[0134] Further, synchronizing the table content data pasted to the target location with the table content data selected by the first reference operation by using the reference associated data includes:

[0135] When the content data of the table selected by the first reference operation changes, the number of rows and columns of changed cells, the changed content, and the reference associated data corresponding to the table identifier in the table range data selected by the first reference operation are obtained;

[0136] For any number of changed cell rows and columns, based on the referenced associated data, determine the number of cells rows and columns to be synchronized in the table at the target position corresponding to the number of changed cell rows and columns;

[0137] Synchronize the changed content to the cells in the source table that correspond to the number of rows and columns of cells to be synchronized.

[0138] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application, whose computer executable instructions are not limited to the above method operations, can also execute related operations in the data reference method provided in any embodiment of the present application.

[0139] Through the above description of the implementation method, the technicians in the relevant field can clearly understand that the present application can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0140] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.

[0141] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A data citation method, It is characterized in that The method comprises: In response to a first reference operation of the user, obtaining table range data and table content data selected by the first reference operation, wherein the table range data includes a table identifier and first row and column data selected; the first row and column data are the start row, end row, start column, and end column of the selected part; In response to a second reference operation by the user, the table content data is pasted to a target location, and an address identifier of the target location and the second row and column data after pasting are acquired; The table identifier, the first row and column data, the address identifier, and the second row and column data are stored in association with each other to obtain reference association data; The table content data pasted to the target location is synchronized with the table content data selected by the first reference operation using the reference association data.

2. The method according to claim 1, It is characterized in that The step of associating and storing the table identifier, the first row and column data, the address identifier, and the second row and column data to obtain reference associated data includes: Associating the table identifier with the address identifier to obtain identifier association data; Associating the first row and column data with the second row and column data in a table arrangement, cell by cell, to obtain row and column associated data; The identification association data and the row-column association data are mapped and stored as reference association data.

3. The method according to claim 2, It is characterized in that The step of associating the first row and column data with the second row and column data in a table arrangement to obtain row and column associated data includes: For any cell to be associated in the first row and column of data, according to the table arrangement of the cell to be associated within the table data range, determine a target cell matching the position of the cell to be associated from the second row and column of data; Associating the row and column numbers of the cell to be associated with the row and column numbers of the target cell to obtain cell association data of the cell to be associated and the target cell; After all the cells to be associated in the first row and column data are matched, all the obtained cell-associated data are stored as row and column associated data.

4. The method according to claim 1, It is characterized in that The step of synchronizing the table content data pasted to the target location with the table content data selected by the first reference operation by using the reference associated data includes: When the table content data pasted to the target location changes, obtaining the number of changed cell rows and columns, the changed content, and the reference associated data corresponding to the address identifier of the target location; For any of the changed cell row and column numbers, based on the reference associated data, determine the cell row and column number to be synchronized in the source table corresponding to the changed cell row and column number; The changed content is synchronized to the cells corresponding to the number of rows and columns of cells to be synchronized in the source table.

5. The method according to claim 4, It is characterized in that The determining, based on the reference associated data, the number of rows and columns of cells to be synchronized in the source table corresponding to the number of rows and columns of cells that have changed, comprises: Determining a source table to be synchronized based on the table identifier included in the reference associated data; Based on the row and column association data included in the reference association data, determining the target cell row and column numbers corresponding to the changed cell row and column numbers; The number of rows and columns of the target cells is determined to be the number of rows and columns of cells to be synchronized in the source table.

6. A data citation device, It is characterized in that The device comprises: A selection acquisition module, for acquiring, in response to a first reference operation of a user, table range data and table content data selected by the first reference operation, wherein the table range data includes a table identifier and first row and column data selected; the first row and column data are a start row, an end row, a start column, and an end column of the selected part; A paste acquisition module, used for pasting the table content data to a target location in response to a second reference operation by the user, and acquiring an address identifier of the target location and the second row and column data after pasting; An association module, used for associating and storing the table identifier, the first row and column data, the address identifier, and the second row and column data to obtain reference associated data; A synchronization module is used to synchronize the table content data pasted to the target location with the table content data selected by the first reference operation using the reference associated data.

7. The device according to claim 6, It is characterized in that The association module comprises: A first associating unit, used to associate the table identifier with the address identifier to obtain identifier association data; A second associating unit, configured to associate the first row and column data with the second row and column data in a table arrangement, cell by cell, to obtain row and column associated data; The mapping storage unit is used to map and store the identification associated data and the row-column associated data into reference associated data.

8. An electronic device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the data reference method as described in any one of claims 1 to 5.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the data reference method as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Cross-table reference method and device, server and client equipment

    CN112307731A

  • Data reference method and device, electronic equipment and storage medium

    CN116258124A

  • Information filling method and device, electronic equipment and storage medium

    CN116579309A

  • Method and system in an electronic spreadsheet for persistently copy-pasting a source range of cells onto one or more destination ranges of cells

    US20020049784A1

  • Method and system for generating and maintaining property sets with unique format identifiers

    US5467472A