Table view rendering method and device, electronic equipment and storage medium
The client only requests and processes local view structure information to render multi-dimensional table views, which solves the problem of large-scale view structure calculation and low synchronization efficiency under large-scale data, and achieves fast rendering and efficient rendering of table views.
Patent Information
- Application Number
- CN202411525208.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-02-07
AI Technical Summary
When the multi-dimensional table data rows reach 100,000 or even one million rows, the view structure is computationally large and synchronization efficiency is low, resulting in low table rendering efficiency.
When receiving rendering instructions, the client only presents the dependent local view structure based on the interface window, requests local structure information from the server, and builds and updates the view structure based on the requested local structure information, without calculating and synchronizing the complete view. structure.
Through the maintenance of the partial view structure, the client can realize the rapid rendering of the table view, which significantly improves the rendering efficiency of the table view.
Smart Images

Figure CN119396514A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular, to a rendering method, device, electronic device, and storage medium for a table view. Background Art
[0002] In the related art, the rendering process of a multidimensional table view may include: the server calculates the view structure according to the presentation conditions and synchronizes it to the client; the client draws the layout according to the view structure and loads the data to complete the table view rendering. When the number of multidimensional table data rows increases to 100,000 or even 1 million rows, the view structure calculation is large and the synchronization efficiency is low, resulting in low view rendering efficiency. Summary of the invention
[0003] The embodiments of the present disclosure provide a method, device, electronic device and storage medium for rendering a table view, which can effectively improve the rendering efficiency of the table view.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for rendering a table view, including:
[0005] Receive rendering instructions for the table view;
[0006] When the local structure information corresponding to the rendering instruction is not requested, requesting the local structure information from the server; wherein the local structure information includes local grouping node information and record node information;
[0007] If the view structure of the table view is not constructed, create a new view structure, and set the nodes of the view structure according to the requested local structure information;
[0008] When the view structure of the table view has been constructed, updating the nodes of the view structure according to the requested local structure information;
[0009] The view structure in the interface window is rendered.
[0010] In a second aspect, an embodiment of the present disclosure further provides a rendering device for a table view, including:
[0011] A receiving module, used for receiving rendering instructions of a table view;
[0012] A request module, configured to request the local structure information from the server when the local structure information corresponding to the rendering instruction is not requested; wherein the local structure information includes local grouping node information and record node information;
[0013] A construction module, used for creating a new view structure when the view structure of the table view is not constructed, and setting nodes of the view structure according to the requested local structure information;
[0014] An updating module, configured to update nodes of the view structure according to the requested local structure information when the view structure of the table view has been constructed;
[0015] A rendering module is used to render the view structure in the interface window.
[0016] In a third aspect, an embodiment of the present disclosure 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 the one or more programs are executed by the one or more processors, the one or more processors implement the method for rendering a table view as described in any of the embodiments of the present disclosure.
[0020] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the method for rendering a table view as described in any one of the embodiments of the present disclosure.
[0021] In the technical solution of the disclosed embodiment, a rendering instruction of a table view is received; when the local structure information corresponding to the rendering instruction is not requested, the local structure information is requested from the server; wherein the local structure information includes local grouping node information and record node information; when the view structure of the table view is not constructed, a new view structure is created, and the nodes of the view structure are set according to the requested local structure information; when the view structure of the table view has been constructed, the nodes of the view structure are updated according to the requested local structure information; and the view structure in the interface window is rendered.
[0022] Compared with the related art where the client requests the complete view structure from the server, in this embodiment, the client can only request the local structure information from the server based on the local view structure that the interface window presentation depends on, and can build and update the view structure based on the local structure information. Therefore, the server does not need to calculate the complete view structure, and does not need to synchronize the complete view structure to the client. By maintaining the local view structure, the client can achieve fast rendering of the table view, effectively improving the rendering efficiency of the table view. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0024] Figure 1 A flowchart of a table view rendering method provided by an embodiment of the present disclosure;
[0025] Figure 2 A schematic diagram of a view structure in a method for rendering a table view provided in an embodiment of the present disclosure;
[0026] Figure 3 A schematic diagram of signaling interaction of a table view rendering method provided in an embodiment of the present disclosure;
[0027] Figure 4 A schematic diagram of node marking of a view structure in a table view rendering method provided in an embodiment of the present disclosure;
[0028] Figure 5 A schematic diagram of the structure of a table view rendering device provided by an embodiment of the present disclosure;
[0029] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0031] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0032] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0033] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0034] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0035] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0036] Figure 1 A flowchart of a method for rendering a table view provided in an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the case of rendering a table view, for example, the case of rendering a multi-dimensional table view of large-scale data. The method can be executed by a rendering device for a table view, which can be implemented in the form of software and / or hardware, and the device can be integrated into a client and can be installed in an electronic device along with the client, for example, configured in a computer such as a mobile phone or a computer.
[0037] like Figure 1 As shown, the rendering method of the table view provided in this embodiment may include:
[0038] S110: Receive a rendering instruction for a table view.
[0039] In this embodiment, the client may generate a rendering instruction for the table view in response to an access operation, a browse operation, or an update operation of the table view, etc. The rendering instruction may be sent to a rendering device integrated in the client so that the rendering device receives the rendering instruction.
[0040] S120. When the local structure information corresponding to the rendering instruction is not requested, request the local structure information.
[0041] In this embodiment, the rendering instruction may carry identification information of the part to be rendered in the table view, and the table view may be considered as a view structure loaded with data. Furthermore, the rendering device may determine the local structure to be rendered in the view structure according to the identification information carried by the rendering instruction, and the local structure may be referred to as the local structure corresponding to the rendering instruction. Among them, the part to be rendered may include a fixed number of data items, or may include a number of data items determined according to the interface window size of the device to which the rendering device belongs. Exemplarily, in the case of generating a rendering instruction based on an access operation of a table view, the identification information may include identification information of the first screen rendering part of the table view (for example, 200 data items), and the local structure corresponding to the identification information in the view structure may be determined as the local structure corresponding to the rendering instruction.
[0042] Wherein, the local structure information may include local node information, and the node information may include, for example, grouping node information, and record node information under each grouping node. That is, the local structure information may include local grouping node information and record node information. Wherein, grouping may be understood as a table view that aggregates and displays one or more record data according to the set grouping conditions, and each corresponding group of aggregated results may be considered to belong to the same grouping node. Exemplarily, when the grouping condition is province or city, the record data of the same province or city may be aggregated and displayed, so that the grouping nodes of multiple provinces or cities are displayed in the table. Wherein, each record node under the grouping node may correspond to one record data. Wherein, the grouping node information may include the number of grouping nodes, and the identification of each grouping node and other information; wherein, the record node information may include the number of record nodes under each grouping node, and the identification of each record node and other information.
[0043] In this embodiment, the local structure information can be used to construct the view structure. If the local structure information has been requested in the past, it can be considered that the local structure information has been requested. In this case, it can be considered that the corresponding local structure is already included in the view structure, and there is no need to request the local structure information again. Instead, the local structure in the constructed view structure can be directly rendered in the interface window for display. If the local structure information has not been requested in the past, it can be considered that the local structure information has not been requested. In this case, the local structure information can be requested from the server.
[0044] S130: If the view structure of the table view has not been constructed, create a new view structure, and set the nodes of the view structure according to the requested local structure information.
[0045] When the table view is accessed for the first time, it can be considered that the view structure has not been constructed. At this time, the local structure information corresponding to the first screen data can be requested; a new view structure can be created using the existing view structure construction method; the nodes in the view structure are set according to the grouping node information and record node information in the local structure information to complete the construction of the view structure.
[0046] S140: When the view structure of the table view has been constructed, update the nodes of the view structure according to the requested local structure information.
[0047] When the table view is opened and browsed, edited, etc., it can be considered that the view structure corresponding to the table view has been constructed. At this time, the grouping nodes and record nodes can be updated in the constructed view structure according to the grouping node information and record node information in the local structure information.
[0048] For example, Figure 2 A schematic diagram of a view structure in a table view rendering method provided by an embodiment of the present disclosure. Figure 2 The view structure may include a tree structure, and the view structure may include a root node, a grouping node (such as grouping nodes 1-3, etc.) and a record node (such as record nodes 1-3, etc.). Figure 2 One level of grouping nodes is shown in the figure. In actual application, grouping nodes may not be included, or two or more levels of grouping nodes may be included. Figure 2 In the view structure shown, unfilled node boxes may represent nodes for which structural information has been requested, and dotted node boxes may represent nodes for which structural information has not been requested. Figure 2 It can be seen that the view structure maintained by the rendering device may include some grouping nodes and some record nodes, instead of having to maintain the entire view structure.
[0049] In some optional implementations, rendering instructions for a table view may be generated based on browsing operations of the table view. The browsing operations of the table view may include, for example, up / down scrolling operations of the table view. The situation in which the table view is opened and a rendering instruction is generated based on the browsing operation may be considered as a situation in which the view structure has been constructed. In this case, updating the nodes of the view structure according to the requested local structure information may include: adding nodes to the constructed view structure. In these optional implementations, when browsing to a preset progress of a rendered table view, a rendering instruction may be generated for requesting local structure information corresponding to the portion to be rendered in the table view. After receiving the local structure information returned by the server, nodes may be added to the constructed view structure according to the local structure information to update the view structure.
[0050] S150: Rendering the view structure in the interface window.
[0051] In this embodiment, the number of nodes in the local view structure corresponding to the rendering instruction may be greater than the number of nodes in the view structure presented in the interface window, so that the table view can be quickly presented by pre-building the view structure. Exemplarily, when the rendering instruction is generated based on the access operation, a view structure containing 200 record nodes can be constructed, and the view structure corresponding to 50 record nodes can be presented in the interface window, so that the view structure in the interface window can be quickly rendered when browsing subsequent table views.
[0052] In this embodiment, the part of the view structure that needs to be presented in the interface window can be rendered according to the constructed view structure. The view structure can be rendered by an existing rendering method. In addition, the data that needs to be presented in the interface window can be loaded into the view structure by an existing data loading method to realize the rendering of the table view.
[0053] For example, Figure 3 A signaling interaction diagram of a table view rendering method provided by an embodiment of the present disclosure. Figure 3 In steps 1-4, when the client 1 executes the rendering method provided by the embodiment of the present disclosure, in step 1, the client 1 can generate a rendering instruction in response to an access operation of the table view; in step 2, the rendering device in the client 1 can request local structure information from the server according to the rendering instruction; in step 3, the server can return the local structure information to the client 1; in step 4, the rendering device in the client 1 can create a new view structure, and set the nodes of the view structure according to the local structure information to realize view structure construction, and can render the view structure in the interface window.
[0054] See also Figure 3 In steps 15-16, when the client 1 executes the rendering method provided by the embodiment of the present disclosure, in step 15, the client 1 may generate a rendering instruction in response to the scrolling operation of the table view; in step 16, the rendering device in the client 1 may execute steps 2-4 to realize the rendering of the view structure when the view structure is not constructed in the current interface window.
[0055] In the technical solution of the disclosed embodiment, a rendering instruction of a table view is received; when the local structure information corresponding to the rendering instruction is not requested, the local structure information is requested from the server; wherein the local structure information includes local grouping node information and record node information; when the view structure of the table view is not constructed, a new view structure is created, and the nodes of the view structure are set according to the requested local structure information; when the view structure of the table view has been constructed, the nodes of the view structure are updated according to the requested local structure information; and the view structure in the interface window is rendered.
[0056] Compared with the related art where the client requests the complete view structure from the server, in this embodiment, the client can only request the local structure information from the server based on the local view structure that the interface window presentation depends on, and can build and update the view structure based on the local structure information. Therefore, the server does not need to calculate the complete view structure, and does not need to synchronize the complete view structure to the client. By maintaining the local view structure, the client can achieve fast rendering of the table view, effectively improving the rendering efficiency of the table view.
[0057] The various optional schemes in the table view rendering method provided in the embodiment of the present disclosure and the above embodiment can be combined. The table view rendering method provided in this embodiment describes in detail the situation of rendering the table view when it is edited. By marking the view structure nodes affected by the editing instructions, it is beneficial to realize the local update of the view structure, which can ensure a high update efficiency of the view structure.
[0058] The table view rendering method provided in this embodiment may further include: receiving an editing instruction of the table view; and marking the changed nodes in the view structure when the editing instruction causes the view structure to change.
[0059] Among them, the editing instructions of the table view can be generated based on at least one of the following editing operations: resetting the grouping conditions, resetting the filtering conditions, resetting the sorting conditions, and adding, deleting, changing and changing the grouping of record data. Among them, editing the table view based on the editing instructions may cause the view structure to change, or it may not change the view structure. Exemplarily, in the case of resetting the grouping conditions, the view structure will usually change as a whole; in the case of adding record data, some nodes of the view structure will change; in the case of changing the record data, the view structure will not change.
[0060] In this embodiment, there is a situation where the view structure changes due to editing instructions, but the change is not presented in the current interface window. For example, in the case of record data change grouping, the grouping node to which the record data is changed may not be presented in the current interface window. In this embodiment, when editing the table view based on the editing instructions will cause a change in the view structure, the changed nodes in the view structure can be marked (also called dirty marking), so that when the view structure to be rendered in the interface window contains marked nodes, the marked nodes in the view structure can be partially updated to ensure a high update efficiency of the view structure.
[0061] For example, Figure 4 A schematic diagram of node marking in a view structure in a table view rendering method provided by an embodiment of the present disclosure. It can be considered that: Figure 4 for Figure 2 A schematic diagram of node labeling based on the view structure shown. Figure 4 ,The node box filled with slashes can represent the nodes that need to be changed within the constructed view structure. Figure 4 In the example, the marked nodes may include the grouping node 2 and the record node 3 contained therein.
[0062] In addition, if the editing instruction does not cause the view structure to change, there is no need to mark the view structure, and only the data changes corresponding to the editing instruction can be recorded. In this way, the loaded record data can be updated only according to the recorded information without changing the view structure, which is conducive to the fast presentation of the table view.
[0063] In some optional implementations, the rendering method of the table view may also include: generating first editing description information according to the editing instruction, and sending the first editing description information to the server, so that the server updates the table data of the table view according to the first editing description information; upon receiving the first update success message sent by the server, and the interface window contains the marked node, re-requesting local structure information from the server to re-render the view structure in the interface window; wherein the first update success message corresponds to the first editing description information.
[0064] The first edit description information may be in the form of a code segment, and the code segment may include a plurality of fields and corresponding values. The first edit description information may include a node identifier of a changed node, such as a grouping node identifier and / or a record node identifier. In addition, the first edit description information may also include changed record data, which may be used to update the record data.
[0065] See also Figure 3In steps 5-7, 9-10 and 12, when the client 1 executes the rendering method provided by the embodiment of the present disclosure, in step 5, the client 1 may generate an editing instruction in response to the editing operation; in step 6, the rendering device in the client 1 may mark the changed nodes in the view structure when the editing instruction causes the view structure to change; in step 7, the rendering device in the client 1 may generate first editing description information according to the editing instruction, and send the first editing description information to the server; in step 9, the server may update the record data of the table view according to the first description information and save it to a preset database; in step 10, the server may return a first update success message corresponding to the first editing description information to the client 1 after the update is completed; in step 12, the client 1 may re-request the local structure information from the server when receiving the first update success message and the current interface window contains the marked node, so as to execute steps 2-4 again to achieve re-rendering of the view structure in the interface window.
[0066] In addition, if the server fails to update successfully, the server may also return a first update failure message corresponding to the first edit description information, so that the client 1 displays the interface window before editing. In addition, if the current interface window does not contain the marked node, there is no need to re-render the view structure of the interface window.
[0067] In these optional implementations, when the server is updated successfully and the interface window contains a marked node, the view structure within the interface window can be partially updated, thereby avoiding the situation where the server and client updates are out of sync, speeding up the view structure update efficiency, and avoiding the situation where the interface window does not contain a marked node, the interface window content is frequently updated to affect the user's perception, thereby improving the user experience.
[0068] The technical solution of the embodiment of the present disclosure describes in detail the rendering of the table view when it is edited. By marking the view structure nodes affected by the editing instructions, it is beneficial to achieve local updates of the view structure, which can ensure a high update efficiency of the view structure. In addition, the rendering method of the table view provided in the embodiment of the present disclosure and the rendering method of the table view provided in the above embodiment belong to the same public concept. The technical details not described in detail in this embodiment can be found in the above embodiment, and the same technical features have the same beneficial effects in this embodiment and the above embodiment.
[0069] The various optional schemes in the rendering method of the table view provided in the embodiment disclosed herein and in the above-mentioned embodiment can be combined. The rendering method of the table view provided in this embodiment describes in detail the rendering situation when the collaboratively editable table view is edited by other clients. When other clients edit the table view, the second edit description information forwarded by the server can be received. By marking the view structure nodes affected by the second edit description information, it is beneficial to realize the local update of the view structure, which can ensure a high update efficiency of the view structure.
[0070] The rendering method of the table view provided in this embodiment may also include: receiving second editing description information sent by the server; wherein the second editing description information is generated by other clients except the present client; upon receiving a second update success message sent by the server, marking the changed nodes in the view structure according to the second editing description information; wherein the second update success message corresponds to the second editing description information.
[0071] In this embodiment, the table view may include a table view that can be collaboratively edited by multiple clients. In the case where other clients other than the present client receive an edit instruction for the table view, and the edit instruction causes the view structure to change, the other clients may generate second edit description information. The second edit description information is essentially the same as the first edit description information, and the fields included may be the same. Compared with the present client, the edit description information generated by the present client may be referred to as the first edit description information, and the edit description information generated by other clients other than the present client may be referred to as the second edit description information. It can be understood that the same edit description information may be referred to as the first edit description information or the second edit description information in different clients.
[0072] Among them, when the server receives the second edit description information sent by any other client within the collaborative scope, it can synchronize it to the current client. Among them, the server can update the record data of the table view according to the second description information and save it to the preset database; and after the update is completed, it can send a second update success message corresponding to the second edit description information to all clients within the collaborative scope. When this client receives the second update success message, it can mark the changed nodes in the view structure according to the node identifier of the changed node contained in the second edit description information. Therefore, when the view structure to be rendered in the interface window contains marked nodes, the marked nodes in the view structure can be partially updated to ensure a high update efficiency of the view structure.
[0073] The server may synchronize the second edit description information to the client at the same time or before updating the record data of the table view according to the second edit description information, so that the client can pre-cache the second edit description information, which can improve the update efficiency of the view structure to a certain extent.
[0074] See also Figure 3 In steps 8-9, 11 and 13-14, when the client 2 executes the rendering method provided by the embodiment of the present disclosure, in step 8, the client 2 may receive the second edit description information sent by the server; wherein the second edit description information is generated by the client 1 outside the client; in step 9, the server may update the record data of the table view according to the second description information and save it to the preset database; in step 11, the server may send a second update success message to the client 2 after the update is completed; in step 13, the client 2 may mark the changed nodes in the view structure according to the second edit description information when receiving the second update success message; in step 14, when the view structure to be rendered in the current interface window contains the marked node, the local structure information may be re-requested from the server to execute steps 2-4 again to achieve re-rendering of the view structure in the interface window. In addition, step 14 may also include that when the marked node is not contained in the current interface window, the view structure of the interface window does not need to be re-rendered.
[0075] In some optional implementations, the rendering method of the table view may also include: when a rendering instruction is received, local structure information has been requested, and the interface window contains a marked node, re-requesting local structure information from the server to re-render the view structure within the interface window.
[0076] See again Figure 3 In steps 15-16, when the client 1 executes the rendering method provided by the embodiment of the present disclosure, in step 15, the client 1 may generate a rendering instruction in response to the scrolling operation of the table view; step 16 may also include that the rendering device in the client 1, when the view structure in the current interface window has been constructed and contains marked nodes, may re-request local structure information from the server to execute steps 2-4 again to achieve re-rendering of the view structure in the interface window.
[0077] In these optional implementations, when browsing the table view portion of the constructed view structure and the interface window contains marked nodes, the marked nodes of the view structure can be partially updated, thereby improving the updating efficiency of the view structure.
[0078] In addition, in some optional implementations, the table view rendering method may further include: when a rendering instruction is received, local structure information is requested, and the interface window does not contain a marked node, the view structure in the interface window is rendered according to the constructed view structure. In these optional implementations, when browsing the table view portion of the constructed view structure and the interface window does not contain a marked node, the view structure in the interface window is rendered according to the constructed view structure, thereby improving the rendering efficiency of the view structure.
[0079] The technical solution of the embodiment of the present disclosure describes in detail the rendering situation when the collaboratively editable table view is edited by other clients. When other clients edit the table view, second edit description information forwarded by the server can be received. By marking the view structure nodes affected by the second edit description information, it is beneficial to achieve local updates of the view structure, which can ensure a high update efficiency of the view structure. In addition, the rendering method of the table view provided in the embodiment of the present disclosure and the rendering method of the table view provided in the above embodiment belong to the same public concept, and the technical details not fully described in this embodiment can be found in the above embodiment, and the same technical features have the same beneficial effects in this embodiment and the above embodiment.
[0080] Figure 5 The present invention is a schematic diagram of a table view rendering device provided by an embodiment of the present invention. The table view rendering device provided by this embodiment is applicable to table view rendering, for example, to multi-dimensional table view rendering of large-scale data.
[0081] like Figure 5 As shown, the table view rendering device provided by the embodiment of the present disclosure may include:
[0082] A receiving module 510, configured to receive a rendering instruction of a table view;
[0083] The request module 520 is used to request the local structure information from the server when the local structure information corresponding to the rendering instruction is not requested; wherein the local structure information includes local grouping node information and record node information;
[0084] A construction module 530, used to create a new view structure when the view structure of the table view has not been constructed, and to set nodes of the view structure according to the requested local structure information;
[0085] An updating module 540, configured to update nodes of the view structure according to the requested local structure information when the view structure of the table view has been constructed;
[0086] The rendering module 550 is used to render the view structure in the interface window.
[0087] In some optional implementations, the rendering instructions of the table view are generated based on the browsing operation of the table view;
[0088] The construction module can be used to add nodes to the constructed view structure.
[0089] In some optional implementations, the receiving module may also be used to: receive an editing instruction of the table view;
[0090] The rendering device of the table view may also include:
[0091] The marking module is used to mark the changed nodes in the view structure when the editing instruction causes the view structure to change.
[0092] In some optional implementations, the table view rendering device may further include:
[0093] A sending module, used for generating first editing description information according to the editing instruction, and sending the first editing description information to the server, so that the server updates the table data of the table view according to the first editing description information;
[0094] Correspondingly, the rendering module can also be used to re-request local structure information from the server when a first update success message sent by the server is received and the interface window contains a marked node, so as to re-render the view structure within the interface window; wherein the first update success message corresponds to the first editing description information.
[0095] In some optional implementations, the receiving module may also be used to:
[0096] Receiving second edit description information sent by the server; wherein the second edit description information is generated by another client other than the client;
[0097] Correspondingly, the marking module may also be used to mark the changed nodes in the view structure according to the second edit description information when receiving the second update success message sent by the server;
[0098] The second update success message corresponds to the second edit description information.
[0099] In some optional implementations, the rendering module may also be used to:
[0100] When a rendering instruction is received, local structure information has been requested, and the interface window contains a marked node, the local structure information is re-requested from the server to re-render the view structure in the interface window.
[0101] In some optional implementations, the rendering module may also be used to:
[0102] When a rendering instruction is received, local structure information is requested, and the interface window does not contain a marked node, the view structure in the interface window is rendered according to the constructed view structure.
[0103] The table view rendering device provided in the embodiments of the present disclosure can execute the table view rendering method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0104] It is worth noting that the various units and modules included in the above-mentioned device 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 protection scope of the embodiments of the present disclosure.
[0105] Reference below Figure 6 , which shows an electronic device (eg, Figure 6 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0106] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 to a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0107] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0108] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the rendering method of the table view of the embodiment of the present disclosure are executed.
[0109] The electronic device provided in the embodiment of the present disclosure and the rendering method of the table view provided in the above embodiment belong to the same disclosed concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0110] The embodiments of the present disclosure provide a storage medium of computer executable instructions. When the computer executable instructions are executed by a computer processor, they can be used to execute the method for rendering a table view provided in the above embodiments.
[0111] It should be noted that the storage medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or a flash memory (FLASH), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing executable instructions, which may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable executable instruction. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit executable instructions for use by or in conjunction with an instruction execution system, apparatus, or device. The executable instructions contained on the storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0112] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0113] The storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0114] The storage medium carries one or more executable instructions. When the one or more executable instructions are executed by the electronic device, the electronic device:
[0115] Receive rendering instructions for a table view; if local structure information corresponding to the rendering instructions is not requested, request local structure information from the server; wherein the local structure information includes local grouping node information and record node information; if the view structure of the table view is not constructed, create a new view structure, and set the nodes of the view structure according to the requested local structure information; if the view structure of the table view has been constructed, update the nodes of the view structure according to the requested local structure information; render the view structure in the interface window.
[0116] Executable instructions for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The executable instructions may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0117] The embodiments of the present disclosure further provide a computer program product, including a computer program, which, when executed by a processor, can implement a method for rendering a table view as provided in any one of the embodiments of the present disclosure.
[0118] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code for the disclosed operation, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0119] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0120] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the names of the units and modules do not, in some cases, limit the units and modules themselves.
[0121] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Parts (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), etc.
[0122] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0123] According to one or more embodiments of the present disclosure, a method for rendering a table view is provided, the method comprising:
[0124] Receive rendering instructions for the table view;
[0125] When the local structure information corresponding to the rendering instruction is not requested, requesting the local structure information from the server; wherein the local structure information includes local grouping node information and record node information;
[0126] If the view structure of the table view is not constructed, create a new view structure, and set the nodes of the view structure according to the requested local structure information;
[0127] When the view structure of the table view has been constructed, updating the nodes of the view structure according to the requested local structure information;
[0128] The view structure in the interface window is rendered.
[0129] According to one or more embodiments of the present disclosure, a method for rendering a table view is provided, further comprising:
[0130] In some optional implementations, the rendering instruction of the table view is generated based on a browsing operation of the table view;
[0131] The updating of the nodes of the view structure according to the requested local structure information includes: adding nodes to the constructed view structure.
[0132] According to one or more embodiments of the present disclosure, a method for rendering a table view is provided, further comprising:
[0133] In some optional implementations, receiving an edit instruction for the table view;
[0134] When the editing instruction causes the view structure to be changed, the changed nodes in the view structure are marked.
[0135] According to one or more embodiments of the present disclosure, a method for rendering a table view is provided, further comprising:
[0136] In some optional implementations, first edit description information is generated according to the edit instruction, and the first edit description information is sent to the server, so that the server updates the table data of the table view according to the first edit description information;
[0137] When the first update success message sent by the server is received and the interface window contains a marked node, the local structure information is re-requested from the server to re-render the view structure in the interface window; wherein the first update success message corresponds to the first editing description information.
[0138] According to one or more embodiments of the present disclosure, a method for rendering a table view is provided, further comprising:
[0139] In some optional implementations, second edit description information sent by the server is received; wherein the second edit description information is generated by another client other than the client;
[0140] When receiving the second update success message sent by the server, marking the changed nodes in the view structure according to the second edit description information;
[0141] The second update success message corresponds to the second edit description information.
[0142] According to one or more embodiments of the present disclosure, a method for rendering a table view is provided, further comprising:
[0143] In some optional implementations, when the rendering instruction is received, the local structure information has been requested, and the interface window contains a marked node, the local structure information is re-requested from the server to re-render the view structure within the interface window.
[0144] According to one or more embodiments of the present disclosure, a method for rendering a table view is provided, further comprising:
[0145] In some optional implementations, when the rendering instruction is received, the local structure information is requested, and the interface window does not contain a marked node, the view structure in the interface window is rendered according to the constructed view structure.
[0146] According to one or more embodiments of the present disclosure, a rendering device for a table view is provided, the device comprising:
[0147] A receiving module, used for receiving rendering instructions of a table view;
[0148] A request module, configured to request the local structure information from the server when the local structure information corresponding to the rendering instruction is not requested; wherein the local structure information includes local grouping node information and record node information;
[0149] A construction module, used for creating a new view structure when the view structure of the table view is not constructed, and setting nodes of the view structure according to the requested local structure information;
[0150] An updating module, configured to update nodes of the view structure according to the requested local structure information when the view structure of the table view has been constructed;
[0151] A rendering module is used to render the view structure in the interface window.
[0152] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0153] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0154] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A method for rendering a table view, characterized in that: include: Receive rendering instructions for the table view; When the local structure information corresponding to the rendering instruction is not requested, requesting the local structure information from the server; wherein the local structure information includes local grouping node information and record node information; If the view structure of the table view is not constructed, create a new view structure, and set the nodes of the view structure according to the requested local structure information; When the view structure of the table view has been constructed, updating the nodes of the view structure according to the requested local structure information; The view structure in the interface window is rendered.
2. The method according to claim 1, characterized in that A rendering instruction of the table view is generated based on a browsing operation of the table view; The updating of the nodes of the view structure according to the requested local structure information includes: adding nodes to the constructed view structure.
3. The method according to claim 1, characterized in that Also includes: Receiving an editing instruction of the table view; When the editing instruction causes the view structure to be changed, the changed nodes in the view structure are marked.
4. The method according to claim 3, characterized in that: Also includes: Generate first edit description information according to the edit instruction, and send the first edit description information to the server, so that the server updates the table data of the table view according to the first edit description information; When the first update success message sent by the server is received and the interface window contains a marked node, the local structure information is re-requested from the server to re-render the view structure in the interface window; wherein the first update success message corresponds to the first editing description information.
5. The method according to claim 1, characterized in that Also includes: Receiving second edit description information sent by the server; wherein the second edit description information is generated by another client other than the client; When receiving the second update success message sent by the server, marking the changed nodes in the view structure according to the second edit description information; The second update success message corresponds to the second edit description information.
6. The method according to any one of claims 3 or 5, characterized in that: Also includes: When the rendering instruction is received, the local structure information has been requested, and the interface window contains the marked node, the local structure information is re-requested from the server to re-render the view structure in the interface window.
7. The method according to any one of claims 1 to 5, characterized in that: Also includes: When the rendering instruction is received, the local structure information is requested, and the interface window does not include the marked node, the view structure in the interface window is rendered according to the constructed view structure.
8. A rendering device for a table view, characterized in that: include: A receiving module, used for receiving rendering instructions of a table view; A request module, configured to request the local structure information from the server when the local structure information corresponding to the rendering instruction is not requested; wherein the local structure information includes local grouping node information and record node information; A construction module, used for creating a new view structure when the view structure of the table view is not constructed, and setting nodes of the view structure according to the requested local structure information; An updating module, configured to update nodes of the view structure according to the requested local structure information when the view structure of the table view has been constructed; A rendering module is used to render the view structure in the interface window.
9. An electronic device, characterized in that: The electronic device comprises: 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 table view rendering method as described in any one of claims 1 to 7.
10. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to perform the table view rendering method according to any one of claims 1 to 7 when executed by a computer processor.
11. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the method for rendering a table view as claimed in any one of claims 1 to 7.
Citation Information
Patent Citations
Method and device for page rendering
CN106598574A
Questionnaire display control method and device, storage medium and electronic equipment
CN111831815A
Data table processing method and equipment
CN114579658A
User interface virtualization for large-volume structural data
US20190310869A1
Version compatibility metadata transformation
US20240272893A1
Cited By
Table view rendering method and apparatus, electronic device, and storage medium
WO2026091469A1