Table rendering method and device, equipment and medium
By dynamically inserting entity specification attribute columns in online tables, centrally managing entity information of different categories, the inefficiency problem caused by multi-table management is solved, and more efficient entity information processing is achieved.
Patent Information
- Application Number
- CN202411765977.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2044-12-03
AI Technical Summary
With the increase in entity categories, different tables are set up for entities of different categories in the prior art, resulting in excessive number of tables and low processing efficiency.
By responding to the target entity category identification entered by the user in an online table, obtain the corresponding entity specification attribute identification and dynamically insert the necessary dynamic columns to render the entity specification attribute information and centrally manage the relevant information of all entity categories.
It realizes centralized management of information of all entity categories in one online table, improves the processing efficiency of entity information, and avoids the complexity and inefficiency brought about by multiple table management.
Smart Images

Figure CN119830877A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a table rendering method, device, equipment and medium. Background Art
[0002] In daily production and life, it is common to carry out inventory management of physical products. Among them, when conducting inventory management, managing the physical stock keeping unit (SKU) is a common means. Among them, SKU usually contains multiple specification attributes of the corresponding entity, for example, it may include the color, size, weight and other specification attributes of the corresponding entity.
[0003] In the related art, entities are managed based on tables. Since the attribute information corresponding to products of different categories is inconsistent, a corresponding table is set separately for each category of entity, and entities of different categories are managed using different tables.
[0004] However, as the number of entity categories increases, setting different tables for entities of different categories will result in a large number of tables. Related processing of information of entities of different categories based on multiple different tables will result in inefficient processing of entity information. Summary of the invention
[0005] In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a table rendering method, device, equipment and medium.
[0006] The embodiment of the present disclosure provides a table rendering method, the method comprising the following steps: in response to monitoring that a user inputs a target entity category identifier in an entity category column of an online table, acquiring at least one first entity specification attribute identifier corresponding to the target entity category identifier; comparing whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than the first column number of the current dynamic column in the online table;
[0007] In response to being greater than the first column number, calculating a first difference between the attribute quantity corresponding to the at least one first entity specification attribute identifier and the first column number;
[0008] Inserting a dynamic column corresponding to the first difference in the online table to obtain an updated current dynamic column;
[0009] The at least one first entity specification attribute identifier is rendered in a row corresponding to the target entity category identifier and in an updated current dynamic column.
[0010] The disclosed embodiment also provides a table rendering device, the device comprising: an acquisition module, for, in response to monitoring that a user inputs a target entity category identifier in an entity category column of an online table, acquiring at least one first entity specification attribute identifier corresponding to the target entity category identifier; a comparison module, for comparing whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than a first column number of current dynamic columns in the online table; a rendering processing module, for, in response to being greater than the first column number, calculating a first difference between the number of attributes corresponding to the at least one first entity specification attribute identifier and the first column number, inserting a dynamic column corresponding to the first difference into the online table to obtain an updated current dynamic column, and rendering the at least one first entity specification attribute identifier in a row where the target entity category identifier is located and in the corresponding updated current dynamic column.
[0011] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the table rendering method provided by the embodiment of the present disclosure.
[0012] The embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the table rendering method provided by the embodiment of the present disclosure.
[0013] The embodiment of the present disclosure further provides a computer program product, including a computer program, wherein the computer program, when executed by a processor, performs the table rendering method provided by the embodiment of the present disclosure.
[0014] The technical solution provided by the embodiment of the present disclosure has the following advantages over the prior art: the table rendering solution provided by the embodiment of the present disclosure, in response to monitoring that the user inputs the target entity category identifier in the entity category column of the online table, obtains at least one first entity specification attribute identifier corresponding to the target entity category identifier, compares whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than the first column number of the current dynamic column in the online table, and then, in response to being greater than the first column number, calculates the first difference between the number of attributes corresponding to the at least one first entity specification attribute identifier and the first column number; inserts a dynamic column corresponding to the first difference in the online table to obtain the updated current dynamic column; renders at least one first entity specification attribute identifier in the row where the target entity category identifier is located and in the corresponding updated current dynamic column. In the technical solution, all relevant information of the entity categories is managed in an online table in the form of dynamic columns, which improves the processing efficiency of entity information. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] 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.
[0016] Figure 1 A schematic diagram of a table for managing entity category information in the prior art;
[0017] Figure 2 A schematic diagram of an online table for managing entity category information provided by an embodiment of the present disclosure;
[0018] Figure 3 A flowchart of a table rendering method provided in an embodiment of the present disclosure;
[0019] Figure 4 A schematic diagram of a physical category selection interface provided in an embodiment of the present disclosure;
[0020] Figure 5 A schematic diagram of another online table for managing entity category information provided by an embodiment of the present disclosure;
[0021] Figure 6 A schematic diagram of the structure of a table rendering device provided in an embodiment of the present disclosure;
[0022] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] 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.
[0024] 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.
[0025] 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.
[0026] 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.
[0027] 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".
[0028] 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.
[0029] As mentioned above, in the prior art, the specification attributes corresponding to entities of different categories are different. For example, Figure 1 For the entity "Tripropylene Polypropylene Pipe", it contains specification attributes such as "model" and "color", so for the inventory management of "Tripropylene Polypropylene Pipe", a table 1 is set, and the headers in table 1 include "model" and "color", etc.; for the entity "table", it contains specification attributes such as "size", "color" and "material", etc. Since the specification attributes of the two entities are not exactly the same, a table 2 is set for "table", and the headers in table 2 include "size", "color" and "material", etc.
[0030] Managing entities of different categories with different tables will result in a large number of tables, which will lead to low table rendering efficiency. For example, in the scenario of managing all entities, it is necessary to open the corresponding tables one by one, resulting in low management efficiency.
[0031] In order to solve the above technical problems, the present disclosure proposes a solution for processing entity information based on online tables. The specification attribute information of entities of different categories can be displayed in the same online table. Therefore, in the scenario of processing all entities, it is only necessary to view the online table, which improves the rendering efficiency of the table.
[0032] That is, in the embodiments of the present disclosure, the above Figure 1 Based on the scenario shown, Figure 2As shown, for the entity "Tripropylene Polypropylene Tube", specification attributes such as "model" and "color" can be displayed in the first row of the online table, and for the entity "table", specification attributes such as "size", "color" and "material" can be displayed in the second row of the online table. In this way, even entities of different categories with different specification attributes can be managed in the same online table.
[0033] The method is introduced below in conjunction with specific embodiments.
[0034] Figure 3 The present invention provides a flowchart of a table rendering method provided by an embodiment of the present invention. The method can be executed by a table rendering device, wherein the device can be implemented by software and / or hardware and can generally be integrated in an electronic device. Figure 3 As shown, the method includes:
[0035] Step 301 : in response to monitoring that a user inputs a target entity category identifier in an entity category column of an online form, obtaining at least one first entity specification attribute identifier corresponding to the target entity category identifier.
[0036] It should be noted that the columns of the online table in the embodiment of the present disclosure at least include an entity category column, wherein each row of cells in the entity category column is used to display the entity category identifier, and displaying the entity category identifier may include displaying the name of the entity category, the number of the entity category, and any other information that identifies the entity category.
[0037] In one embodiment of the present disclosure, it is monitored whether the user enters a target entity category identifier in the entity category column of the online form, wherein the method of entering the target entity category identifier varies in different application scenarios, as shown in the following examples:
[0038] In some possible examples, the user's category input operation in the entity category column is obtained, and the input operation is different in different scenarios. For example, if a user click operation on any cell in the entity category column is detected, the category input operation is obtained.
[0039] In response to obtaining a user's category input operation in the entity category column, an entity category selection interface is displayed, wherein the entity category selection interface is used to display candidate entity category identifiers to be selected, wherein the candidate entity category identifiers to be selected include at least one.
[0040] In this embodiment, the way in which the entity category selection interface displays the identifiers of candidate entity categories to be selected can be set according to the needs of the scene, for example, Figure 4As shown, the candidate entity category identifiers to be selected can be displayed in a drop-down menu, wherein the candidate entity category identifiers to be selected in the figure are category names of corresponding entity categories, including "tripropylene tube", "cable tie", "pipe plug", "pipe cap", "bridge", etc. In this embodiment, in response to obtaining the user's selection operation on the target entity category identifier in the candidate entity category identifiers, the input target entity category identifier is monitored.
[0041] Further, in response to monitoring that the user inputs a target entity category identifier in the entity category column of the online form, at least one first entity specification attribute identifier corresponding to the target entity category identifier is obtained. As mentioned above, the entity specification attribute is related to the corresponding entity category. For example, when the entity category is "table", its corresponding specification attributes may include "size", "color" and "material". The entity specification attribute identifier may include any information that can indicate the specification attributes of the entity category, such as the entity specification attribute name and specification attribute code.
[0042] Step 302 : comparing whether the attribute quantity corresponding to at least one first entity specification attribute identifier is greater than the first column quantity of the current dynamic column in the online form.
[0043] After obtaining at least one first entity specification attribute identifier, compare whether the attribute quantity corresponding to the at least one first entity specification attribute identifier is greater than the first column number of the current dynamic column in the online table, wherein the first column number may be 0. For example, when there is no relevant information of any stored entity category in the online table, the corresponding first column number may be 0.
[0044] It should be understood that in the embodiments of the present disclosure, the dynamic column in the online table is used as a carrier for rendering the entity specification attribute identifier of the entity category. The table header where the dynamic column is located does not correspond to a specific entity specification attribute identifier. The table header where the dynamic column is located may not display any information. The table header where the dynamic column is located may also display some upper-level indication information, such as continuing to refer to Figure 2 The table header where the dynamic column is located can display high-level indication information such as "entity specification attribute 1", "entity specification attribute 2", and "entity specification attribute 3".
[0045] In this embodiment, whether the number of attributes corresponding to at least one first entity specification attribute identifier is greater than the first column number of the current dynamic column in the online form is compared to determine whether the current dynamic column is sufficient for displaying the first entity specification attribute identifier.
[0046] Step 303: In response to being greater than the first column number, a first difference between the attribute quantity corresponding to at least one first entity specification attribute identifier and the first column number is calculated.
[0047] Step 304: insert a dynamic column corresponding to the first difference value into the online table to obtain an updated current dynamic column.
[0048] Step 305 , rendering at least one first entity specification attribute identifier in the row where the target entity category identifier is located and in the corresponding updated current dynamic column.
[0049] In one embodiment of the present disclosure, if the number of attributes corresponding to at least one first entity specification attribute identifier is greater than the first number of columns, it indicates that the current dynamic column is insufficient for displaying the first entity specification attribute identifier. Thus, in this embodiment, the first difference between the number of attributes corresponding to at least one first entity specification attribute identifier and the first number of columns is calculated, and a dynamic column corresponding to the first difference is inserted into the online table to obtain an updated current dynamic column, wherein the column can be inserted after the last column of the current dynamic column, or after the column of the current dynamic column, and the insertion position can be set as needed. After the dynamic column is inserted, the updated current dynamic column is obtained. Furthermore, at least one first entity specification attribute identifier is rendered in the row where the target entity category identifier is located and in the corresponding updated current dynamic column.
[0050] In this embodiment, at least one target dynamic column matching the number of attributes may be determined in the updated current dynamic column, and then at least one first entity specification attribute identifier may be rendered in at least one cell corresponding to the row where the target entity category identifier is located and the at least one target dynamic column, wherein the at least one cell corresponding to the target dynamic column corresponds one-to-one to the at least one first entity specification attribute identifier. Figure 2 Based on the scenario shown, Figure 5 As shown, if the target entity category is identified as "pipe cap", the first entity specification attribute identification includes "model", "pipe cap shape", "material", and "pressure level". The current dynamic column includes three columns of "entity specification attribute 1", "entity specification attribute 2", and "entity specification attribute 3", which are not enough to display the four first entity specification attribute identifications. Therefore, in this embodiment, a new dynamic column "entity specification attribute 4" is added after "entity specification attribute 1", "entity specification attribute 2", and "entity specification attribute 3". In the dynamic columns corresponding to the row of "pipe cap" and "entity specification attribute 1", "entity specification attribute 2", "entity specification attribute 3", and "entity specification attribute 4", "model", "pipe cap shape", "material", "pressure level", etc. are rendered respectively. Similarly, in this embodiment, the attribute values of "model", "pipe cap shape", "material", and "pressure level" can also be obtained, and the attribute values are displayed in the corresponding cells.
[0051] In one embodiment of the present disclosure, when the number of attributes corresponding to at least one first entity specification attribute identifier is not greater than the first number of columns, it indicates that the current dynamic column is sufficient for displaying the first entity specification attribute identifier. Thus, in this embodiment, at least one first entity specification attribute identifier is rendered in the row where the target entity category identifier is located and the corresponding current dynamic column.
[0052] In some possible implementations, at least one target dynamic column that matches the number of attributes is determined in the corresponding current dynamic column, that is, it is possible that the first column number of the current dynamic column is the same as the number of attributes corresponding to the first entity specification attribute identifier. In this case, all current dynamic columns are determined as target columns. It is possible that the first column number of the current dynamic column is less than the number of attributes corresponding to the first entity specification attribute identifier. In this case, at least one target dynamic column that matches the number of attributes is selected in the current column. For example, the first column of the current dynamic column can be used as the starting column, and a continuous number of dynamic columns of attributes can be selected as the target dynamic column; for another example, a number of dynamic columns of attributes can be randomly selected from the current dynamic column as the target dynamic column.
[0053] Furthermore, in at least one cell corresponding to the row where the target entity category identifier is located and at least one target dynamic column, at least one first entity specification attribute identifier is rendered, wherein at least one cell corresponding to the target dynamic column corresponds one-to-one to the at least one first entity specification attribute identifier.
[0054] Continue to refer to Figure 2 If the target entity category is identified as "table", the first entity specification attribute identifiers such as "size", "color" and "material" are displayed in the dynamic columns corresponding to "entity specification attribute 1", "entity specification attribute 2" and "entity specification attribute 3".
[0055] In one embodiment of the present disclosure, after rendering the first entity specification attribute identifier, the attribute value corresponding to the first entity specification attribute identifier may also be rendered in the corresponding cell, for example, a specific size value "1.5*1.3" may be rendered in the "Size" cell, etc. In this embodiment, the attribute value of the target entity specification attribute input by the user may be received and the attribute value may be rendered in the target cell where the target entity specification attribute is located. In other possible implementations, other methods may also be used to obtain the attribute value, for example, the user ID of the corresponding user may be read, and the preset corresponding relationship may be queried to determine the entity category ID corresponding to the user ID, as well as the entity specification attribute and attribute value corresponding to the entity category ID.
[0056] Therefore, in this embodiment, the complexity problem of traditional multi-table management is solved. The relevant information of all entity categories is concentrated in one online table, which simplifies the management process. The dynamic columns of the online table can be dynamically rendered according to the entity specification attributes. This dynamic adjustment capability enables the online table to flexibly adapt to the management needs of the entity specification attributes of different entity categories without the need to create a separate table for each entity category.
[0057] In the actual implementation process, in order to further improve the rendering efficiency of the table, a fixed column can also be set in the online table. The table header corresponding to the fixed column displays the entity specification attribute identifiers common to a large number of entity categories. The common entity specification attribute identifiers may include, for example, "brand", "product name", etc. Therefore, in this embodiment, when obtaining the attribute value of the entity specification attribute corresponding to the dynamic column, the attribute value of the entity specification attribute corresponding to the fixed column can also be obtained, and the corresponding attribute value is rendered in the cell corresponding to the fixed column. In order to facilitate distinction, the dynamic column and the fixed column can also be displayed separately with different display parameters, wherein the display parameters include but are not limited to one or more of the header fill color, font size, cell fill color, etc.
[0058] In the actual implementation process, in order to ensure the reliability of the management of relevant information of the entity category, the entity specification attribute identifier can be set to a non-editable state to avoid tampering.
[0059] In the actual implementation process, in addition to inputting the target entity category identifier in the entity category column of the online form in the above embodiment, it is also possible to delete the target entity category identifier in the entity category column of the online form, that is, the user's deletion operation on the target entity category identifier in the entity category column of the online form is monitored. In this case, all information in the row where the target entity category identifier is located can be directly deleted, and it can also be identified whether all entity specification attribute identifiers rendered in each dynamic column corresponding to at least one first entity specification attribute identifier corresponding to the target entity category identifier only include the corresponding first entity specification attribute identifier. If there is a corresponding first entity specification attribute identifier, the corresponding dynamic column of the online form is deleted to achieve streamlined processing of the online form.
[0060] For example, continue with Figure 5 Taking the scenario shown as an example, if the user's deletion operation on "Tube Cap" in the entity category column of the online table is detected, since only the entity specification attribute identifier corresponding to "Tube Cap" is rendered in the dynamic column corresponding to "Entity Specification Attribute 4", the dynamic column where "Entity Specification Attribute 4" is located is deleted.
[0061] In summary, the table rendering method of the disclosed embodiment, in response to monitoring that the user inputs the target entity category identifier in the entity category column of the online table, obtains at least one first entity specification attribute identifier corresponding to the target entity category identifier, compares whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than the first column number of the current dynamic column in the online table, and then, in response to being greater than the first column number, calculates the first difference between the number of attributes corresponding to the at least one first entity specification attribute identifier and the first column number; inserts a dynamic column corresponding to the first difference into the online table to obtain the updated current dynamic column; renders at least one first entity specification attribute identifier in the row where the target entity category identifier is located and in the corresponding updated current dynamic column. In the present technical solution, all relevant information of entity categories is centrally managed in an online table in the form of dynamic columns, which improves the processing efficiency of entity information.
[0062] Based on the above embodiment, in different application scenarios, the method of obtaining at least one first entity specification attribute identifier corresponding to the target entity category identifier is different, and the examples are as follows:
[0063] In some possible embodiments, a communication connection between an online form and a preset entity information management database is realized through a preset communication interface, wherein the preset entity information management database is used to store the correspondence between entity category identifiers and corresponding entity specification attribute identifiers in real time, and the preset entity information management database can be understood as an online database specifically used to store all entity categories and their corresponding entity specification attributes. Thus, in this embodiment, the preset communication interface can be called to query the preset entity information management database to obtain at least one first entity specification attribute identifier corresponding to the target entity category identifier, wherein the preset entity information management database includes the correspondence between the entity category identifier and the entity specification attribute identifier.
[0064] In this embodiment, all first entity specification attribute identifiers corresponding to the target entity category identifier in the preset entity information management database are traversed, thereby ensuring the comprehensiveness and reliability of the obtained first entity specification attribute identifiers.
[0065] In some possible embodiments, at least one first entity specification attribute identifier stored in the preset entity information management database may also change. Since the online form is connected to the preset entity information management database through the preset communication interface, the online form can also synchronize such changes, thereby ensuring the timeliness of relevant data in the online form. Such synchronization cannot be achieved in the prior art.
[0066] In this embodiment, in response to an update operation of obtaining at least one first entity specification attribute identifier corresponding to a target entity category identifier in a preset entity information management database, at least one updated second entity specification attribute identifier is obtained, and the at least one second entity specification attribute identifier is not completely the same as the at least one first entity specification attribute identifier. Then, the at least one first entity specification attribute identifier is updated and rendered as at least one second entity specification attribute identifier in the row where the target entity category identifier is located and the corresponding current dynamic column.
[0067] Before updating and rendering at least one first entity specification attribute identifier to at least one second entity specification attribute identifier in the row where the target entity category identifier is located and the corresponding current dynamic column, comparing whether the attribute quantity corresponding to the at least one second entity specification attribute identifier is greater than the second column number of the current dynamic column in the online table, and in response to being greater than the second column number, calculating a second difference between the attribute quantity corresponding to the at least one second entity specification attribute identifier and the second column number, and inserting a dynamic column corresponding to the second difference into the online table, so as to ensure that there are enough dynamic columns to render the second entity specification attribute identifier.
[0068] Since in the actual rendering process, the first entity specification attribute identifier may contain a portion that is repeated with the second entity specification attribute identifier. Therefore, in order to improve rendering efficiency, in some possible embodiments, the first entity specification attribute identifier that is different from the second entity specification attribute identifier in the first entity specification attribute identifier can be determined, and the different first entity specification attribute identifiers can be updated to the corresponding second entity specification attributes. If it still contains remaining unrendered second entity specification attribute identifiers, the unrendered second entity specification attribute identifiers are rendered in the remaining dynamic columns.
[0069] Of course, in the embodiments of the present disclosure, the attribute value corresponding to the second entity specification attribute identifier is also obtained, and the attribute value is rendered in the cell where the second entity specification attribute identifier is located, wherein the second entity specification attribute identifier can be set to be non-editable, and the corresponding attribute value can be set to be editable, wherein the second entity specification attribute identifier and the attribute value corresponding to the second entity specification attribute identifier can be displayed in different colors to distinguish and display, so that the user can intuitively know that the second entity specification attribute identifier is non-editable and the corresponding attribute value is editable.
[0070] In another embodiment of the present disclosure, at least one first entity specification attribute identifier corresponding to the target entity category identifier may be input by a relevant manager.
[0071] In summary, the table rendering method of the embodiment of the present disclosure connects the data of the entity categories stored in the preset entity information management database with the online table, ensures the synchronization of the relevant data rendered in the online table with the data stored in the preset entity information management database, and improves the reliability of the relevant data in the online table.
[0072] In order to implement the above embodiment, the present disclosure also proposes a table rendering device.
[0073] Figure 6 This is a schematic diagram of the structure of a table rendering device provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated in an electronic device. Figure 6 As shown, the device includes: an acquisition module 610, a comparison module 620, and a rendering processing module 630, wherein:
[0074] An acquisition module 610 is configured to acquire at least one first entity specification attribute identifier corresponding to the target entity category identifier in response to monitoring that a user inputs a target entity category identifier in an entity category column of an online form;
[0075] A comparison module 620, configured to compare whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than the first column number of the current dynamic column in the online form;
[0076] The rendering processing module 630 is used to render at least one first entity specification attribute identifier in the row where the target entity category identifier is located and the corresponding current dynamic column in response to not more than the first column number.
[0077] In some implementations, the rendering processing module 630 is configured to:
[0078] determining at least one target dynamic column matching the number of attributes in the corresponding current dynamic column;
[0079] In at least one cell corresponding to the row where the target entity category identifier is located and at least one target dynamic column, at least one first entity specification attribute identifier is rendered, wherein at least one cell corresponding to the target dynamic column corresponds one-to-one to the at least one first entity specification attribute identifier.
[0080] In some implementations, the rendering processing module 630 is further configured to:
[0081] In response to receiving the attribute value of the target entity specification attribute input by the user, the attribute value is rendered in the target cell where the target entity specification attribute is located.
[0082] In some implementations, a first dynamic column management module is further included, configured to:
[0083] After comparing whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than a first column number of the current dynamic column in the online form, in response to being greater than the first column number, calculating a first difference between the number of attributes corresponding to the at least one first entity specification attribute identifier and the first column number;
[0084] Inserting a dynamic column corresponding to the first difference value into the online table to obtain an updated current dynamic column;
[0085] At least one first entity specification attribute identifier is rendered in a row corresponding to the target entity category identifier and in an updated current dynamic column.
[0086] In some implementations, the acquisition module 610 is configured to:
[0087] The preset communication interface is called to query the preset entity information management database to obtain at least one first entity specification attribute identifier corresponding to the target entity category identifier, wherein:
[0088] The preset entity information management database includes the correspondence between entity category identifiers and entity specification attribute identifiers.
[0089] In some implementations, the rendering processing module 630 is further configured to:
[0090] In response to obtaining an update operation of at least one first entity specification attribute identifier corresponding to a target entity category identifier in a preset entity information management database, obtaining at least one updated second entity specification attribute identifier, wherein:
[0091] At least one second entity specification attribute identifier is not completely identical to at least one first entity specification attribute identifier;
[0092] In the row where the target entity category identifier is located and the corresponding current dynamic column, at least one first entity specification attribute identifier is updated and rendered as at least one second entity specification attribute identifier.
[0093] In some implementations, a second dynamic column management module is further included, configured to:
[0094] In response to obtaining a user's category input operation in the entity category column, displaying an entity category selection interface, wherein the entity category selection interface is used to display candidate entity category identifiers to be selected;
[0095] In response to obtaining a user's selection operation on a target entity category identifier among candidate entity category identifiers, an input target entity category identifier is monitored.
[0096] The table rendering device provided in the embodiments of the present disclosure can execute the table rendering method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0097] In order to implement the above embodiments, the present disclosure further proposes a computer program product, including a computer program / instruction, which implements the table rendering method in the above embodiments when executed by a processor.
[0098] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.
[0099] The following specific reference Figure 7 , which shows a schematic diagram of the structure of an electronic device 700 suitable for implementing the embodiment of the present disclosure. The electronic device 700 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 7 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.
[0100] like Figure 7 As shown, the electronic device 700 may include a processor (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a memory 708 to a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0101] Typically, the following devices may be connected to the I / O interface 705: an input device 706 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 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a memory 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 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.
[0102] 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 709, or installed from a memory 708, or installed from a ROM 702. When the computer program is executed by the processor 701, the above-mentioned functions defined in the rendering method of the table of the embodiment of the present disclosure are executed.
[0103] It should be noted that the computer-readable 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 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 above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that 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, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable 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.
[0104] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText 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.
[0105] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0106] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0107] In response to monitoring that a user inputs a target entity category identifier in the entity category column of the online form, at least one first entity specification attribute identifier corresponding to the target entity category identifier is obtained, and the attribute quantity corresponding to the at least one first entity specification attribute identifier is compared to see whether it is greater than the first column number of the current dynamic column in the online form, and then, in response to being greater than the first column number, a first difference between the attribute quantity corresponding to the at least one first entity specification attribute identifier and the first column number is calculated; a dynamic column corresponding to the first difference is inserted into the online form to obtain an updated current dynamic column; and at least one first entity specification attribute identifier is rendered in the row where the target entity category identifier is located and in the corresponding updated current dynamic column. In this technical solution, all relevant information of the entity categories is managed in an online form in the form of dynamic columns, which improves the processing efficiency of entity information.
[0108] The electronic device may be written in one or more programming languages or a combination thereof to write computer program code for performing the operations of the present disclosure, 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 program code 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 the case of a remote computer, the remote computer may be connected to the user's computer via 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., via the Internet using an Internet service provider).
[0109] 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.
[0110] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0111] 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 arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0112] 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 device, 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. 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 (but not limited to) technical features with similar functions disclosed in the present disclosure.
[0113] 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.
[0114] 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 table rendering method, characterized in that: The following steps are involved: In response to monitoring that a user inputs a target entity category identifier in an entity category column of an online form, acquiring at least one first entity specification attribute identifier corresponding to the target entity category identifier; Comparing whether the attribute quantity corresponding to the at least one first entity specification attribute identifier is greater than the first column quantity of the current dynamic column in the online form; In response to being greater than the first column number, calculating a first difference between the attribute quantity corresponding to the at least one first entity specification attribute identifier and the first column number; Inserting a dynamic column corresponding to the first difference in the online table to obtain an updated current dynamic column; The at least one first entity specification attribute identifier is rendered in a row corresponding to the target entity category identifier and in an updated current dynamic column.
2. The method according to claim 1, characterized in that The rendering of the at least one first entity specification attribute identifier in the updated current dynamic column corresponding to the row where the target entity category identifier is located includes: determining at least one target dynamic column matching the number of attributes in the updated current dynamic column; In at least one cell corresponding to the row where the target entity category identifier is located and the at least one target dynamic column, render the at least one first entity specification attribute identifier, wherein the at least one cell corresponding to the target dynamic column corresponds one-to-one to the at least one first entity specification attribute identifier.
3. The method according to claim 2, characterized in that Also includes: In response to receiving an attribute value of a target entity specification attribute input by a user, the attribute value is rendered in a target cell where the target entity specification attribute is located.
4. The method according to claim 1, characterized in that After comparing whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than the first column number of the current dynamic column in the online form, the method further includes: In response to not being greater than the first number of columns, rendering the at least one first entity specification attribute identifier in the row where the target entity category identifier is located and in the corresponding current dynamic column.
5. The method according to any one of claims 1 to 4, characterized in that: The acquiring of at least one first entity specification attribute identifier corresponding to the target entity category identifier includes: Calling a preset communication interface to query a preset entity information management database to obtain at least one first entity specification attribute identifier corresponding to the target entity category identifier, wherein: The preset entity information management database includes the correspondence between entity category identifiers and entity specification attribute identifiers.
6. The method according to claim 5, characterized in that Also includes: In response to obtaining an update operation of at least one first entity specification attribute identifier corresponding to the target entity category identifier in the preset entity information management database, obtaining at least one updated second entity specification attribute identifier, wherein: The at least one second entity specification attribute identifier is not completely identical to the at least one first entity specification attribute identifier; In the row where the target entity category identifier is located and the corresponding current dynamic column, the at least one first entity specification attribute identifier is updated and rendered as the at least one second entity specification attribute identifier.
7. The method according to claim 6, characterized in that Before updating and rendering the at least one first entity specification attribute identifier as the at least one second entity specification attribute identifier in the row where the target entity category identifier is located and the corresponding current dynamic column, the method further includes: comparing whether the attribute quantity corresponding to the at least one second entity specification attribute identifier is greater than the second column quantity of the current dynamic column in the online form; In response to being greater than the second column number, calculating a second difference between the number of attributes corresponding to the at least one second entity specification attribute identifier and the second column number; A dynamic column corresponding to the second difference is inserted into the online table.
8. The method according to any one of claims 1 to 4, characterized in that: Before responding to monitoring that the user inputs a target entity category identifier in the entity category column of the online form, the method further includes: In response to obtaining a user's category input operation in the entity category column, displaying an entity category selection interface, wherein the entity category selection interface is used to display candidate entity category identifiers to be selected; In response to obtaining a user's selection operation on a target entity category identifier among the candidate entity category identifiers, input of the target entity category identifier is monitored.
9. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the table rendering method described in any one of claims 1-8.
10. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the table rendering method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Multilayer column header control method for list control
CN112817974A
Table column adjusting method and device, storage medium and terminal equipment
CN112989776A
Form extension method and device, computer equipment and storage medium
CN114297552A
System and method for generating Enterprise Java Bean code
US20040111701A1
Information processing device, information processing method, and program
US20200334164A1