Data generation methods, devices, equipment, media and products
By obtaining the preset configuration information of the target field, a field editing interface is generated to display the target auxiliary input content. This solves the problem that users need to manually set a lot of content and options in the existing technology, and improves the efficiency of table editing and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2026-03-13
AI Technical Summary
The existing spreadsheet field editing interface displays limited content and functions, requiring users to manually set a lot of content and options, resulting in low efficiency in editing spreadsheets.
By obtaining the preset configuration information of the target field and combining it with the basic field editor to generate a field editing interface, the target auxiliary input content is displayed, reducing the content and options that users manually set.
It improves the efficiency of users editing tables, simplifies the field creation process, and enhances the user experience.
Smart Images

Figure CN118821741B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to a data generation method, apparatus, device, medium, and product. Background Technology
[0002] With the development of computer technology, spreadsheets have been widely used in data statistics and processing, and multidimensional tables with various functions have been developed.
[0003] When using a spreadsheet, users can edit and set fields in the field editing interface. For example, when statistical data is compiled by time, users can edit and use the month field to compile data by month.
[0004] Currently, when users set fields, the backend retrieves the corresponding public configuration data and generates a field editing interface based on this data. However, this generated field editing interface displays limited content and functionality, requiring users to manually set numerous field details and options, resulting in low efficiency for table editing. Summary of the Invention
[0005] This disclosure provides a data generation method, apparatus, device, medium, and product to overcome the problem that current field editing interfaces display limited content and functions, requiring users to manually set numerous field contents and options, resulting in low efficiency for users editing tables.
[0006] In a first aspect, embodiments of this disclosure provide a data generation method, including:
[0007] In response to receiving a field creation instruction for a target field in a table, the system obtains the preset configuration information corresponding to the target field; the preset configuration information includes configuration information corresponding to providing auxiliary input content for the user-created field.
[0008] Based on the native field editor corresponding to the basic field and the preset configuration information, a field editing interface corresponding to the target field is generated. The content displayed in the field editing interface includes at least the target auxiliary input content corresponding to the target field.
[0009] Secondly, embodiments of this disclosure provide a data generation apparatus, comprising:
[0010] The acquisition unit is used to acquire preset configuration information corresponding to the target field in response to receiving a field creation instruction for a target field in a table; the preset configuration information includes configuration information corresponding to providing auxiliary input content for user-created fields;
[0011] The generation unit is used to generate a field editing interface corresponding to the target field based on the native field editor corresponding to the basic field and the preset configuration information. The content displayed in the field editing interface includes at least the target auxiliary input content corresponding to the target field.
[0012] Thirdly, embodiments of this disclosure provide an electronic device, including: a processor and a memory;
[0013] The memory stores computer-executed instructions;
[0014] The processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the data generation method as described in the first aspect and various possible designs of the first aspect.
[0015] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the data generation method described in the first aspect and various possible designs of the first aspect.
[0016] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the data generation method described in the first aspect and various possible designs of the first aspect.
[0017] The data generation method, apparatus, device, medium, and product provided in this embodiment first receive a field creation instruction for a target field in a table, obtains preset configuration information corresponding to the target field, and simultaneously generates a field editing interface corresponding to the target field based on the native field editor corresponding to the basic field and the preset configuration information. Since the preset configuration information includes configuration information corresponding to providing auxiliary input content for the user-created field, the content displayed in the field editing interface generated based on the preset configuration information and the native field editor at least includes the target auxiliary input content corresponding to the target field. Therefore, it reduces the need for users to manually set the content and options of fields, improving the efficiency of user table editing. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 Flowchart of the data generation method provided in this disclosure Figure 1;
[0020] Figure 2 A schematic diagram illustrating the application scenarios created for the fields provided in this disclosure;
[0021] Figure 3 Flowchart of the data generation method provided in this disclosure Figure 2 ;
[0022] Figure 4 This document illustrates the application scenarios for field editing provided in this disclosure. Figure 1 ;
[0023] Figure 5 This document illustrates the application scenarios for field editing provided in this disclosure. Figure 2 ;
[0024] Figure 6 This is a schematic diagram of the field editing interface provided in this disclosure;
[0025] Figure 7 Flowchart of the data generation method provided in this disclosure Figure 3 ;
[0026] Figure 8 This is a schematic structural diagram of the data generation apparatus provided in this disclosure;
[0027] Figure 9 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0028] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0029] When using spreadsheets, users typically need to edit and set fields in the field editing interface to perform data processing functions. The field editing interface generally includes field type, other field-related options, and input content. When a user sets a field, the backend retrieves the corresponding common configuration data and generates the field editing interface based on this data. However, the content and functions displayed in this generated field editing interface are limited; users still need to set field-related options or input content. For example, if a user needs to set a zodiac animal field, the current field editing interface requires the user to set each zodiac animal individually.
[0030] Therefore, in the current field editing interface, users need to manually set a lot of field content and options, resulting in low efficiency for users editing tables.
[0031] The data generation method, apparatus, device, medium, and product provided in this disclosure receive a field creation instruction for a target field in a table, obtain preset configuration information corresponding to the target field, and simultaneously generate a field editing interface for the target field based on the native field editor corresponding to the basic field and the preset configuration information. Since the preset configuration information includes configuration information corresponding to providing auxiliary input content for the user-created field, the content displayed in the field editing interface generated based on the preset configuration information and the native field editor at least includes the target auxiliary input content corresponding to the target field. Therefore, it reduces the need for users to manually set the content and options of fields, improving the efficiency of user table editing.
[0032] Please refer to Figure 1 , Figure 1 Flowchart of the data generation method provided in the embodiments of this disclosure Figure 1 .like Figure 1 As shown, the method includes the following steps:
[0033] S101: In response to receiving a field creation instruction for a target field in a table, obtain the preset configuration information corresponding to the target field. The preset configuration information includes configuration information corresponding to providing auxiliary input content for the user-created field.
[0034] In this embodiment, the entity executing the data generation method can be a client running on a terminal device or a server. Here, the client can be any application client or web client capable of editing forms. The terminal device can include a mobile terminal device or a fixed terminal device.
[0035] The client interface described above can display a table, where users can perform preset operations on the target field to trigger the field creation command for the target field.
[0036] The preset operations mentioned above include clicking, hovering the cursor over the control being created, and touching.
[0037] In some application scenarios, the above fields can also be created in the following way: Specifically, the user performs a preset operation, such as clicking, and the corresponding field creation page is displayed. For example... Figure 2 As shown, the field creation page includes a title and a field type. When the user moves the cursor to the field type selection box or selects a field type, the field type subpage is displayed. Figure 2The system displays both the field creation page and the field type subpage simultaneously. The field type subpage includes multiple field types such as text, radio button, checkbox, formula, and group. Users can further select the desired field type, such as text, and click "Generate Control" to trigger the field creation command.
[0038] The aforementioned preset configuration information can be pre-entered by users, such as developers. This preset configuration information can use common data exchange formats, such as JSON (JavaScript Object Notation) Schema, XML (eXtensible Markup Language), etc. Furthermore, if JSON Schema is used, it can be uniformly defined and parsed using a domain-specific language (DSL) to improve data extensibility and support more application scenarios. Developers can specify the type of field editor to be rendered in the preset configuration information, such as a custom field editor or a native field editor.
[0039] The auxiliary input content for the aforementioned creation fields includes preset option content, preset text content, and so on.
[0040] In some application scenarios, if users need to create a weather field, the auxiliary input can include preset weather types, such as sunny, rainy, cloudy, snowy, etc., thereby improving the convenience for users to create fields and edit tables.
[0041] In some application scenarios, if a user needs to calculate the average age using a formula, the auxiliary input can include a preset average formula and options for the referenced field. This allows the user to directly select the referenced field without having to choose an average formula from the formula library, reducing the user's operational difficulty and improving the user experience.
[0042] In some application scenarios, the target field type can include: text, single selection, multiple selection, date, and number.
[0043] In some application scenarios, the preset configuration information is not obtained when the user opens the table, but is obtained when the field is created. Therefore, it will not affect the data processing efficiency when the user opens the table and performs other operations on the table.
[0044] S102: Generate the field editing interface corresponding to the target field based on the native field editor and preset configuration information corresponding to the basic field. The content displayed in the field editing interface shall include at least the target auxiliary input content corresponding to the target field.
[0045] The target fields described above are extensions and enhancements of the basic fields. For example, in the field editing interface for the formula field in the basic fields, users need to select the formula they need from multiple formulas and simultaneously select the input data that the formula needs to process. In contrast, the field editing interface for the target fields allows users to directly set the corresponding formula based on preset configuration information. Furthermore, it provides options for referencing fields, improving user field editing efficiency and thus enhancing the user experience.
[0046] The aforementioned preset configuration information includes configuration information for extending and enhancing basic fields, such as field description data used to characterize field attributes and user interface pattern data used to describe the structure of the user interface. This configuration information ensures that the content displayed in the field editing interface includes at least the target auxiliary input content corresponding to the target field.
[0047] The native field editors corresponding to the aforementioned basic fields refer to the field editors for those basic fields. Basic fields such as date, weather, and age all have corresponding field editors. The field editing interface generated using the native field editor and preset configuration information includes target auxiliary input content corresponding to the target field, further improving the convenience for users creating fields and editing tables.
[0048] For example, the table above is a student grade table. The student grade table already has an "Academic Performance" field created and generated. The field editing interface for the target field can be generated using preset configuration information and the corresponding basic field—the "Exam Subject" field. The target field's editing interface includes auxiliary input for each exam subject, such as options for Chinese, Mathematics, English, and Physics. Users can directly click "Generate" to generate the target field with one click, and the corresponding cell content will be generated in the table. At this point, if the user clicks on the cell corresponding to the target field, they can select the exam subject option.
[0049] In addition, users can also modify the target auxiliary input content, such as changing the Chinese, Mathematics, English and Physics options to Chinese and Mathematics options. This embodiment does not limit this.
[0050] In this embodiment, upon receiving a field creation instruction for a target field in a table, the system obtains the preset configuration information corresponding to the target field. Simultaneously, it generates a field editing interface for the target field based on the native field editor corresponding to the base field and the preset configuration information. Since the preset configuration information includes configuration information providing auxiliary input content for the user-created field, the content displayed in the field editing interface generated based on the preset configuration information and the native field editor at least includes the target auxiliary input content corresponding to the target field. Therefore, this reduces the need for users to manually set the content and options of fields, improving the efficiency of user table editing.
[0051] Please refer to Figure 3 , Figure 3 Flowchart of the data generation method provided in the embodiments of this disclosure Figure 2 .
[0052] like Figure 3 As shown, the method includes the following steps:
[0053] S201: In response to receiving a field creation instruction for a target field in a table, obtain the preset configuration information corresponding to the target field. The preset configuration information includes configuration information for providing auxiliary input content for the user-created field.
[0054] For the specific implementation of step S201 above, please refer to Figure 1 The description of step S101 shown is not repeated here.
[0055] In this embodiment, the entity executing the data generation method can be a client running on a terminal device or a server.
[0056] S202: Generate the field editing interface corresponding to the target field based on the native field editor and preset configuration information corresponding to the basic field. The content displayed in the field editing interface shall include at least the target auxiliary input content corresponding to the target field.
[0057] In some embodiments, the preset configuration information includes first field description data and / or user interface schema data. The field description data can be described using FieldMeta during development. If the data exchange format used is JSON, the user interface schema data can be described using a UI (User Interface) Schema during development.
[0058] The first field description data described above is used to characterize the field's attributes, while the user interface mode data is used to describe the structure of the user interface. If it is necessary to change the structure of the field editing interface corresponding to the basic field, the user interface mode data can be preset; if it is necessary to change the field description data in the field editing interface, the first field description data can be preset.
[0059] The following provides illustrative examples of three scenarios where the preset configuration information includes data. If the preset configuration information only includes the first field description data, then S202 can be specifically as follows:
[0060] Populate the first field description data into the native field editor to update the native field description data in the native field editor and generate the configured second field description data.
[0061] The field editing interface is generated based on the data described in the second field.
[0062] In some embodiments, updating the native field description data in the native field editor can be achieved by using the first field description data as a default value to overwrite the native field description data and generate the second field description data. Alternatively, the first field description data can be used as a filler or supplementary part, and the second field description data can be generated by combining the native field description data and the first field description data.
[0063] In some embodiments, users can adjust and modify data in the field editing interface generated based on preset configuration information.
[0064] In some embodiments, the field editing interface can be generated based on the second field description data by using a native field editor to generate the corresponding field editing interface based on the second field description data.
[0065] In some embodiments, the content displayed in the field editing interface includes at least a first auxiliary input content corresponding to the field type of the target field. The first auxiliary input content corresponds to the first field description data.
[0066] If the target field is a single-choice field or a multiple-choice field, the first auxiliary input content includes at least one auxiliary input option.
[0067] The first auxiliary input content is related to the field type, for example, such as Figure 4 As shown, Figure 4 This is a diagram illustrating a field editing application scenario.
[0068] The field editing interface includes a title, field type, option content, reference options, a control to add an option, and the first auxiliary input content 301. In the field editing interface, the field type is a single selection, involving data related to the Chinese zodiac. Therefore, the first auxiliary input content can include auxiliary input options such as Rat, Ox, Tiger, Rabbit, Dragon, Snake, Horse, Sheep, Monkey, and Rooster. Each option also has a pre-set cancel control (the "X" in the image) and a drop-down option (the inverted triangle in the image), used by the user to cancel unwanted zodiac options and rearrange the order of the zodiac signs.
[0069] In some embodiments, if the field involves month-related data, then Figure 4 The auxiliary input options such as rat, ox, tiger, rabbit, dragon, snake, horse, sheep, monkey, and rooster can be replaced with options for January, February to December.
[0070] In some embodiments, the preset configuration information includes only user interface mode data, and S202 may be specifically as follows:
[0071] Load the custom field editor corresponding to the user interface mode data.
[0072] The custom field editor is rendered based on user interface pattern data, generating the first form value. The first form value is used to represent the value of the form items in the custom field editor.
[0073] The field editing interface is generated based on the native field description data and the first form value from the native field editor.
[0074] In some embodiments, the custom field editor is a newly added field editor that is loaded when the preset configuration information includes user interface mode data. The final generated field editing interface consists of two parts: the part corresponding to the native field editor and the part corresponding to the custom field editor. The custom field editor can use user interface mode data rendering.
[0075] In some embodiments, the first form value may also be referred to as FormValue during development.
[0076] In some embodiments, the content displayed in the field editing interface includes at least the second auxiliary input content corresponding to the custom field editor. The second auxiliary input content includes option content and / or text content corresponding to the field type of the target field.
[0077] If the target field is a formula field, the second auxiliary input includes options for referencing fields and options for output data types.
[0078] In some embodiments, the second auxiliary input content is based on user interface pattern data, and therefore may include multiple categories of content, such as options, text, etc.
[0079] like Figure 5 As shown, Figure 5 This is a schematic diagram of a field editing application scenario. The field editing interface includes a title (date conversion), a field type (date conversion), and a second auxiliary input content 401. The second auxiliary input content 401 includes selecting a date field control and converting it to a control. The dropdown options for the date field control can include date, day of the week, etc. Similarly, the conversion to a control can include date, day of the week, etc.
[0080] At this point, users do not need to select a date conversion formula. They can directly achieve the date conversion function by setting the second auxiliary input 401. For example, as shown in the figure, they can select to convert the content of the date field to the weekday.
[0081] In some embodiments, the preset configuration information includes a first field description data and user interface mode data, and S202 may be specifically as follows:
[0082] Populate the first field description data into the native field editor to update the native field description data in the native field editor and generate the configured second field description data.
[0083] The custom field editor is rendered based on the user interface mode data, generating the first form value. The first form value represents the value of the form item in the custom field editor.
[0084] A field editing interface is generated based on the data described in the second field and the values in the first form.
[0085] In some embodiments, the field editing interface is as follows: Figure 6 As shown, it includes content 501 corresponding to the native field editor and content 502 corresponding to the custom field editor. Content 502 is generated based on the custom field editor corresponding to the user interface mode data rendering, and its data is represented as the first form value.
[0086] Content 501 includes any one or more of the following: edit content 1 and drop-down option 1. Edit content 1 can be set as a title, and drop-down option 1 can be set as a field type. Content 502 includes any one or more of the following: edit content 2, drop-down option 2, and selection content (selection option 1 or option 2). Contents 501 and 502 may also include other content, which is not limited in this embodiment.
[0087] In some application scenarios, if the target field is a summation field, then content 502 can include dropdown option 2 and selected content. Dropdown option 2 can be set to the field that needs to be summed, and the selected content can be set to round down or not round down.
[0088] S203: In response to a field generation command entered by the user in the field editing interface, generate the table cell content corresponding to the target field based on the field setting information. The field setting information is generated after the user edits and processes the field-related data in the field editing interface.
[0089] In some embodiments, the field settings information includes the referenced field, the target field type, etc. The referenced field can be set according to the field type. For example, if the target field is a formula field, the referenced field setting will generally be included. If the target field is a month field, the referenced field may not be included, but the month option information must be included.
[0090] In some embodiments, after generating the table cell content corresponding to the target field, the user's operations on the target field (such as switching field types, modifying cell values, etc.) are all based on the characteristics of the corresponding base field, that is, the features and patterns of the base field.
[0091] In some embodiments, the second field description data and the first form value can be saved, so that when the field editing interface is reopened later, the field editing interface can be directly generated based on the saved data, improving the efficiency of generating the field editing interface. The specific process is as follows:
[0092] The description data of the second field and the value of the first form are merged to generate the extended configuration data corresponding to the target field.
[0093] Extended configuration data and native field description data are stored in their respective storage areas.
[0094] In some embodiments, extended configuration data and native field description data can be stored in the field data model of the database core area, with the extended configuration data serving as extended data for the native field description data. Furthermore, the extended configuration data and native field description data can be stored in different storage areas to ensure their independence and prevent the extended configuration data from affecting the storage and use of the native field description data. The native field description data is used by the corresponding native field editor.
[0095] In some embodiments, other configuration data of the target field, such as the plugin number and version number, can be further saved to the storage area.
[0096] In some embodiments, the saved extended data is associated with the target field, and the extended data includes second field description data and / or first form values.
[0097] Please refer to Figure 7 It illustrates a schematic flow of the data generation method provided in this disclosure. Figure 3 .
[0098] like Figure 7 As shown, the method includes the following steps:
[0099] S601: In response to receiving a field adjustment instruction for the field to be adjusted, display the corresponding field editing interface based on the extended configuration data corresponding to the field to be adjusted and the corresponding native field editor. The field to be adjusted is the target field for which the corresponding table cell content has already been generated.
[0100] In some embodiments, after a user enters a field generation command in the field editing interface, the background generates the content of the table cell corresponding to the target field based on the field setting information. If the user needs to adjust the content generated in the cell corresponding to the target field, a field adjustment command for the target field can be triggered. This can be triggered by selecting the target field and choosing to adjust the field in the pop-up field function settings page, or by directly entering a command; this embodiment does not limit this approach.
[0101] Since the extended configuration data is already stored in the storage area when the table cell content corresponding to the target field is generated, the extended configuration data corresponding to the field to be adjusted can be directly obtained from the storage area, thus improving data retrieval efficiency.
[0102] In some embodiments, S601 may be specifically as follows:
[0103] The second field description data is populated into the native field editor corresponding to the field to be adjusted, and the first form value is populated into the custom field editor corresponding to the field to be adjusted, so as to generate and display the corresponding field editing interface.
[0104] S602, in response to the user's adjustment of field-related data in the field editing interface, generates the adjusted field setting information.
[0105] In some embodiments, field-related data refers to data that can be edited by the user on the field editing page. This data is related to the field and includes data such as title, field category, and referenced field.
[0106] For example, field-related data may include Figure 5 Contents 501 and 502.
[0107] S603, in response to receiving an adjustment completion instruction for the field to be adjusted, generates the table cell content corresponding to the adjusted field to be adjusted based on the adjusted field setting information.
[0108] The method for generating the adjusted table cell content corresponding to the field to be adjusted depends on the field to be adjusted. If the field to be adjusted needs to reference the cell content of a field as input, the table cell content corresponding to the field to be adjusted can be generated based on the cell content of the referenced field.
[0109] Corresponding to the above text Figure 1The data generation method of the illustrated embodiment, Figure 8 This is a schematic structural diagram of a data generation apparatus provided for embodiments of the present disclosure. For ease of explanation, only the parts relevant to embodiments of the present disclosure are shown. (Refer to...) Figure 8 The apparatus 700 includes: an acquisition unit 701 and a generation unit 702. Wherein,
[0110] The acquisition unit 701 is used to acquire the preset configuration information corresponding to the target field in response to receiving a field creation instruction for a target field in a table. The preset configuration information includes configuration information corresponding to providing auxiliary input content for the user-created field.
[0111] The generation unit 702 is used to generate a field editing interface for the target field based on the native field editor corresponding to the basic field and the preset configuration information. The content displayed in the field editing interface includes at least the target auxiliary input content corresponding to the target field.
[0112] In some embodiments, the preset configuration information is a first field description data, which is used to characterize the attributes of the field.
[0113] When generating the field editing interface for the target field based on the native field editor corresponding to the basic field and the preset configuration information, the generation unit 702 is specifically used for:
[0114] The first field description data is populated into the native field editor to update the native field description data in the native field editor, generating the configured second field description data. The field editing interface is then generated based on the second field description data.
[0115] In some embodiments, the content displayed in the field editing interface includes at least a first auxiliary input content corresponding to the field type of the target field. The first auxiliary input content corresponds to the first field description data.
[0116] If the target field is a single-choice field or a multiple-choice field, the first auxiliary input content includes at least one auxiliary input option.
[0117] In some embodiments, the preset configuration information is user interface mode data. User interface mode data is used to describe the structure of the user interface.
[0118] When generating the field editing interface for the target field based on the native field editor corresponding to the basic field and the preset configuration information, the generation unit 702 is specifically used for:
[0119] Load the custom field editor corresponding to the user interface mode data. Render the custom field editor based on the user interface mode data, generating the first form value. The first form value represents the value of the form items in the custom field editor. Generate the field editing interface based on the native field description data of the native field editor and the first form value.
[0120] In some embodiments, the content displayed in the field editing interface includes at least the second auxiliary input content corresponding to the custom field editor. The second auxiliary input content includes option content and / or text content corresponding to the field type of the target field.
[0121] If the target field is a formula field, the second auxiliary input includes options for referencing fields and options for output data types.
[0122] In some embodiments, the preset configuration information includes first field description data and user interface mode data. The first field description data characterizes the attributes of the field, and the user interface mode data describes the structure of the user interface.
[0123] When generating the field editing interface for the target field based on the native field editor corresponding to the basic field and the preset configuration information, the generation unit 702 is specifically used for:
[0124] The first field description data is populated into the native field editor to update the native field description data in the native field editor, generating the configured second field description data. The corresponding custom field editor is rendered based on the user interface mode data, generating the first form value. The first form value represents the value of the form item in the custom field editor. The field editing interface is generated based on the second field description data and the first form value.
[0125] In some embodiments, the data generation apparatus 700 further includes:
[0126] The field generation unit is used to respond to the field generation command entered by the user in the field editing interface, and generate the table cell content corresponding to the target field based on the field setting information. The field setting information is generated after the user edits and processes the field-related data in the field editing interface.
[0127] In some embodiments, the data generation apparatus 700 further includes:
[0128] The storage unit is used to merge the second field description data and the first form value to generate the extended configuration data corresponding to the target field. The extended configuration data and the original field description data are stored in their respective storage areas.
[0129] In some embodiments, the data generation apparatus 700 further includes:
[0130] The adjustment unit is used to respond to a received field adjustment instruction for a field to be adjusted, and to display the corresponding field editing interface based on the extended configuration data of the field to be adjusted and the corresponding native field editor. The field to be adjusted is the target field for which corresponding table cell content has already been generated. In response to the user's adjustment of field-related data in the field editing interface, the unit generates the adjusted field setting information. In response to a received adjustment completion instruction for the field to be adjusted, the unit generates the adjusted table cell content corresponding to the field to be adjusted based on the adjusted field setting information.
[0131] In some embodiments, when the adjustment unit displays the corresponding field editing interface based on the extended configuration data corresponding to the field to be adjusted and the corresponding native field editor, it is specifically used for:
[0132] The second field description data is populated into the native field editor corresponding to the field to be adjusted, and the first form value is populated into the custom field editor corresponding to the field to be adjusted, so as to generate and display the corresponding field editing interface.
[0133] To implement the above embodiments, this disclosure also provides an electronic device.
[0134] refer to Figure 9 The diagram illustrates a structural schematic of an electronic device 800 suitable for implementing embodiments of the present disclosure. The electronic device 800 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 9 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0135] like Figure 9As shown, the electronic device 800 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. The RAM 803 also stores various programs and data required for the operation of the electronic device 800. The processing unit 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0136] Typically, the following devices can be connected to I / O interface 805: input devices 806, including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 807, including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 808, including, for example, magnetic tapes, hard disks, etc.; and communication devices 809. Communication device 809 allows electronic device 800 to communicate wirelessly or wiredly with other devices to exchange data. Although... Figure 9 An electronic device 800 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0137] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by a processing device 801, it performs the functions defined in the methods of embodiments of this disclosure.
[0138] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0139] The aforementioned computer-readable medium may be included in the aforementioned electronic device, or it may exist independently and not assembled into the electronic device.
[0140] The aforementioned computer-readable medium carries one or more programs (computer execution instructions) that, when executed by the electronic device, cause the electronic device to perform the method shown in the above embodiments.
[0141] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "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 standalone 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 remote computers, the remote computer can 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 can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0142] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0143] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.
[0144] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0145] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0146] In a first aspect, according to one or more embodiments of this disclosure, a data generation method is provided, comprising:
[0147] In response to receiving a field creation instruction for a target field in a table, the system retrieves the preset configuration information corresponding to the target field. This preset configuration information includes configuration information for providing auxiliary input content for the user-created field.
[0148] Based on the native field editor corresponding to the basic field and the preset configuration information, a field editing interface corresponding to the target field is generated. The content displayed in the field editing interface includes at least the target auxiliary input content corresponding to the target field.
[0149] According to one or more embodiments of this disclosure, the preset configuration information is a first field description data, which is used to characterize the attributes of the field.
[0150] Generate the field editing interface for the target field based on the native field editor corresponding to the base field and the preset configuration information, including:
[0151] Populate the first field description data into the native field editor to update the native field description data in the native field editor and generate the configured second field description data.
[0152] The field editing interface is generated based on the data described in the second field.
[0153] According to one or more embodiments of this disclosure, the content displayed in the field editing interface includes at least first auxiliary input content corresponding to the field type of the target field. The first auxiliary input content corresponds to the first field description data.
[0154] If the target field is a single-choice field or a multiple-choice field, the first auxiliary input content includes at least one auxiliary input option.
[0155] According to one or more embodiments of this disclosure, the preset configuration information is user interface mode data. The user interface mode data is used to describe the structure of the user interface.
[0156] Generate the field editing interface for the target field based on the native field editor corresponding to the base field and the preset configuration information, including:
[0157] Load the custom field editor corresponding to the user interface mode data.
[0158] The custom field editor is rendered based on user interface pattern data, generating the first form value. The first form value is used to represent the value of the form items in the custom field editor.
[0159] The field editing interface is generated based on the native field description data and the first form value from the native field editor.
[0160] According to one or more embodiments of this disclosure, the content displayed in the field editing interface includes at least a second auxiliary input content corresponding to the custom field editor. The second auxiliary input content includes option content and / or text content corresponding to the field type of the target field.
[0161] If the target field is a formula field, the second auxiliary input includes options for referencing fields and options for output data types.
[0162] According to one or more embodiments of this disclosure, the preset configuration information includes first field description data and user interface mode data. The first field description data is used to characterize the attributes of the field, and the user interface mode data is used to describe the structure of the user interface.
[0163] Generate the field editing interface for the target field based on the native field editor corresponding to the base field and the preset configuration information, including:
[0164] Populate the first field description data into the native field editor to update the native field description data in the native field editor and generate the configured second field description data.
[0165] The custom field editor is rendered based on the user interface mode data, generating the first form value. The first form value represents the value of the form item in the custom field editor.
[0166] A field editing interface is generated based on the data described in the second field and the values in the first form.
[0167] According to one or more embodiments of this disclosure, the method further includes:
[0168] In response to the field generation command entered by the user in the field editing interface, the system generates the table cell content corresponding to the target field based on the field settings information. The field settings information is generated after the user edits and processes the field-related data in the field editing interface.
[0169] According to one or more embodiments of this disclosure, the method further includes:
[0170] The description data of the second field and the value of the first form are merged to generate the extended configuration data corresponding to the target field.
[0171] Extended configuration data and native field description data are stored in their respective storage areas.
[0172] According to one or more embodiments of this disclosure, the method further includes:
[0173] In response to receiving a field adjustment command for the field to be adjusted, the system displays the corresponding field editing interface based on the extended configuration data of the field to be adjusted and the corresponding native field editor. The field to be adjusted is the target field for which the corresponding table cell content has already been generated.
[0174] In response to user adjustments to field-related data in the field editing interface, the system generates the adjusted field settings information.
[0175] In response to receiving an adjustment completion instruction for the field to be adjusted, the table cell content corresponding to the adjusted field is generated based on the adjusted field setting information.
[0176] According to one or more embodiments of this disclosure, a corresponding field editing interface is displayed based on the extended configuration data corresponding to the field to be adjusted and the corresponding native field editor, including:
[0177] The second field description data is populated into the native field editor corresponding to the field to be adjusted, and the first form value is populated into the custom field editor corresponding to the field to be adjusted, so as to generate and display the corresponding field editing interface.
[0178] Secondly, according to one or more embodiments of this disclosure, a data generation apparatus is provided, comprising:
[0179] The acquisition unit is used to retrieve the preset configuration information corresponding to the target field in response to a received field creation instruction for the target field in the table. The preset configuration information includes configuration information for providing auxiliary input content for the user-created field.
[0180] The generation unit is used to generate a field editing interface for the target field based on the native field editor corresponding to the basic field and the preset configuration information. The content displayed in the field editing interface includes at least the target auxiliary input content corresponding to the target field.
[0181] According to one or more embodiments of this disclosure, the preset configuration information is a first field description data, which is used to characterize the attributes of the field.
[0182] When the generation unit generates the field editing interface for the target field based on the native field editor corresponding to the base field and the preset configuration information, it is specifically used for:
[0183] The first field description data is populated into the native field editor to update the native field description data in the native field editor, generating the configured second field description data. The field editing interface is then generated based on the second field description data.
[0184] According to one or more embodiments of this disclosure, the content displayed in the field editing interface includes at least first auxiliary input content corresponding to the field type of the target field. The first auxiliary input content corresponds to the first field description data.
[0185] If the target field is a single-choice field or a multiple-choice field, the first auxiliary input content includes at least one auxiliary input option.
[0186] According to one or more embodiments of this disclosure, the preset configuration information is user interface mode data. The user interface mode data is used to describe the structure of the user interface.
[0187] When the generation unit generates the field editing interface for the target field based on the native field editor corresponding to the base field and the preset configuration information, it is specifically used for:
[0188] Load the custom field editor corresponding to the user interface mode data. Render the custom field editor based on the user interface mode data, generating the first form value. The first form value represents the value of the form items in the custom field editor. Generate the field editing interface based on the native field description data of the native field editor and the first form value.
[0189] According to one or more embodiments of this disclosure, the content displayed in the field editing interface includes at least a second auxiliary input content corresponding to the custom field editor. The second auxiliary input content includes option content and / or text content corresponding to the field type of the target field.
[0190] If the target field is a formula field, the second auxiliary input includes options for referencing fields and options for output data types.
[0191] According to one or more embodiments of this disclosure, the preset configuration information includes first field description data and user interface mode data. The first field description data is used to characterize the attributes of the field, and the user interface mode data is used to describe the structure of the user interface.
[0192] When the generation unit generates the field editing interface for the target field based on the native field editor corresponding to the base field and the preset configuration information, it is specifically used for:
[0193] The first field description data is populated into the native field editor to update the native field description data in the native field editor, generating the configured second field description data. The corresponding custom field editor is rendered based on the user interface mode data, generating the first form value. The first form value represents the value of the form item in the custom field editor. The field editing interface is generated based on the second field description data and the first form value.
[0194] According to one or more embodiments of this disclosure, the apparatus further includes:
[0195] The field generation unit is used to respond to the field generation command entered by the user in the field editing interface, and generate the table cell content corresponding to the target field based on the field setting information. The field setting information is generated after the user edits and processes the field-related data in the field editing interface.
[0196] According to one or more embodiments of this disclosure, the apparatus further includes:
[0197] The storage unit is used to merge the second field description data and the first form value to generate the extended configuration data corresponding to the target field. The extended configuration data and the original field description data are stored in their respective storage areas.
[0198] According to one or more embodiments of this disclosure, the apparatus further includes:
[0199] The adjustment unit is used to respond to a received field adjustment instruction for a field to be adjusted, and to display the corresponding field editing interface based on the extended configuration data of the field to be adjusted and the corresponding native field editor. The field to be adjusted is the target field for which corresponding table cell content has already been generated. In response to the user's adjustment of field-related data in the field editing interface, the unit generates the adjusted field setting information. In response to a received adjustment completion instruction for the field to be adjusted, the unit generates the adjusted table cell content corresponding to the field to be adjusted based on the adjusted field setting information.
[0200] According to one or more embodiments of this disclosure, when the adjustment unit displays the corresponding field editing interface based on the extended configuration data corresponding to the field to be adjusted and the corresponding native field editor, it is specifically used for:
[0201] The second field description data is populated into the native field editor corresponding to the field to be adjusted, and the first form value is populated into the custom field editor corresponding to the field to be adjusted, so as to generate and display the corresponding field editing interface.
[0202] Thirdly, according to one or more embodiments of the present disclosure, an electronic device is provided, including: at least one processor and a memory.
[0203] The memory stores the instructions that the computer executes.
[0204] At least one processor executes computer execution instructions stored in memory, causing at least one processor to perform the data generation method as described in the first aspect above and various possible designs of the first aspect.
[0205] Fourthly, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, which stores computer-executable instructions that, when executed by a processor, implement the data generation method described above as the first aspect and various possible designs of the first aspect.
[0206] Fifthly, according to one or more embodiments of this disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the first aspect above and various possible designs of the first aspect, as well as a data generation method.
[0207] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0208] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0209] Although the subject matter has been described using language specific to structural features and / or methodological logic, 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. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A data generating method characterized by comprising: The method comprises the following steps: In response to receiving a field creation instruction for a target field in a table, obtaining preset configuration information corresponding to the target field; The preset configuration information includes configuration information corresponding to auxiliary input content provided to the user for creating the field; Generating a field editing interface corresponding to the target field according to the native field editor corresponding to the basic field and the preset configuration information, wherein the content displayed in the field editing interface at least includes target auxiliary input content corresponding to the target field; If the preset configuration information is user interface mode data; The user interface mode data is used to describe the structure of the user interface; then generating the field editing interface corresponding to the target field according to the native field editor corresponding to the basic field and the preset configuration information comprises: Loading a custom field editor corresponding to the user interface mode data; Rendering the custom field editor according to the user interface mode data to generate a first form value; the first form value is used to represent the value of the form item of the custom field editor; Generating a first field editing interface according to the native field description data of the native field editor and the first form value.
2. The method of claim 1, wherein, If the preset configuration information is first field description data, the first field description data is used to represent the attributes of the field; then generating the field editing interface corresponding to the target field according to the native field editor corresponding to the basic field and the preset configuration information comprises: Filling the first field description data into the native field editor to update the native field description data in the native field editor and generate configured second field description data; Generating a second field editing interface according to the second field description data.
3. The method of claim 2, wherein, The content displayed in the second field editing interface at least includes first auxiliary input content corresponding to the field type of the target field; wherein the first auxiliary input content corresponds to the first field description data; If the field type of the target field is a single selection field type or a multiple selection field type, the first auxiliary input content includes at least one auxiliary input option content.
4. The method of claim 3, wherein, The content displayed in the first field editing interface at least includes second auxiliary input content corresponding to the custom field editor; the second auxiliary input content includes option content and / or text content corresponding to the field type of the target field; If the field type of the target field is a formula field, the second auxiliary input content includes a reference field input option and an output data type option.
5. The method of claim 1, wherein, If the preset configuration information includes first field description data and user interface mode data; wherein the first field description data is used to represent the attributes of the field, and the user interface mode data is used to describe the structure of the user interface; then generating the field editing interface corresponding to the target field according to the native field editor corresponding to the basic field and the preset configuration information comprises: Filling the first field description data into the native field editor to update the native field description data in the native field editor and generate configured second field description data; render a corresponding custom field editor according to the user interface mode data, and generate a first form value; the first form value is used to represent a value of a form item of the custom field editor; generate a third field editing interface according to the second field description data and the first form value.
6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: in response to a field generation instruction input by a user in the field editing interface, generate cell content of a target field according to field setting information; the field setting information is generated after the user edits field-related data in the field editing interface.
7. The method of claim 5, wherein, The method further includes: merge the second field description data and the first form value to generate extended configuration data of the target field; store the extended configuration data and the native field description data in corresponding storage areas, respectively.
8. The method of claim 7, wherein, The method further includes: in response to receiving a field adjustment instruction for a field to be adjusted, display a corresponding field editing interface according to extended configuration data of the field to be adjusted and a corresponding native field editor; the field to be adjusted is a target field that is to be adjusted and for which cell content has been generated; in response to an adjustment of field-related data by a user in the field editing interface, generate adjusted field setting information; in response to receiving an adjustment completion instruction for the field to be adjusted, generate adjusted cell content of the field to be adjusted according to the adjusted field setting information.
9. The method of claim 8, wherein, The displaying of the corresponding field editing interface according to the extended configuration data of the field to be adjusted and the corresponding native field editor includes: fill the second field description data into the native field editor corresponding to the field to be adjusted, and fill the first form value into the custom field editor corresponding to the field to be adjusted, to generate and display the corresponding field editing interface.
10. A data generating apparatus characterized by comprising: It includes: a obtaining unit, configured to, in response to receiving a field creation instruction for a target field in a table, obtain preset configuration information corresponding to the target field; the preset configuration information includes configuration information corresponding to auxiliary input content provided to a user creating a field; a generating unit, configured to generate a field editing interface corresponding to the target field according to a native field editor corresponding to a basic field and the preset configuration information; the field editing interface displays at least target auxiliary input content corresponding to the target field; if the preset configuration information is user interface mode data; the user interface mode data is used to describe a structure of a user interface; the generating unit is specifically configured to load a custom field editor corresponding to the user interface mode data; render the custom field editor according to the user interface mode data, and generate a first form value; the first form value is used to represent a value of a form item of the custom field editor; generate a first field editing interface according to native field description data of the native field editor and the first form value.
11. An electronic device, comprising: It includes: a processor and a memory; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the processor executes the data generation method in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the data generation method in any one of claims 1 to 9 is implemented.
13. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the data generation method in any one of claims 1 to 9.
Citation Information
Patent Citations
Field configuration method and device and storage medium
CN115687358A