Data configuration method and device, data access method and device, equipment and storage medium
By creating and configuring tables in the table configuration interface of the table tool, the problem of complex configuration of multiple virtual items is solved, and data access and application are simplified in the visual programming tool.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2026-03-27
AI Technical Summary
In related technologies, when users need to configure multiple virtual items, the existing data configuration and acquisition process is quite complex.
This paper provides a data configuration method that allows users to create new tables and configure custom attributes and attribute parameters by displaying the table configuration interface of a table tool, and supports visual programming tools to access table data.
It reduces the complexity of data configuration and retrieval, enabling users to easily access and apply data in tables within visual programming tools.
Smart Images

Figure CN121742885A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of computer and internet technology, and in particular to a data configuration method, data access method, apparatus, device, and storage medium. Background Technology
[0002] With the development of computer technology, more and more people have a need to learn programming. Visual programming is a programming method based on a graphical interface. It uses graphical blocks to represent the logic and function of a program, making it easy for non-professional developers to understand and create programs. In some games, visual programming editors are provided to give users the ability to create within the game.
[0003] In related technologies, users can pre-configure some simple data for virtual items used to create user-generated content, and then retrieve that data by accessing the virtual item when needed. For example, when creating a custom level in a game using a visual programming editor, if specific configuration data of a virtual item is required, that data can be retrieved by specifying a block. The specified block is used to retrieve the data pre-configured for the virtual item.
[0004] In related technologies, when a user needs to configure multiple virtual items, pre-configuring or acquiring data in the above manner can lead to a relatively complex implementation process. Summary of the Invention
[0005] This application provides a data configuration method, a data access method, an apparatus, a device, and a storage medium. The technical solutions provided by this application are as follows:
[0006] According to one aspect of the embodiments of this application, a data configuration method is provided, the method comprising:
[0007] The table configuration interface of the table tool is displayed. The table configuration interface displays a new table control, which is used to create a new table.
[0008] In response to an operation on the newly created table control, the identification information of the newly created first table, the identification information of the first record contained in the first table, and the attribute configuration interface of the first record are displayed.
[0009] In response to an operation on the attribute configuration interface, at least one custom attribute contained in the first record and attribute parameters corresponding to the at least one custom attribute are configured in the attribute configuration interface.
[0010] In response to the operation of adding a record to the first table, at least one other record besides the first record is displayed in the table configuration interface. The custom attributes contained in the other record are the same as those contained in the first record, and the attribute parameters corresponding to the custom attributes contained in the other record are configurable. The first table contains the first record and the at least one other record, and the data in the first table can be accessed by visual programming tools.
[0011] According to one aspect of the embodiments of this application, a data access method is provided, the method comprising:
[0012] In the code display area of the visual programming tool, add a table access block. The code display area is used to display at least one block contained in the visual programming project created in the visual programming tool, and the table access block is used to access the data in the table.
[0013] In response to a configuration operation for the table access block, a first access object is added to the table access block. The first access object is used to indicate all or part of the data in the first table. The first table contains at least one record, and each record contains at least one custom attribute and attribute parameters corresponding to the at least one custom attribute.
[0014] In response to the operation of executing the visual programming project, when the table access block is executed, the data indicated by the first access object in the first table is accessed.
[0015] According to one aspect of the embodiments of this application, a data configuration apparatus is provided, the apparatus comprising:
[0016] The interface display module is used to display the table configuration interface of the table tool. The table configuration interface displays a new table control, which is used to create a new table.
[0017] The information display module is used to respond to the operation on the newly created table control by displaying the identification information of the newly created first table, the identification information of the first record contained in the first table, and the attribute configuration interface of the first record.
[0018] An attribute configuration module is configured to respond to an operation on the attribute configuration interface, wherein at least one custom attribute contained in the first record and attribute parameters corresponding to the at least one custom attribute are configured in the attribute configuration interface.
[0019] The record display module is used to respond to the operation of adding a record to the first table, and to display at least one other record added to the first table in the table configuration interface, excluding the first record. The custom attributes contained in the other record are the same as the custom attributes contained in the first record, and the attribute parameters corresponding to the custom attributes contained in the other record are configurable. The first table contains the first record and the at least one other record, and the data in the first table can be accessed by a visual programming tool.
[0020] According to one aspect of the embodiments of this application, a data access apparatus is provided, the apparatus comprising:
[0021] A block-adding module is used to add table access blocks to the code display area of a visual programming tool. The code display area is used to display at least one block contained in a visual programming project created in the visual programming tool, and the table access blocks are used to access data in a table.
[0022] An object adding module is used to add a first access object to the table access block in response to a configuration operation for the table access block. The first access object is used to indicate all or part of the data in the first table. The first table contains at least one record, and each record contains at least one custom attribute and attribute parameters corresponding to the at least one custom attribute.
[0023] The data access module is used to access the data indicated by the first access object in the first table when the operation of the visual programming project is executed and the table access block is reached.
[0024] According to one aspect of the embodiments of this application, a terminal device is provided, the terminal device including a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the above-described data configuration method or data access method.
[0025] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein a computer program is stored in the storage medium, the computer program being loaded and executed by a processor to implement the above-described data configuration method or data access method.
[0026] According to one aspect of the embodiments of this application, a computer program product is provided, the computer program product including a computer program, the computer program being loaded and executed by a processor to implement the above-described data configuration method or data access method.
[0027] The technical solutions provided in this application have at least the following beneficial effects:
[0028] Users can create tables and configure the data in the tables through the table configuration interface and attribute configuration interface provided by the table tool. This allows users to easily access and apply the data in the table within the visual programming tool, reducing the complexity of data configuration and data acquisition. Attached Figure Description
[0029] Figure 1 This is a schematic diagram of the implementation environment of a solution provided in one embodiment of this application;
[0030] Figure 2 This is a flowchart of a data configuration method provided in one embodiment of this application;
[0031] Figure 3 This is a schematic diagram of a table configuration interface provided in one embodiment of this application;
[0032] Figure 4 This is a schematic diagram of a user interface provided in one embodiment of this application;
[0033] Figure 5 This is a schematic diagram of an attribute configuration interface provided in one embodiment of this application;
[0034] Figure 6 This is a schematic diagram of a newly created record provided in one embodiment of this application;
[0035] Figure 7 This is a schematic diagram illustrating other functions of the form tool provided in one embodiment of this application;
[0036] Figure 8 This is a flowchart of a data access method provided in one embodiment of this application;
[0037] Figure 9 This is a schematic diagram of a block panel provided in one embodiment of this application;
[0038] Figure 10 This is a schematic diagram of a table access block provided in one embodiment of this application;
[0039] Figure 11 This is a schematic diagram illustrating the updated attributes provided in one embodiment of this application;
[0040] Figure 12 This is a schematic diagram illustrating the acquisition of multiple data according to one embodiment of this application;
[0041] Figure 13 This is a block diagram of a data configuration apparatus provided in one embodiment of this application;
[0042] Figure 14 This is a block diagram of a data access device provided in one embodiment of this application;
[0043] Figure 15 This is a structural block diagram of a terminal device provided in one embodiment of this application. Detailed Implementation
[0044] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0045] Please refer to Figure 1 This diagram illustrates an implementation environment provided by one embodiment of the present application. This implementation environment can be implemented as an application system. The implementation environment may include: a terminal device 10 and a server 20.
[0046] Terminal device 10 includes, but is not limited to, mobile phones, tablets, smart voice interaction devices, game consoles, handheld game consoles, wearable devices, multimedia playback devices, PCs (Personal Computers), in-vehicle terminals, smart home appliances, AR (Augmented Reality) devices, VR (Virtual Reality) devices, and other electronic devices. Terminal device 10 can run a client of a target application (such as a visual programming application). Optionally, the target application can be an application that needs to be downloaded and installed, or it can be a webpage or a mini-program; this embodiment does not limit this.
[0047] In this application embodiment, the target application can be a visual programming application, a game application, or other applications with visual programming capabilities; this application embodiment does not limit this. It is understood that game applications have visual programming capabilities. For example, users can use these visual programming capabilities to create UGC (User Generated Content).
[0048] In this embodiment, the target application includes a visual programming tool and a table tool. The visual programming tool is used to develop visual programming projects, and the table tool is used to pre-create and configure the tables required for developing visual programming projects.
[0049] Optionally, the target application is a puzzle game application that provides users with a UGC (User-Generated Content) editor to customize levels. Optionally, the UGC editor includes a table tool and a visual programming tool. A puzzle game is a game genre where the main objective is to complete a series of challenging levels. Users must face various obstacles, enemies, or puzzles to complete each level and ultimately achieve the game's victory conditions. Introducing a visual programming tool into the puzzle game application allows users without programming experience to easily design more complex custom levels. When designing a custom level in the visual programming tool, users need to configure the attributes of one or more virtual items. This can be done by accessing a pre-created and configured table in the table tool to obtain data from the table and configure the attributes of the aforementioned one or more virtual items.
[0050] Server 20 is used to provide backend services for the client of the target application in terminal device 10. For example, server 20 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, but it is not limited to these.
[0051] Terminal device 10 and server 20 can communicate with each other via a network. This network can be a wired network or a wireless network.
[0052] Please refer to Figure 2 The diagram illustrates a flowchart of a data configuration method provided in one embodiment of this application. The entity executing each step of this method may be... Figure 1 The terminal device 10 in the implementation environment of the illustrated scheme, for example, the execution entity of each step can be a client of the target application. The method may include at least one of the following steps (210-240):
[0053] Step 210: Display the table configuration interface of the table tool. The table configuration interface displays a new table control, which is used to create a new table.
[0054] A table tool provides users with the ability to organize, edit, and manage at least one table. A table is a data structure that organizes at least one piece of data in a defined format. For example, a user can create a table using the table tool and record at least one piece of data within it. For example, a user can manage at least one table using the table tool. For example, a user can edit the data recorded in a table using the table tool. Editing operations on the data may include, but are not limited to, adding, deleting, and modifying data, and may also include other editing operations; this application embodiment does not limit this. For example, a user can manage data using the table tool according to their needs. For example, data management operations may include, but are not limited to, sorting, filtering, searching, and grouping, and may also include other management operations; this application embodiment does not limit this.
[0055] The table configuration interface provides users with functions for organizing, editing, and managing data, as well as displaying the data. Optionally, the table configuration interface includes a table display area and at least one control for organizing, editing, and managing data. The table display area is used to display the table and at least one piece of data contained in the table. It should be noted that the number of tables can be one or more, and this embodiment of the application does not limit this. For example, the control for organizing, editing, and managing data can be a new table control.
[0056] For example, please refer to Figure 3 It shows a schematic diagram of a table configuration interface provided in one embodiment of this application. Figure 3 The table configuration interface 30 in sub-diagram (a) displays a new table control 31 and a table display area 32.
[0057] In some embodiments, a table tool control is displayed in the user interface of the target application. The table tool control is used to trigger the display of the table configuration interface of the table tool; in response to an operation on the table tool control, the table configuration interface of the table tool is displayed.
[0058] In some embodiments, the above-mentioned table tool control can be an explicit control, which can be implemented using interactive elements including but not limited to the following: icons, buttons, menus, etc., or can be implemented through other interactive elements, which are not limited in this application.
[0059] In some embodiments, the above-described table tool control can be an implicit control. For example, the table configuration interface can be displayed by triggering an AI (Artificial Intelligence) assistant in the target application, where the AI assistant provides services such as prompts, suggestions, and help to the user.
[0060] Operations on table tool controls refer to user actions performed to display the table configuration interface. For example, when the table tool control is an icon or button, the user clicks it to display the table configuration interface. Alternatively, the user interface may display a menu control; clicking this menu control brings up multiple selection controls, with different selection controls corresponding to different services. Clicking the selection control corresponding to the table configuration interface displays the table configuration interface. The selection control corresponding to the table configuration interface is the table tool control. For instance, the table tool control may be implemented through an AI assistant in the target application; sending a request to the AI assistant to display the table configuration interface will then display it.
[0061] For example, please refer to Figure 4 This diagram illustrates a user interface provided in one embodiment of this application. In the user interface 40 of the target application, a menu control 41 is displayed. Clicking the menu control 41 retrieves multiple selection controls. Among them, the table tool control 42 is the selection control corresponding to the table configuration interface. Clicking the table tool control 42 displays... Figure 3 The table configuration interface in 30.
[0062] Step 220: In response to the operation on the newly created table control, display the identification information of the newly created first table, the identification information of the first record contained in the first table, and the attribute configuration interface of the first record.
[0063] Operations on the newly created table control refer to actions that trigger and display the content of the newly created first table. These operations may include, but are not limited to, clicking, voice control, dragging, and shortcut keys, and may also include other operations. This application embodiment does not limit these operations. Clicking can be done by clicking the newly created table control at a corresponding position on the terminal device's display screen, or by controlling the mouse cursor to click the newly created table control. Voice control can trigger and display the content of the newly created first table through voice commands. Dragging can be done by clicking and dragging the newly created table control at a corresponding position on the terminal device's display screen, or by controlling the mouse cursor to click and drag the newly created table control. Users can trigger and display the content of the newly created first table by using the shortcut key corresponding to the newly created table control. Optionally, the shortcut key can be a physical control on any of the following devices: keyboard, gamepad, terminal device, etc., or a physical control on other input devices. This application embodiment does not limit these physical controls. Physical controls may include, but are not limited to, physical buttons, physical joysticks, physical touchpads, etc., and may also include other physical controls. This application embodiment does not limit these physical controls. In this application, other operations on the controls can also be implemented in a similar manner as described above.
[0064] The first table refers to a table newly created by the user through a table tool. Optionally, the newly created first table may include some initialization data. For example, the initialization data may be default records, the content of which is pre-configured by relevant technical personnel, and this application does not limit this. Optionally, the newly created first table may also contain no data, that is, it is an empty table. The identification information of the first table is information used to uniquely identify the first table, and may be represented by at least one of the following: table name, table identifier (ID), table description, data range, creation date, preset name, author information, table serial number, etc., and may also include other information, which is not limited in this application embodiment. In the table tool, the identification information of different tables is different.
[0065] In this application, the newly created first table includes a first record, meaning that a record is created simultaneously with the newly created table. The first record is the first record created in the first table. Optionally, the newly created first record may not contain any data, i.e., it is an empty record. Optionally, the newly created first record may also contain some initialization data. For example, the initialization data may be default attributes, the content of which is pre-configured by relevant technical personnel, and this application embodiment does not limit this. The identification information of the first record is information used to uniquely identify the first record, and may be represented by at least one of the following: record name, record ID, record description, record sequence number, etc., and may also include other information, which this application embodiment does not limit. The identification information of records in the same table is different from each other. The identification information of records in different tables may be the same or different, which this application embodiment does not limit.
[0066] In this application, each record in the table represents complete information about an entity, corresponding to a row of data in a general table. A general table refers to a table that organizes data using rows and columns.
[0067] The attribute configuration interface for the first record is used to view or edit the attributes contained in the first record. Optionally, the attribute configuration interface can be implemented in any of the following ways: pop-up window, dialog box, sidebar, independent interface, etc., and other methods can also be used. This application embodiment does not limit this. Each attribute in the table is used to indicate the category and characteristics of the data, corresponding to a column of data in a general table.
[0068] In some embodiments, the attribute configuration interface may also display at least one of the following: the identification information of the first record, the attributes contained in the first record, the attribute parameters corresponding to the attributes contained in the first record, etc., and may also include other content, which is not limited in this embodiment.
[0069] In some embodiments, in response to an operation on a newly created table, the identification information of the newly created first table, the identification information of the first record contained in the first table, and the attribute configuration interface of the first record are displayed in the table display area of the table configuration interface.
[0070] For example, such as Figure 3 As shown in sub-figure (a), clicking the new table control 31 in the table configuration interface 30 displays the identification information 33 of the first table, the identification information 34 of the first record, and the attribute configuration interface 35 of the first record in the table display area 32. The identification information 33 of the first table is represented by the table name, which is... Figure 3 As shown in subgraph (a), the table name of the first table is "Sub-table 1". The identification information 34 of the first record is represented by the record name, which is... Figure 3 It can be seen that the record name of the first record is "Row 1". It should be noted that this example is for illustrative purposes only; the table name of the first table and the record name of the first record are set by the user or relevant technical personnel. The attribute configuration interface 35 is implemented using a sidebar and is displayed directly within the table configuration interface 30.
[0071] Step 230: In response to an operation on the attribute configuration interface, configure at least one custom attribute contained in the first record and the attribute parameters corresponding to each of the at least one custom attribute in the attribute configuration interface.
[0072] Custom attributes are attributes that users define and configure according to their needs. Attribute parameters for custom attributes describe the characteristics of the custom attribute and may include, but are not limited to: attribute name, attribute type, attribute container type, default value, whether it is required, index, read-only or writable, optional value, visibility, and other attribute parameters. When adding a new custom attribute, the attribute type is set to "Boolean" by default, and the default value is "false".
[0073] The name of the custom attribute can be configured by the user or it can be a preset name set by relevant technical personnel. This application embodiment does not limit this.
[0074] The attribute type of a custom attribute describes the structure, storage method, and operation rules of the data stored in that custom attribute. Optionally, the attribute type that a user can configure for a custom attribute may include preset attribute types or custom attribute types; this embodiment does not limit this. Preset attribute types refer to attribute types predefined by those skilled in the art, and may include, but are not limited to: numerical values, strings, Boolean values, vectors, etc., and may also include other preset attribute types; this embodiment does not limit this. Custom attribute types refer to attribute types defined by the user, such as structures, players, characters, components, modules, props, logic components, motion units, timers, tasks, special effects, triggers, etc., and may also include other types of custom attribute types; this embodiment does not limit this. A structure refers to a custom attribute type that includes data with multiple attribute types.
[0075] The property container type of a custom property indicates the amount of data that the custom property can hold. For example, the property container type that a custom property can be configured with can be a single value or an array. Optionally, the property container type for each custom property defaults to a single value.
[0076] Attribute default values refer to the default values for attribute types. Optionally, attribute default values can be configured by the user; if they cannot be configured by the user and are determined by the definition of the attribute type, this application embodiment does not impose any limitations on this. Optionally, different attribute types correspond to different ranges of attribute default values. For example, the default value for a Boolean value can only be true or false, or 1 or 0, or either true or false. For example, the default value for a numeric value can range from negative infinity to positive infinity, or it can be a positive integer, or it can be an integer; this application embodiment does not impose any limitations on this. For example, the default value for a string attribute can be empty.
[0077] "Required" indicates whether the default value of this custom attribute can be empty. "Index" refers to the information used to find a specific custom attribute within a record. "Read-only" or "Write-only" indicates whether the custom attribute can be modified. "Optional values" refers to the data whose default value can be configured. "Visibility" indicates the scope within which the custom attribute can be accessed.
[0078] In some embodiments, the attribute configuration interface displays at least one functional control, which is used to configure at least one custom attribute contained in the first record, and attribute parameters corresponding to the at least one custom attribute.
[0079] In some embodiments, the attribute configuration interface displays an attribute addition control, which is used to add custom attributes; in response to an operation on the attribute addition control, at least one custom attribute contained in the first record is added to the attribute configuration interface; in response to a configuration operation on the first custom attribute among the at least one custom attributes, a detailed configuration interface for the first custom attribute is displayed, which displays a configuration item for at least one attribute parameter corresponding to the first custom attribute; in response to an operation on the configuration item, at least one attribute parameter corresponding to the first custom attribute is displayed.
[0080] The attribute adding control is a functional control used to add custom attributes to the first record. Optionally, the attribute adding control can be implemented in at least one of the following ways: button, text box, drop-down list, drag-and-drop control, etc., and other methods can also be used, which are not limited in this application embodiment.
[0081] For example, such as Figure 3 As shown in sub-figure (a), after clicking the property addition control 36 in the property configuration interface 35, a newly created custom property 37 is displayed in the property configuration interface 35.
[0082] The first custom attribute refers to any one of the at least one custom attributes contained in the user's first record.
[0083] In some embodiments, the attribute configuration interface displays at least one detail entry control corresponding to each custom attribute, and the detail entry control is used to trigger the display of the detail configuration interface corresponding to the custom attribute; in response to the operation of the detail entry control corresponding to the first custom attribute of the at least one custom attribute, the detail configuration interface of the first custom attribute is displayed.
[0084] Optionally, the detailed configuration interface corresponding to the first custom attribute can be triggered by clicking or double-clicking the first custom attribute in at least one custom attribute.
[0085] The detailed configuration interface refers to the interface used to configure at least one attribute parameter contained in the first custom attribute. The configuration items for the attribute parameters in the detailed configuration interface are controls used to configure those attribute parameters. Optionally, configuration items may include, but are not limited to, the following controls: input boxes, toggle buttons, check boxes, selection controls, etc., and may also include other controls; this embodiment of the application does not limit this.
[0086] For example, such as Figure 3 As shown in sub-image (a), clicking the details entry control 38 of the first custom attribute displays... Figure 5The detailed configuration interface 51 corresponding to the first custom attribute is shown. The detailed configuration interface 51 of the first custom attribute displays four configuration items for attribute parameters: configuration item 52 for the attribute name, configuration item 53 for the attribute type, configuration item 54 for the attribute container type, and attribute default value 55. The user configures the first custom attribute by configuring the attribute name as "Life Value", the attribute type as "Number", the attribute container type as "Single Value", and the attribute default value as "100".
[0087] In some embodiments, when the attribute container type is configured as an array, an array configuration item is displayed in the details configuration interface. The array configuration item is used to create an array.
[0088] For example, other custom attributes can be created for the first record in the same way as described above, as shown in subgraph (b) of Figure (3). The first record includes four custom attributes: health, attack power, defense power, and whether it can fly.
[0089] The above method allows you to easily configure and edit tables by adding and configuring at least one custom attribute for each record in the table through the controls provided in the attribute configuration interface and the details configuration interface.
[0090] Step 240: In response to the operation of adding a record to the first table, at least one other record besides the first record is displayed in the table configuration interface. The custom attributes contained in the other records are the same as the custom attributes contained in the first record. The attribute parameters corresponding to the custom attributes contained in the other records are configurable. The first table contains the first record and at least one other record, and the data in the first table can be accessed by the visual programming tool.
[0091] The name and number of custom attributes contained in the first record are the same as the name and number of custom attributes contained in the other records. In some embodiments, some attribute parameters in at least one custom attribute contained in the other records are configurable. For example, the default value of the attribute in the custom attribute in the other records is configurable. For example, the attribute name and attribute type in the custom attribute in the other records are not configurable.
[0092] Visual programming tools are tools used to develop visual programming projects.
[0093] In some embodiments, the table configuration interface also displays a new record control corresponding to the first record. The new record control is used to create at least one other record that has the same custom attributes as the first record. In response to the operation on the new record control, at least one other record added to the first table, excluding the first record, is displayed in the table configuration interface.
[0094] The new record control is used to add one or more records to the first table. Optionally, the attribute addition control can be implemented in at least one of the following ways: button, text box, drop-down list, drag-and-drop control, etc., and other methods can also be used, which are not limited in this application embodiment.
[0095] In some embodiments, in response to an operation on the New Record control, an additional record is added below the last record already contained in the first table displayed in the table configuration interface.
[0096] Newly added records are created using the first record as a template. Optionally, at least one custom attribute and its corresponding attribute parameter in the newly added records are completely identical to at least one custom attribute and its corresponding attribute parameter in the first record. However, the attribute parameters corresponding to the custom attributes in the newly added records are configurable. Optionally, at least one custom attribute and some of its corresponding attribute parameters in the newly added records are completely identical to at least one custom attribute and some of its corresponding attribute parameters in the first record. The inconsistent attribute parameters in the other records are system default values and are configurable.
[0097] In the table configuration interface, at least one record in the first table is laid out in a list format according to a certain order. Optionally, the at least one record in the first table is laid out in the order it was created by default. Optionally, the layout order of the at least one record can be adjusted. Optionally, the first record of the first table displayed in the table configuration interface is fixed as the first record.
[0098] The last record contained in the first table displayed in the table configuration interface, which is also the last record in the list above.
[0099] In some embodiments, the added other records are selected by default; the attribute configuration interface of the other records is displayed, and at least one custom attribute contained in the other records is displayed in the attribute configuration interface of the other records.
[0100] In other words, after adding a new record, the table configuration interface will display the attribute configuration interface for that new record. Users can configure at least one custom attribute for the newly added record in this interface.
[0101] In some embodiments, in response to an operation on a fourth record among at least one record contained in the first table, an attribute configuration interface corresponding to the fourth record is displayed.
[0102] The fourth record is any one of the at least one records contained in the first table.
[0103] For example, please refer to Figure 6 It shows a schematic diagram of creating a new record according to an embodiment of this application. Clicking the new record control 61 displays the identification information 62 of the newly created other records below the identification information 34 of the first record displayed in the table display area 32, and also displays the attribute configuration interface 63 corresponding to the newly created other records.
[0104] The above method, through the new record control provided in the table configuration interface, creates at least one other record for the first table using the first record as a template, which improves the efficiency and consistency of creating new records, optimizes the user experience, and reduces the possibility of errors.
[0105] In summary, the method provided in this application allows users to create tables and configure the data in the tables through the table configuration interface and attribute configuration interface provided by the table tool. This enables users to easily access and apply the data in the table in the visual programming tool, reducing the complexity of data configuration and data acquisition.
[0106] The following describes the editing functions that the table tool provides for records.
[0107] In some embodiments, the table configuration interface further displays at least one first expand control for each record, the first expand control being used to trigger the display of a record editing control for editing that record; in response to an operation on the first expand control corresponding to a second record among at least one records, at least one record editing control is displayed. The at least one record editing control may include at least one of the following: a record insertion control, a record copy control, a record paste control, and a record delete control, and may also include other record editing controls, which are not limited in this embodiment.
[0108] In some embodiments, at least one record editing control is displayed as a pop-up window.
[0109] For example, please refer to Figure 7It shows a schematic diagram of other functions of the table tool provided in one embodiment of the present application. In the table configuration interface 30, clicking the first expansion control 701 corresponding to the second record displays the first expansion pop-up window 702. The first expansion pop-up window 702 displays a record insertion control 703, a record copy control 704, a record paste control 705, and a record deletion control 706.
[0110] In some embodiments, editing functionality for the second record may include at least one of the following:
[0111] (1) Record insertion function: In response to the insertion operation of the second record contained in the first table, add another record above the second record displayed in the table configuration interface.
[0112] In some embodiments, in response to an operation of the record insertion control corresponding to the second record contained in the first table, an additional record is added above the second record displayed in the table configuration interface.
[0113] For example, such as Figure 7 As shown, clicking the record insertion control 703 in the first expanded pop-up window 702 of the second record will display the identification information 708 of another record above the identification information 707 of the second record.
[0114] (2) Record copy function: In response to a copy operation on a second record contained in the first table, copy at least one custom attribute contained in the second record, and the attribute parameter corresponding to at least one custom attribute, to the clipboard.
[0115] In some embodiments, in response to an operation on a record copy control corresponding to a second record contained in a first table, at least one custom attribute contained in the second record, and the attribute parameter corresponding to at least one custom attribute, are copied to the clipboard.
[0116] A clipboard is a tool for temporary storage, used to save data that a user has cut or copied, so that this data can be pasted between different locations or different applications. Optionally, the clipboard can be a tool built into the target application or a tool built into the terminal device 10; this embodiment of the application does not limit this.
[0117] In some embodiments, the record copy function and the record paste function need to be used together.
[0118] For example, such as Figure 7 As shown, clicking the record copy control 704 in the first expanded pop-up window 702 of the second record will copy at least one custom attribute contained in the second record, as well as the attribute parameters corresponding to at least one custom attribute, to the clipboard.
[0119] (3) Record Paste Function: In response to a paste operation on a second record contained in the first table, at least one custom attribute contained in the third record saved in the clipboard, and the attribute parameter corresponding to at least one custom attribute, are configured as at least one custom attribute contained in the second record, and at least one attribute parameter corresponding to at least one custom attribute.
[0120] In some embodiments, in response to an operation on a record paste control corresponding to a second record contained in a first table, at least one custom attribute contained in a third record saved in the clipboard, and an attribute parameter corresponding to at least one custom attribute, are configured as at least one custom attribute contained in the second record, and at least one attribute parameter corresponding to at least one custom attribute.
[0121] The third record is any one of the at least one records included in the first table. Optionally, the second record and the third record can be different records or the same record; this embodiment of the application does not limit this.
[0122] For example, such as Figure 7 As shown, clicking the record paste control 705 in the first expanded pop-up window 702 of the second record configures at least one custom attribute contained in the third record saved in the clipboard, and the attribute parameter corresponding to at least one custom attribute, as the second record contains at least one custom attribute, and at least one attribute parameter corresponding to at least one custom attribute.
[0123] (4) Record deletion function: In response to the deletion operation of the second record contained in the first table, delete the second record in the table configuration interface.
[0124] In some embodiments, in response to an operation on the record deletion control corresponding to the second record contained in the first table, the second record is deleted in the table configuration interface. That is, the second record is deleted in the first table.
[0125] For example, such as Figure 7 As shown, clicking the record deletion control 706 in the first expanded pop-up window 702 of the second record will cause the identification information 707 of the second record to no longer be displayed in the table configuration interface 30.
[0126] (5) Record reset function: In response to the reset operation of the second record contained in the first table, reset at least one custom attribute contained in the second record and the attribute parameter corresponding to at least one custom attribute to the default configuration parameter.
[0127] In some embodiments, the attribute configuration interface also displays a record reset control; in response to an operation on the record reset control corresponding to the second record contained in the first table, at least one custom attribute contained in the second record, and the attribute parameter corresponding to at least one custom attribute, are reset to the default configuration parameter.
[0128] In some embodiments, the default configuration parameter may be at least one custom attribute contained in the first record, and the attribute parameter corresponding to the at least one custom attribute. In some embodiments, the default configuration parameter may also be at least one custom attribute contained in the second record, and the system default value of each of the attribute parameters corresponding to the at least one custom attribute. This can be designed by those skilled in the art according to their needs, and the embodiments of this application do not limit this.
[0129] For example, such as Figure 7 As shown, clicking the record reset control in the attribute configuration interface 35 corresponding to the second record will reset at least one custom attribute contained in the second record, as well as the attribute parameters corresponding to at least one custom attribute, to the default configuration parameters.
[0130] It should be noted that the second record is any record contained in the first table.
[0131] The above methods provide users with more functions for recording, improving their efficiency in editing and managing records in spreadsheet tools.
[0132] The following section describes the editing capabilities that the table tool provides for custom attributes.
[0133] In some embodiments, the attribute configuration interface further displays at least one second expandable control corresponding to a custom attribute. The second expandable control is used to trigger the display of an attribute editing control for editing the custom attribute. In response to an operation on the second expandable control corresponding to the first custom attribute among the at least one custom attributes, at least one attribute editing control is displayed. The at least one editing control may include at least one of the following: an attribute copy control, an attribute paste control, and an attribute delete control, and may also include other attribute editing controls, which are not limited in this embodiment.
[0134] In some embodiments, at least one property editing control is displayed as a pop-up window.
[0135] For example, such as Figure 7 As shown, in the attribute configuration interface 35, clicking the second expand control 710 corresponding to the first custom attribute displays the second expand pop-up window 711, which displays the attribute copy control 712, the attribute paste control 713, and the attribute delete control 714.
[0136] In some embodiments, editing functionality for custom attributes may include at least one of the following:
[0137] (1) Attribute copy function: In response to the copy operation for the first custom attribute, copy at least one attribute parameter corresponding to the first custom attribute to the clipboard.
[0138] In some embodiments, in response to an operation on the attribute copy control corresponding to the first custom attribute, at least one attribute parameter corresponding to the first custom attribute is copied to the clipboard.
[0139] In some embodiments, the attribute copy function and the attribute paste function need to be used together.
[0140] For example, such as Figure 7 As shown, clicking the attribute copy control 712 in the second pop-up window 711 of the first custom attribute will copy at least one attribute parameter corresponding to the first custom attribute to the clipboard.
[0141] (2) Attribute Paste Function: In response to the paste operation for the first custom attribute, at least one attribute parameter of the second custom attribute saved in the clipboard is configured as at least one attribute parameter corresponding to the first custom attribute.
[0142] In some embodiments, in response to an operation on the attribute paste control corresponding to the first custom attribute, at least one attribute parameter of the second custom attribute saved in the clipboard is configured as at least one attribute parameter corresponding to the first custom attribute.
[0143] For example, such as Figure 7 As shown, clicking the attribute paste control 713 in the second expanded pop-up window 711 of the first custom attribute will configure at least one attribute parameter of the second custom attribute saved in the clipboard as at least one attribute parameter corresponding to the first custom attribute.
[0144] (3) Attribute deletion function: In response to the deletion operation of the first custom attribute, delete the first custom attribute in the attribute configuration interface.
[0145] Optionally, the attribute deletion control is displayed in the attribute configuration interface of the first record. The attribute deletion control is not displayed in the configuration editing interfaces of other records.
[0146] In some embodiments, in response to an operation on the attribute paste control corresponding to the first custom attribute, at least one attribute parameter of the second custom attribute saved in the clipboard is configured as at least one attribute parameter corresponding to the first custom attribute.
[0147] For example, such as Figure 7As shown, clicking the attribute deletion control 714 in the second expanded pop-up window 711 of the first custom attribute will delete the first custom attribute in the attribute configuration interface. That is, the first custom attribute will be deleted from at least one record contained in the first table.
[0148] The above methods provide users with more functions for custom attributes, improving the flexibility of editing and managing custom attributes in table tools.
[0149] The following section describes other features offered by the table tool.
[0150] In some embodiments, the table configuration interface may also display at least one of the following: a search control, an undo control, a restore control, and an exit control.
[0151] In some embodiments, the form tool also provides at least one of the following functions:
[0152] (1) Search function: In response to the operation of the search control in the table configuration interface, display the identification information of at least one record related to the information entered through the search control in the table configuration interface.
[0153] The search control is used to search for a target record in the first table. The target record refers to the record the user is looking for.
[0154] For example, such as Figure 7 As shown, when you enter the keyword information related to the identification information of the target record in the search control 715 in the table configuration interface 30, at least one record related to the keyword information will be displayed in the table display area 32.
[0155] (2) Undo function: In response to the operation of the undo control in the table configuration interface, the first table is returned to the state when the last editing operation was performed.
[0156] Optionally, the editing operation can be any operation on a table, record, custom attribute, or attribute parameter: add operation, delete operation, modify operation, move operation, insert operation, copy operation, paste operation, etc., and may also include other operations, which are not limited in this embodiment.
[0157] For example, such as Figure 7 As shown, assuming the last editing operation was deleting the second record of the first table, clicking the undo control 716 in the table configuration interface 30 will undo the deletion operation on the second record of the first table, and the identification information 707 of the second record will be restored in the table display area 32.
[0158] (3) Restore function: In response to the operation of the restore control in the table configuration interface, restore the first table to the state when the last undo operation was performed.
[0159] Based on the previous example, clicking the restore control 717 in the table configuration interface 30 will restore the first table to the state it was in when the last undo operation was performed, which means retaining the operation of deleting the second record of the first table.
[0160] (4) Automatic save function: In response to the operation of the exit control in the table configuration interface, exit the table configuration interface and automatically save the first table.
[0161] In some embodiments, in response to an operation on the exit control in the form configuration interface, the user interface of the target application is displayed; the first form is automatically saved and the operation cache data of the form tool is cleared.
[0162] For example, such as Figure 7 As shown, in the table configuration interface 30, click the exit control 718 to exit the table configuration interface and automatically save the first table.
[0163] The above methods provide users with more functions and improve their efficiency in editing and managing tables in spreadsheet tools.
[0164] Tables configured using the table configuration method in the table tool can be accessed and used during the programming process in the visual programming tool. The following describes the implementation process of the data access method for tables in the visual programming tool.
[0165] Please refer to Figure 8 The diagram illustrates a flowchart of a data access method provided in one embodiment of this application. The execution entity for each step of the method can be a terminal device; for example, the terminal device could be... Figure 1 The terminal device 10 in the implementation environment of the scheme shown. The method may include at least one of the following steps (810-830):
[0166] Step 810: In the code display area of the visual programming tool, add a table access block. The code display area is used to display at least one block contained in the visual programming project created in the visual programming tool. The table access block is used to access the data in the table.
[0167] Visual programming is a programming method based on a graphical user interface (GUI), which uses graphical elements to represent the structure and logic of a program. Graphical elements are the basic building blocks used to represent the structure and logic of a program, including but not limited to blocks, nodes, connections, comments, and labels. Visual programming includes at least one of the following types: block programming, node programming, and flowchart programming. Block programming refers to visual programming that allows users to build programs using blocks. Node programming refers to visual programming that allows users to build programs using nodes and connections. Flowchart programming refers to visual programming that allows users to build programs using flowchart symbols. Therefore, visual programming tools are tools provided by the target application to users for developing visual programming projects. Optionally, visual programming tools provide tools, graphical elements, help information, etc., for development. In essence, a visual programming project is a project developed using visual programming.
[0168] In some embodiments, the user interface of the target application also displays a programming tool control, which is used to trigger the display of a visual programming interface; in response to an operation on the programming tool control, the visual programming interface is displayed, which provides a programming environment for visual programming, and includes controls such as a code display area, a block panel, a menu bar, and a console.
[0169] For example, such as Figure 4 As shown, clicking the menu control 41 will bring up multiple selection controls. Among them, the programming tool control 43 is the selection control corresponding to the signal display interface. Clicking the programming tool control 43 will display the visual programming interface.
[0170] In some embodiments, the block panel is used to display different types of candidate blocks; the block panel displays candidate table access blocks; in response to an operation on a candidate table block, a table access block is added in the code display area of the visual programming tool.
[0171] A block refers to a graphical programming block used to perform a specified operation. Users can build programs in a visual programming editor by dragging and dropping blocks and assembling them. Optionally, blocks may include at least one of the following types: event type, control type, action type, appearance type, sound type, detection type, operation type, pen type, variable type, function type, value type, music type, etc., and may also include other types, which are not limited in this embodiment.
[0172] In some embodiments, when a user creates at least one table using a table tool, the table access block can be used to access any data in any table within the at least one table. Optionally, the table access block can be an action-type block or a value-type block. Of course, the table access block can also be other types of blocks, and this embodiment of the application does not limit this.
[0173] Step 820: In response to the configuration operation for the table access block, add a first access object to the table access block. The first access object is used to indicate all or part of the data in the first table. The first table contains at least one record, and each record contains at least one custom attribute and at least one attribute parameter corresponding to the custom attribute.
[0174] The first access object refers to the data in the first table that the table access block needs to access, either all or part of it. For example, if the user needs to access the entire first table, the first access object indicates all the data in the first table. Similarly, if the user needs to access a specific record in the first table, the first access object indicates the data in a specific row. Furthermore, if the user needs to access the attribute parameter corresponding to a custom attribute in all records of the first table, the first access object indicates the data in a specific column of the first table. Finally, if the user needs to access the data corresponding to a custom attribute in a specific record of the first table, the first access object indicates that specific data in the first table.
[0175] In some embodiments, the table access block includes an access object adding control for adding access objects, the access objects being related to at least one of the following: a table, a record, a custom attribute, and an attribute parameter; in response to an operation on the access object adding control, displaying at least one candidate access object; and in response to an operation on selecting a first access object from at least one candidate access object, adding a first access object in the table access block.
[0176] The access object adding control refers to a control used to determine the data to be accessed by the table access block. Optionally, the number of access object adding controls included in the table access block can be one or more, and this embodiment of the application does not limit this. Optionally, the first access object is determined by combining at least one access object adding control.
[0177] In some embodiments, each record in the first table corresponds to a struct object, which is an instance object created based on at least one custom attribute contained in the record. That is, a struct is defined based on at least one custom attribute contained in the record, and at least one struct object is created based on the struct and at least one record.
[0178] In the above method, users can add controls to access objects to determine the data of the table to be accessed by configuring the table access block, allowing users to flexibly access the table in a visual programming tool.
[0179] Step 830: In response to the operation of executing the visual programming project, when the table access block is executed, access the data indicated by the first access object in the first table.
[0180] In some embodiments, the visual programming interface displays a run control and a debug control, the run control being used to execute the visual programming project, and the debug control being used to test the visual programming project; in response to an operation on the run control or the debug control, when the table access block is executed, the data indicated by the first access object in the first table is accessed.
[0181] The actions for accessing a table may include, but are not limited to, adding, deleting, reading, and modifying. Those skilled in the art can also define other actions for accessing a table as needed; this application embodiment does not limit such actions. How the first table is accessed is determined by the table access block and the first access object of the table access block.
[0182] In summary, the method provided in this application embodiment allows users to use table access blocks in a visual programming tool, configure the table access blocks according to their needs, and access data in a pre-configured table. This enables users to easily access and apply the data in the table within the visual programming tool, reducing the complexity of data configuration and data acquisition.
[0183] The following describes different scenarios for accessing the first table in a visual programming tool.
[0184] In some embodiments, the table access block is configured through at least one of the following operations:
[0185] Operation 1: When a control is added to an access object to add a table, in response to the operation of adding a control to the access object, display at least one candidate table object, each table object indicating a table.
[0186] Operation 2: When a control is added to an access object to add a record, in response to the operation of adding a control to the access object, display at least one candidate record object, each record object indicating a record.
[0187] Operation 3: When adding a control to an access object to add a custom property, in response to the operation of adding a control to the access object, display at least one candidate property object, each property object indicating a custom property.
[0188] Operation 4: When adding a control to an access object to add attribute parameters, in response to the operation of adding a control to the access object, display at least one candidate parameter object, each parameter object indicating a custom attribute contained in a record.
[0189] In some embodiments, table objects, record objects, attribute objects, and parameter objects are all blocks of the structure type.
[0190] For example, by performing operation 1, the user determines that the table to be accessed is the second table, and by performing operation 2, determines that the record to be accessed is the fifth record of the second table. By performing operation 1 and operation 2 in sequence, the user can determine the data corresponding to the fifth record of the second table that the first access object indicates.
[0191] For example, by performing operation 1, the user determines that the table to be accessed is the second table, and by performing operation 3, determines that the custom attribute to be accessed is the second custom attribute of the second table. By performing operation 1 and operation 3 in sequence, it can be determined that the first access object indicates the data corresponding to the second custom attribute of all records in the second table.
[0192] For example, by performing operation 1, the user determines that the table to be accessed is the second table; by performing operation 2, the user determines that the record to be accessed is the fifth record of the second table; and by performing operation 3, the user determines that the custom attribute to be accessed is the second custom attribute contained in the seventh record of the second table. By sequentially performing operations 1, 2, and 3, the user can determine the data corresponding to the second custom attribute contained in the fifth record of the second table indicated by the first access object.
[0193] In some embodiments, the access object adding control includes at least one of the following: a first access object adding control, a second access object adding control, and a third access object adding control, wherein the first access object adding control is used to add a table object and / or a record object, the second access object adding control is used to add an attribute object, and the third access object adding control is used to add a parameter object.
[0194] For example, please refer to Figure 9 This diagram illustrates a block panel provided in one embodiment of this application. The block panel 90 displays multiple candidate access objects of variable-type structure types. When the first table selection option 91 is selected, five record objects and one table object 93 corresponding to the first table are displayed. The five record objects are record object 92, record object 93, record object 94, record object 95, and record object 96. Record object 92 indicates the data of the first record in the first table, and the other record objects are similarly represented. Table object 97 indicates the data of the first table.
[0195] By combining the above four operations, users can determine any data in any table that the table access block wants to access, thus improving the flexibility of data acquisition.
[0196] In some embodiments, different types of table access blocks have different functionalities, and the functionalities of table access blocks include at least one of the following:
[0197] Used to read the data indicated by the access object;
[0198] Used to delete the data indicated by the access object;
[0199] Used to modify the data indicated by the access object.
[0200] For example, please refer to Figure 10 It illustrates a schematic diagram of a table access block provided in one embodiment of this application. Figure 10 Sub-figure (a) shows a table access block 1010 used to read data indicated by an access object. It includes two access object adding controls: access object adding control 1011 and access object adding control 1012. Access object adding control 1011, the first access object adding control, is used to add a table object, allowing table access block 1010 to access the table indicated by the added table object. Access object adding control 1012, the second access object adding control, is used to add an attribute object, allowing table access block 1010 to read data of custom attributes indicated by the attribute object added to the table.
[0201] For example, such as Figure 10 As shown, Figure 10 Sub-figure (b) shows a table access block 1020 used to modify the data indicated by the access object. It includes three access object addition controls: access object addition control 1021, access object addition control 1022, and access object addition control 1023. Access object addition control 1021 is the first access object addition control, used to add a table object, allowing table access block 1020 to access the table indicated by the added table object. Access object addition control 1022 is the second access object addition control, used to add an attribute object, allowing table access block 1020 to access the custom attribute indicated by the attribute object added in the table. Access object addition control 1023 is the third access object addition control, used to add attribute parameters, allowing table access block 1020 to access the attribute parameters corresponding to the custom attributes specified in the table, and configuring these attribute parameters as attribute parameters added through access object addition control 1023.
[0202] For example, such as Figure 10 As shown, Figure 10 Sub-figure (c) shows a table access block 1030 used to delete data indicated by an access object. It includes two access object addition controls: access object addition control 1031 and access object addition control 1032. Access object addition control 1031, belonging to the first access object addition control, is used to add a table object, allowing table access block 1030 to access the table indicated by the added table object. Access object addition control 1032, belonging to the second access object addition control, is used to add an attribute object, allowing table access block 1030 to delete the custom attribute indicated by the added attribute object in the table.
[0203] For example, such as Figure 10 As shown, Figure 10 The table access block 1040 shown in sub-diagram (d) is used to clear the data indicated by the access object, including the access object addition control 1041. The access object addition control 1041 belongs to the first access object addition control and is used to add a table object, making the table indicated by the table object accessible to the table access block 1040, and clearing all custom properties in the table.
[0204] Among them, access object adding controls 1011, 1021, 1031, and 1041 belong to the first access object adding controls. Access object adding controls 1012, 1022, and 1032 belong to the second access object adding controls. Access object adding control 1023 belongs to the third access object adding control.
[0205] In some embodiments, the code display area further includes a first assignment block, which is used to set parameters for a first assignment object; in response to the operation of combining the first assignment block and the table access block, the combined first assignment block is displayed, which is used to set the data indicated by the first access object for the first assignment object.
[0206] For example, please refer to Figure 11 This illustration shows a schematic diagram of an embodiment of the updated attributes provided in this application. It assumes that the visual programming project already includes variables such as health, attack power, defense, and whether it can fly. Upon receiving the "initialize attributes" signal, it updates attributes through... Figure 11 The block group 1110 shown in subgraph (a) initializes the health value variable, attack power variable, defense power variable and whether it can fly variable respectively. The health value variable is initialized to 0, the attack power variable is initialized to 0, the defense power variable is initialized to 0, and the whether it can fly variable is initialized to false.
[0207] Based on the previous example, upon receiving the "update property" signal, through... Figure 11 Subgraph (b) reads the attribute parameters corresponding to the four custom attributes in the first record of the first table and assigns values to the health, attack, defense, and flight variables respectively. Specifically, the first assignment block 1121 includes a table access block 1122, which reads the attribute parameter containing health from the first record of the first table. The first assignment block 1121 assigns the data read from the first table by the table access block to the health variable. Similarly, the first assignment blocks 1123, 1124, and 1125 assign values to the attack, defense, and flight variables in the same way.
[0208] In some embodiments, data indicated by a first access object is read from a first table; and the parameters of a first assignment object are set to the data indicated by the first access object.
[0209] In some embodiments, data indicated by a first access object is read from a first table according to a table access block and a first access block of the table access block; and the parameters of a first assignment object are set to the data indicated by the first access object according to a first assignment block.
[0210] For example, please refer to Figure 12 The diagram illustrates an embodiment of this application for obtaining multiple data. At the start of the game, each record in the first table is traversed through the block group 1200. If the attribute parameter corresponding to the life value of the currently traversed record is greater than 300, the attribute parameter corresponding to the life value of that record is added to the life value array variable later.
[0211] The above method provides users with different types of table access blocks, allowing users to choose the appropriate block based on their needs, thus simplifying the data access process.
[0212] Taking a level-based puzzle game application as an example, the UGC editor provided to users includes a table tool and a visual programming tool. When a user designs a complex custom level in the UGC editor, they need to configure various virtual components within the custom level, such as multiple virtual obstacles. The user can first create a table about the virtual obstacles in the table tool, configuring at least one record for a virtual obstacle and its corresponding custom attributes. For example, the table could include custom attributes such as obstacle type, length, height, width, position, and color. Then, when implementing the custom level in the visual programming tool, the user can access the table through the table access block to configure the multiple virtual obstacles in the custom level.
[0213] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0214] Please refer to Figure 13 This diagram illustrates a block diagram of a data configuration apparatus according to an embodiment of this application. The apparatus has the functions described above, which can be implemented in hardware or by hardware executing corresponding software. The apparatus can be the terminal device 10 described above, or it can be disposed within the terminal device 10. Figure 13 As shown, the device 1300 may include: an interface display module 1310, an information display module 1320, an attribute configuration module 1330, and a record display module 1340.
[0215] The interface display module 1310 is used to display the table configuration interface of the table tool. The table configuration interface displays a new table control, which is used to create a new table.
[0216] The information display module 1320 is used to respond to the operation on the newly created table control by displaying the identification information of the newly created first table, the identification information of the first record contained in the first table, and the attribute configuration interface of the first record.
[0217] The attribute configuration module 1330 is configured to respond to an operation on the attribute configuration interface, in which at least one custom attribute included in the first record is configured, and attribute parameters corresponding to the at least one custom attribute are configured respectively.
[0218] The record display module 1340 is configured to, in response to an operation of adding a record to the first table, display at least one other record added to the first table besides the first record in the table configuration interface. The custom attributes contained in the other record are the same as those contained in the first record, and the attribute parameters corresponding to the custom attributes contained in the other record are configurable. The first table contains the first record and the at least one other record, and the data in the first table can be accessed by a visual programming tool.
[0219] In some embodiments, the attribute configuration interface displays an attribute addition control, which is used to add the custom attribute; the attribute configuration module 1330 is configured to, in response to an operation on the attribute addition control, add at least one custom attribute included in the first record to the attribute configuration interface; in response to a configuration operation on the first custom attribute among the at least one custom attribute, display a details configuration interface for the first custom attribute, the details configuration interface displaying configuration items for at least one attribute parameter corresponding to the first custom attribute; and in response to an operation on the configuration item, display at least one attribute parameter corresponding to the first custom attribute.
[0220] In some embodiments, the device 1300 further includes an attribute editing module (in Figure 13 (Not shown in the image) is used to copy at least one attribute parameter corresponding to the first custom attribute to the clipboard in response to a copy operation for the first custom attribute; configure at least one attribute parameter of the second custom attribute saved in the clipboard as at least one attribute parameter corresponding to the first custom attribute in response to a paste operation for the first custom attribute; and delete the first custom attribute in the attribute configuration interface in response to a delete operation for the first custom attribute.
[0221] In some embodiments, the table configuration interface further displays a new record control corresponding to the first record, the new record control being used to create at least one other record that has the same custom attributes as the first record; the record display module 1340 is used to, in response to an operation on the new record control, display at least one other record added to the first table, excluding the first record, in the table configuration interface.
[0222] In some embodiments, the record display module 1340 is further configured to, in response to an operation on the new record control, add another record below the last record already contained in the first table displayed in the table configuration interface.
[0223] In some embodiments, the record display module 1340 is further configured to display the attribute configuration interface of the other records, and in the attribute configuration interface of the other records, display the at least one custom attribute contained in the other records.
[0224] In some embodiments, the device 1300 further includes a table editing module (in Figure 13 (Not shown in the table) is used to, in response to an insert operation on a second record contained in the first table, add another record above the second record displayed in the table configuration interface; in response to a copy operation on a second record contained in the first table, copy at least one custom attribute contained in the second record and the attribute parameter corresponding to the at least one custom attribute to the clipboard; in response to a paste operation on a second record contained in the first table, configure at least one custom attribute contained in a third record saved in the clipboard and the attribute parameter corresponding to the at least one custom attribute as at least one custom attribute and the at least one attribute parameter corresponding to the at least one custom attribute of the second record; in response to a delete operation on a second record contained in the first table, delete the second record in the table configuration interface; in response to a reset operation on a second record contained in the first table, configure at least one custom attribute contained in the first record and the attribute parameter corresponding to the at least one custom attribute as at least one custom attribute and the at least one attribute parameter corresponding to the at least one custom attribute of the second record; wherein the second record is any record contained in the first table.
[0225] In some embodiments, the table editing module is further configured to, in response to an input operation to the search control in the table configuration interface, display identification information corresponding to at least one record related to the information entered through the search control in the table configuration interface; in response to an operation to the undo control in the table configuration interface, undo the last editing operation on the first table; in response to an operation to the restore control in the table configuration interface, undo the undo operation on the first table; and in response to an operation to the exit control in the table configuration interface, exit the table configuration interface and automatically save the first table.
[0226] In summary, the apparatus provided in this application allows users to create tables and configure the data in the tables through the table configuration interface and attribute configuration interface provided by the table tool. This enables users to easily access and apply the data in the table in the visual programming tool, reducing the complexity of data configuration and data acquisition.
[0227] Please refer to Figure 14 This diagram illustrates a block diagram of a data access apparatus according to an embodiment of this application. The apparatus has the functions described above, which can be implemented in hardware or by hardware executing corresponding software. The apparatus can be the terminal device 10 described above, or it can be disposed within the terminal device 10. Figure 14 As shown, the device 1400 may include: a block adding module 1410, an object adding module 1420, and a data access module 1430.
[0228] The block-adding module 1410 is used to add a table access block to the code display area of the visual programming tool. The code display area is used to display at least one block contained in the visual programming project created in the visual programming tool, and the table access block is used to access data in the table.
[0229] The object adding module 1420 is used to add a first access object to the table access block in response to a configuration operation for the table access block. The first access object is used to indicate all or part of the data in the first table, the first table containing at least one record, each record containing at least one custom attribute and attribute parameters corresponding to the at least one custom attribute.
[0230] The data access module 1430 is configured to access the data indicated by the first access object in the first table when the operation of the visual programming project is executed and the table access block is reached.
[0231] In some embodiments, the table access block includes an access object adding control, which is used to add access objects, the access objects being related to at least one of the following: table, record, custom attribute, attribute parameter; the object adding module 1420 includes: an object display submodule and an object adding submodule (in... Figure 14 (Not shown in the image).
[0232] The object display submodule is used to display at least one candidate access object in response to an operation of adding a control to the access object.
[0233] An object-adding submodule is used to add the first access object to the table access block in response to an operation of selecting the first access object from the at least one candidate access objects.
[0234] In some embodiments, the object display submodule is configured to, in response to an operation on adding a control to the access object for adding a table, display at least one candidate table object, each table object indicating a table; in response to an operation on adding a control to the access object for adding a record, display at least one candidate record object, each record object indicating a record; in response to an operation on adding a control to the access object for adding a custom attribute, display at least one candidate attribute object, each attribute object indicating a custom attribute; and in response to an operation on adding an attribute parameter, display at least one candidate parameter object, each parameter object indicating a custom attribute contained in a record.
[0235] In some embodiments, the code display area further includes a first assignment block, which is used to set parameters for a first assignment object; the device 1400 also includes a block display module (in Figure 14 (Not shown in the image) is used to display the combined first assignment block in response to the operation of combining the first assignment block and the table access block. The combined first assignment block is used to set the data indicated by the first access object for the first assignment object.
[0236] In some embodiments, the block display module is configured to read data indicated by the first access object from the first table; and set the parameters of the first assignment object to the data indicated by the first access object.
[0237] In some embodiments, different types of table access blocks have different functions, and the functions of the table access blocks include at least one of the following: reading data indicated by the access object; deleting data indicated by the access object; and modifying data indicated by the access object.
[0238] In summary, the device provided in this application allows users to use table access blocks in a visual programming tool, configure the table access blocks according to their needs, and access the data in the configured table. This enables users to easily access and apply the data in the table in the visual programming tool, reducing the complexity of data configuration and data acquisition.
[0239] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0240] Please refer to Figure 15 This diagram illustrates a structural block diagram of a terminal device 1500 provided in one embodiment of this application. The terminal device 1500 may be... Figure 1 The terminal device 10 in the illustrated implementation environment is used to implement the data configuration method or data access method provided in the above embodiments. Specifically:
[0241] Typically, terminal device 1500 includes a processor 1510 and a memory 1520.
[0242] Processor 1510 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1510 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). Processor 1510 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1510 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1510 may also include an AI processor for handling computational operations related to machine learning.
[0243] The memory 1520 may include one or more computer-readable storage media, which may be non-transitory. The memory 1520 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1520 are used to store a computer program configured to be executed by one or more processors to implement a data configuration method or a data access method.
[0244] In some embodiments, the terminal device 1500 may also optionally include a peripheral device interface 1530 and at least one peripheral device. The processor 1510, memory 1520, and peripheral device interface 1530 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1530 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1540, a display screen 1550, an audio circuit 1560, and a power supply 1570.
[0245] Those skilled in the art will understand that Figure 15 The structure shown does not constitute a limitation on the terminal device 1500, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0246] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein a computer program is stored in the storage medium, and the computer program, when executed by a processor, implements the above-described data configuration method or data access method. Optionally, the computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), solid-state drives (SSDs), or optical discs, etc. The random access memory may include resistive random access memory (ReRAM) and dynamic random access memory (DRAM).
[0247] In an exemplary embodiment, a computer program product is also provided, the computer program product including a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, causing the computer device to perform the data configuration method or data access method described above.
[0248] It should be noted that the data collection and processing in this application should strictly comply with the requirements of relevant national laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.
[0249] It should be understood that "multiple" as used herein refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, the step numbers described herein are merely illustrative of one possible execution order. In some other embodiments, the steps may not be executed in numerical order, such as two steps with different numbers being executed simultaneously, or two steps with different numbers being executed in the reverse order of the illustration. This application does not limit this.
[0250] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A data configuration method, characterized in that, The method includes: The table configuration interface of the table tool is displayed. The table configuration interface displays a new table control, which is used to create a new table. In response to an operation on the newly created table control, the identification information of the newly created first table, the identification information of the first record contained in the first table, and the attribute configuration interface of the first record are displayed. In response to an operation on the attribute configuration interface, at least one custom attribute contained in the first record and attribute parameters corresponding to the at least one custom attribute are configured in the attribute configuration interface. In response to the operation of adding a record to the first table, at least one other record besides the first record is displayed in the table configuration interface. The custom attributes contained in the other record are the same as those contained in the first record, and the attribute parameters corresponding to the custom attributes contained in the other record are configurable. The first table contains the first record and the at least one other record, and the data in the first table can be accessed by visual programming tools.
2. The method according to claim 1, characterized in that, The attribute configuration interface displays an attribute addition control, which is used to add the custom attribute. In response to an operation on the attribute configuration interface, configuring at least one custom attribute included in the first record, and attribute parameters corresponding to each of the at least one custom attribute, includes: In response to the operation of adding a control to the attribute, at least one custom attribute contained in the first record is added to the attribute configuration interface; In response to a configuration operation for a first custom attribute among the at least one custom attributes, a detailed configuration interface for the first custom attribute is displayed, wherein the detailed configuration interface displays configuration items for at least one attribute parameter corresponding to the first custom attribute; In response to an operation on the configuration item, at least one attribute parameter corresponding to the first custom attribute is displayed.
3. The method according to claim 2, characterized in that, The method further includes at least one of the following: In response to the copy operation for the first custom attribute, at least one attribute parameter corresponding to the first custom attribute is copied to the clipboard; In response to a paste operation on the first custom attribute, at least one attribute parameter of the second custom attribute saved in the clipboard is configured as at least one attribute parameter corresponding to the first custom attribute. In response to the deletion operation for the first custom attribute, the first custom attribute is deleted in the attribute configuration interface.
4. The method according to any one of claims 1 to 3, characterized in that, The table configuration interface also displays a new record control corresponding to the first record. The new record control is used to create at least one other record that contains the same custom attributes as the first record. In response to the operation of adding a record to the first table, the table configuration interface displays at least one other record added to the first table besides the first record, including: In response to an operation on the newly created record control, the at least one other record added to the first table, excluding the first record, is displayed in the table configuration interface.
5. The method according to claim 4, characterized in that, In response to an operation on the newly created record control, the at least one other record added to the first table, excluding the first record, is displayed in the table configuration interface, including: In response to the operation on the new record control, another record is added below the last record already contained in the first table displayed in the table configuration interface.
6. The method according to claim 5, characterized in that, The other records added are selected by default, and the method further includes: The attribute configuration interface of the other records is displayed, and the at least one custom attribute contained in the other records is displayed in the attribute configuration interface of the other records.
7. The method according to any one of claims 1 to 6, characterized in that, The method further includes at least one of the following: In response to an insertion operation on a second record contained in the first table, an additional record is added above the second record displayed in the table configuration interface; In response to a copy operation on a second record contained in the first table, at least one custom attribute contained in the second record, and the attribute parameter corresponding to the at least one custom attribute, are copied to the clipboard. In response to a paste operation on a second record contained in the first table, at least one custom attribute contained in a third record saved in the clipboard, and the attribute parameter corresponding to the at least one custom attribute, are configured as at least one custom attribute contained in the second record, and at least one attribute parameter corresponding to the at least one custom attribute. In response to a deletion operation on a second record contained in the first table, the second record is deleted in the table configuration interface; In response to a reset operation on a second record contained in the first table, at least one custom attribute contained in the second record, and the attribute parameter corresponding to the at least one custom attribute, are reset to default configuration parameters. The second record is any record contained in the first table.
8. The method according to any one of claims 1 to 7, characterized in that, The method further includes at least one of the following: In response to an operation on the search control in the form configuration interface, identification information of at least one record related to the information entered through the search control is displayed in the form configuration interface; In response to an operation on the undo control in the table configuration interface, the first table is reverted to the state at the time of the last editing operation. In response to an operation on the restore control in the table configuration interface, the first table is restored to the state it was in when the last undo operation was performed; In response to an operation on the exit control in the table configuration interface, the table configuration interface is exited, and the first table is automatically saved.
9. A data access method, characterized in that, The method includes: In the code display area of the visual programming tool, add a table access block. The code display area is used to display at least one block contained in the visual programming project created in the visual programming tool, and the table access block is used to access the data in the table. In response to a configuration operation for the table access block, a first access object is added to the table access block. The first access object is used to indicate all or part of the data in the first table. The first table contains at least one record, and each record contains at least one custom attribute and attribute parameters corresponding to the at least one custom attribute. In response to the operation of executing the visual programming project, when the table access block is executed, the data indicated by the first access object in the first table is accessed.
10. The method according to claim 9, characterized in that, The table access block includes an access object adding control, which is used to add access objects. The access objects are related to at least one of the following: table, record, custom attribute, attribute parameter; The step of adding a first access object to the table access block in response to a configuration operation for the table access block includes: In response to an operation of adding a control to the access object, at least one candidate access object is displayed; In response to the operation of selecting the first access object from the at least one candidate access objects, the first access object is added to the table access block.
11. The method according to claim 10, characterized in that, In response to an operation of adding a control to the access object, at least one candidate access object is displayed, including at least one of the following: When the access object is used to add a control for adding a table, in response to the operation of adding a control to the access object, at least one candidate table object is displayed, each of the table objects indicating a table; When the access object is used to add a record, in response to the operation of adding the access object to the access object, at least one candidate record object is displayed, each of the record objects indicating a record; When the access object is added to a control for adding a custom attribute, in response to the operation of adding a control to the access object, at least one candidate attribute object is displayed, each attribute object indicating a custom attribute; When the access object is used to add a control for adding attribute parameters, in response to the operation of adding a control to the access object, at least one candidate parameter object is displayed, each parameter object indicating a custom attribute contained in a record.
12. The method according to any one of claims 9 to 11, characterized in that, The code display area also includes a first assignment block, which is used to set parameters for a first assignment object; the method further includes: In response to the operation of combining the first assignment block and the table access block, the combined first assignment block is displayed, which is used to set the data indicated by the first access object for the first assignment object.
13. The method according to claim 12, characterized in that, Accessing the data indicated by the first access object in the first table includes: Read the data indicated by the first access object from the first table; Set the parameters of the first assignment object to the data indicated by the first access object.
14. The method according to any one of claims 9 to 13, characterized in that, Different types of table access blocks have different functionalities, and the functions of the table access blocks include at least one of the following: Used to read the data indicated by the access object; Used to delete the data indicated by the access object; Used to modify the data indicated by the access object.
15. A data configuration device, characterized in that, The device includes: The interface display module is used to display the table configuration interface of the table tool. The table configuration interface displays a new table control, which is used to create a new table. The information display module is used to respond to the operation on the newly created table control by displaying the identification information of the newly created first table, the identification information of the first record contained in the first table, and the attribute configuration interface of the first record. An attribute configuration module is configured to respond to an operation on the attribute configuration interface, wherein at least one custom attribute contained in the first record and attribute parameters corresponding to the at least one custom attribute are configured in the attribute configuration interface. The record display module is used to respond to the operation of adding a record in the first table, and to display at least one other record added to the first table in the table configuration interface, excluding the first record. The custom attributes contained in the other record are the same as the custom attributes contained in the first record, and the attribute parameters corresponding to the custom attributes contained in the other record are configurable. The first table contains the first record and the at least one other record, and the data in the first table can be accessed by a visual programming tool.
16. A data access device, characterized in that, The device includes: A block-adding module is used to add table access blocks to the code display area of a visual programming tool. The code display area is used to display at least one block contained in a visual programming project created in the visual programming tool, and the table access blocks are used to access data in a table. An object adding module is used to add a first access object to the table access block in response to a configuration operation for the table access block. The first access object is used to indicate all or part of the data in the first table. The first table contains at least one record, and each record contains at least one custom attribute and attribute parameters corresponding to the at least one custom attribute. The data access module is used to access the data indicated by the first access object in the first table when the operation of the visual programming project is executed and the table access block is reached.
17. A terminal device, characterized in that, The terminal device includes a processor and a memory, the memory storing a computer program that is loaded and executed by the processor to implement the method as claimed in any one of claims 1 to 8, or to implement the method as claimed in any one of claims 9 to 14.
18. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that is executed by a processor to implement the method as claimed in any one of claims 1 to 8, or to implement the method as claimed in any one of claims 9 to 14.
19. A computer program product, characterized in that, The computer program product includes a computer program that is loaded and executed by a processor to implement the method as claimed in any one of claims 1 to 8, or to implement the method as claimed in any one of claims 9 to 14.