CN114594948A - Method, device, system, equipment and medium for generating dynamic drop-down box control - Google Patents
Method, device, system, equipment and medium for generating dynamic drop-down box control Download PDFInfo
- Publication number
- CN114594948A CN114594948A CN202011418553.0A CN202011418553A CN114594948A CN 114594948 A CN114594948 A CN 114594948A CN 202011418553 A CN202011418553 A CN 202011418553A CN 114594948 A CN114594948 A CN 114594948A
- Authority
- CN
- China
- Prior art keywords
- configuration
- dynamic
- control
- dynamic drop
- drop
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000012163 sequencing technique Methods 0.000 claims abstract description 14
- 238000004590 computer program Methods 0.000 claims description 16
- 230000001960 triggered effect Effects 0.000 claims description 11
- 230000000694 effects Effects 0.000 claims description 7
- 238000013461 design Methods 0.000 abstract description 12
- 238000004519 manufacturing process Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 8
- 238000011161 development Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 235000006719 Cassia obtusifolia Nutrition 0.000 description 1
- 235000014552 Cassia tora Nutrition 0.000 description 1
- 244000201986 Cassia tora Species 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a method, a device, a system, equipment and a medium for generating a dynamic drop-down box control, wherein the method comprises the following steps: receiving a dynamic drop-down frame configuration label; the dynamic drop-down box configuration label comprises a first configuration attribute value, a second configuration attribute value, a plurality of service data reference sources associated with the fixed text part and service sub-items corresponding to the dynamic selection part; displaying a dynamic drop-down box control on the form display; acquiring a service data reference source selected by the fixed text part, a service sub item of the dynamic selection part and the sequencing configuration of the service sub item; and displaying the service data reference source on the fixed text part according to the first configuration attribute value, and displaying the selected service sub-items on the dynamic selection part according to the sequencing configuration of the service sub-items according to the second configuration attribute value. The invention can conveniently design various dynamic drop-down frames, conveniently and quickly expand the reference source of the service data and improve the manufacturing efficiency of the dynamic drop-down frames.
Description
Technical Field
The embodiment of the application relates to a form generation method, in particular to a method, a device, a system, equipment and a medium for generating a dynamic drop-down box control.
Background
With the development of information technology, government offices also gradually realize electronization, however, forms related to government offices are diversified, so that when the government offices are electronized, forms required to be made by a government electronic office system are more and more, a dynamic drop-down box is a common component in the forms, at present, a developer can only design and develop the dynamic drop-down box of the forms one by one, with the method, along with the more and more forms, the time required for the developer to make the forms is longer and longer, the development efficiency is low, and the selectable service data reference source of the dynamic drop-down box is limited, so that a user cannot conveniently expand the method according to actual requirements.
Disclosure of Invention
In order to overcome the problems in the related art, the present application provides a method, an apparatus, a system, a device, and a medium for generating a dynamic drop-down box control, which have the advantages of facilitating design and development, improving the manufacturing efficiency of the dynamic drop-down box, and facilitating extension of a service data reference source.
According to a first aspect of the embodiments of the present application, a method for generating a dynamic drop-down box control is provided, which is applied to a service system, where the service system is configured with a form designer, and the method includes the following steps:
receiving a dynamic drop-down frame configuration tag; wherein the dynamic drop-down frame comprises a fixed text part and a dynamic selection part; the dynamic drop-down box configuration tag comprises a first configuration attribute value of the fixed text part, a second configuration attribute value of the dynamic selection part, a plurality of service data reference sources associated with the fixed text part and service sub-items correspondingly associated with the dynamic selection part;
configuring a control and the dynamic drop-down frame configuration label in a correlation mode to form a dynamic drop-down frame control, and displaying the dynamic drop-down frame control on the form display when the operation of the dynamic drop-down frame control is triggered on the form designer;
selecting a corresponding service data reference source from a plurality of service data reference sources associated with the fixed text part, and selecting a service sub item corresponding to the service data reference source and the sequencing configuration of the service sub item from the dynamic selection part;
and displaying the service data reference source on the fixed text part according to the first configuration attribute value, and displaying the selected service sub-items on the dynamic selection part according to the sequencing configuration of the service sub-items according to the second configuration attribute value.
According to a second aspect of the embodiments of the present application, there is provided a device for generating a dynamic drop-down box control, which is applied to a business system, where the business system is configured with a form designer, and the device includes:
the tag configuration module is used for receiving a dynamic drop-down frame configuration tag; wherein the dynamic drop-down box comprises a fixed text portion and a dynamic selection portion, and the dynamic drop-down box configuration tag comprises a first configuration attribute for configuring the fixed text portion and a configured first configuration attribute value, and is configured to configure the dynamic drop-down box, the apparatus comprising: the second configuration attribute and the configured second configuration attribute value of the dynamic selection part, a plurality of service data reference sources associated with the fixed text part and service sub-items correspondingly associated with the dynamic selection part;
the association module is used for associating and configuring a control and the dynamic drop-down box configuration label to form a dynamic drop-down box control, and displaying the dynamic drop-down box control on the form display when the operation of the dynamic drop-down box control is triggered on the form designer;
a data configuration module, configured to select a corresponding service data reference source from a plurality of service data reference sources associated with the fixed text portion, and select a service sub-item corresponding to the service data reference source and a ranking configuration of the service sub-item from the dynamic selection portion;
and the display module is used for displaying the service data reference source on the fixed text part according to the first configuration attribute value and displaying the selected service sub-items on the dynamic selection part according to the second configuration attribute value and the sequence configuration of the service sub-items.
According to a third aspect of embodiments of the present application, there is provided a business system configured with a form designer, including: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to execute the method for generating a dynamic drop-down box control as described in any of the above.
According to a fourth aspect of embodiments of the present application, there is provided an electronic apparatus, including: a business system; the business system is provided with a form designer, a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to execute a method for generating a dynamic drop-down box control according to any one of the above.
According to a fifth aspect of embodiments of the present application, there is provided a computer-readable storage medium, on which a computer program is stored, wherein the computer program is executed by a processor to implement the method for generating a dynamic drop-down box control according to any one of the above items.
According to the embodiment of the application, through setting the dynamic drop-down frame label, the first configuration attribute of the fixed text part, the first configuration attribute value of the configuration and the configuration are configured on the label, the second configuration attribute of the dynamic selection part, the second configuration attribute value of the configuration and the second configuration attribute value of the configuration are configured, the multiple service data reference sources associated with the fixed text part and the service sub-items associated with the dynamic selection part are correspondingly configured, the control and the dynamic drop-down frame configuration label are configured to form the dynamic drop-down frame control, so that the dynamic drop-down frames with various requirements can be conveniently designed, the service data reference sources can be conveniently and quickly expanded, the design and development of users are facilitated, and the manufacturing efficiency of the dynamic drop-down frame is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
For a better understanding and practice, the invention is described in detail below with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for generating a dynamic drop-down box control according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for obtaining a selected service data reference source and service sub-item according to an embodiment of the present application;
fig. 3 is a display effect diagram of a dynamic drop-down box control according to an embodiment of the present application;
fig. 4 is a schematic block diagram of a structure of a device for generating a dynamic drop-down box control according to an embodiment of the present application;
FIG. 5 is a block diagram illustrating a schematic structure of a data configuration module according to an embodiment of the present disclosure;
fig. 6 is a block diagram schematically illustrating a structure of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not necessarily used to describe a particular order or sequence, nor are they to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The word "if/if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination". In addition, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The application environment of the method for generating the dynamic drop-down box control disclosed by the embodiment of the application comprises electronic equipment; the electronic device may be a terminal of an IOS, android, windows, or other system, and the terminal may specifically include: the device comprises a processor, a memory, a communication module and a display screen, wherein the components can be connected through a bus or in other ways, and the application is not limited to the specific way of the connection. The electronic equipment is internally operated with a business system, the business system is internally provided with a form designer, and a dynamic drop-down frame can be conveniently designed and displayed through the form designer
The embodiment of the application discloses a method for generating a dynamic drop-down box control, which is applied to electronic equipment. A method for generating a dynamic drop-down box control according to an embodiment of the present application will be described in detail below with reference to fig. 1 to 3.
Please refer to fig. 1, which is a flowchart illustrating a method for generating a dynamic drop-down box control according to an embodiment of the present application. The method for generating the dynamic drop-down box control in the embodiment of the application is applied to a business system, the business system is provided with a form designer, in the embodiment of the application, the business system is an e-government system, and the method comprises the following steps:
step S110: receiving a dynamic drop-down frame configuration label; the dynamic drop-down box comprises a fixed text part and a dynamic selection part, and the dynamic drop-down box configuration label comprises a first configuration attribute value of the fixed text part, a second configuration attribute value of the dynamic selection part, a plurality of service data reference sources associated with the fixed text part and service sub-items correspondingly associated with the dynamic selection part.
The tag of the exemplary embodiment of the application is an XML element, and by the tag, a dynamic web page development technology (JSP) web page can be simplified and easily maintained, and it can be conveniently realized that the same JSP file supports multiple language versions. The dynamic drop-down box tag of the embodiment of the application is an element used for e-government affairs, mainly refers to a JSP tag, is similar to a javaBean in functional logic, encapsulates Java code and is reusable control code, and allows a developer to provide a logic name for complex operation.
Referring to fig. 3, the fixed text portion is a data state, such as a security level, in the dynamic drop-down box for prompting a user to determine, and the dynamic selection portion is a portion, such as an absolute security, a secret, etc., in the dynamic drop-down box for providing selected data, such as a black box in fig. 3. The first configuration attribute comprises the style of the fixed text part, whether to display or not, whether to read only or not, the color and size of the text and the like; the second configuration attribute includes a style of the dynamic selection section, whether to display, whether to read only, a color and size of the text selected by the pull-down, a color and size of the text after selection, and the like. In step S110, the first configuration attribute and the second configuration attribute default to null values, and specific values are filled in subsequent steps, or specific values may be set in this step.
The service data reference source may be a service data total name divided according to a service requirement or a service type, or may be a name of another flow table, or may be a name customized by a user. The reference source of the service data may also be referred to as a base reference. The service sub-item is an item into which the reference source of the service data can be specifically divided. For example, the service data reference source is a secret level, and service sub-items such as secrets, and secret are set in the service data reference source; for another example, if the reference source of the service data is a kind of a document, service sub-items such as notification, report, and request are set in the reference source of the service data. The plurality of service data reference sources associated with the fixed text part can be associated by directly inputting characters on the label, or can be associated from the service data reference sources stored in the database by inputting the location address of the service data reference source, such as the database address, on the note. Correspondingly, the service sub-item of the service data reference source of the dynamic selection part may be associated by directly inputting characters on the label, or may be associated from the service sub-item of the service data reference source stored in the database by inputting an address where the service sub-item of the service data reference source is located, such as a database address, on the note.
Step S120: and associating and configuring a control and the dynamic drop-down frame configuration label to form a dynamic drop-down frame control, and displaying the dynamic drop-down frame control on the form display when the operation of the dynamic drop-down frame control is triggered on the form designer.
Step S130: and selecting a corresponding service data reference source from a plurality of service data reference sources associated with the fixed text part, and selecting a service sub item corresponding to the service data reference source and a sequencing configuration of the service sub item from the dynamic selection part.
Step S140: and displaying the service data reference source on the fixed text part according to the first configuration attribute value, and displaying the selected service sub-items on the dynamic selection part according to the sequencing configuration of the service sub-items according to the second configuration attribute value.
According to the embodiment of the application, through setting the dynamic drop-down frame label, the first configuration attribute of the fixed text part, the first configuration attribute value of the configuration and the configuration are configured on the label, the second configuration attribute of the dynamic selection part, the second configuration attribute value of the configuration and the second configuration attribute value of the configuration are configured, the multiple service data reference sources associated with the fixed text part and the service sub-items associated with the dynamic selection part are correspondingly configured, the control and the dynamic drop-down frame configuration label are configured to form the dynamic drop-down frame control, so that the dynamic drop-down frames with various requirements can be conveniently designed, the service data reference sources can be conveniently and quickly expanded, the design and development of users are facilitated, and the manufacturing efficiency of the dynamic drop-down frame is improved.
In an optional embodiment, the triggering the operation of the dynamic drop-down box control on the form designer further comprises, after displaying the dynamic drop-down box control on the form display:
step S111: displaying the attribute configuration box of the dynamic drop-down box control; the attribute configuration boxes comprise a first attribute configuration box, a second attribute configuration box, a third attribute configuration box for adding or deleting a service data reference source and a fourth attribute configuration box for adding or deleting a service sub item; the third attribute configuration frame displays a plurality of associated service data reference sources, and the fourth attribute configuration frame displays a plurality of service sub-items corresponding to the service data reference sources;
step S112: and updating and displaying the dynamic drop-down box control according to the first configuration attribute value and the second configuration attribute value which are correspondingly set in the first attribute configuration box and the second attribute configuration box, and the service data reference source and the service sub-item which are correspondingly configured in the third attribute configuration box and the fourth attribute configuration box.
By displaying the attribute configuration frame of the dynamic drop-down frame control, a user can configure the dynamic drop-down frame with requirements according to needs so as to conveniently beautify and design the dynamic drop-down frame, and meanwhile, service sources can be added or deleted according to needs, and service sub-items can be added or deleted, so that the designed dynamic drop-down frame can rapidly change the design according to actual needs.
In an optional embodiment, the dynamic drop-down box tag further comprises a dynamic drop-down box tag name; the associating and configuring the control and the dynamic drop-down box configuration label to form a dynamic drop-down box control comprises: detecting a control with the same name as the label of the dynamic drop-down frame, and configuring the control with the same name and the configuration label of the dynamic drop-down frame in an associated manner to form the control of the dynamic drop-down frame. The dynamic drop-down box tag name can be any characters capable of being recognized by a machine, such as numbers, letters, symbols and the like, and the tag is an XML element, so that the dynamic drop-down box tag name in the embodiment of the application is case-sensitive. And configuring the control name into a name which is the same as the label name of the dynamic drop-down box, so as to quickly establish the association mapping relation between the dynamic drop-down box configuration label and the control.
In an alternative embodiment, the dynamic drop-down box tab further includes a control property; the detecting the control with the same name as the dynamic drop-down box label, and performing associated configuration on the control with the same name and the dynamic drop-down box configuration label to form the dynamic drop-down box control comprises: receiving control attribute values of the controls with the same name, and if the control attribute corresponding to the control attribute values exists in the control attribute of the label, displaying a display effect corresponding to the control attribute values when the dynamic drop-down box is displayed; and if the control attribute corresponding to the control attribute value does not exist in the control attribute of the label, not displaying the display effect corresponding to the control attribute value when the dynamic drop-down box is displayed. The control of the business system in the embodiment of the application also has control attributes, and the control attributes at this time need to be configured with the control attributes in the dynamic drop-down box label, that is, whether the label attributes of the custom label have configuration or not needs to be configured, and if the label attributes are not configured, the correspondingly configured control attributes cannot be effective.
In an exemplary embodiment of the present application, the operation of triggering the dynamic drop-down box control on the form designer includes: and dragging the dynamic drop-down box control to a display page of the form designer. By dragging the check box control, a user can design a dynamic drop-down box on a display page of the form designer conveniently.
Referring to fig. 2, in an alternative embodiment, the displaying the dynamic drop-down box control on the form display includes: and displaying a plurality of related business data reference source lists in a fixed text part of the dynamic drop-down box control. The selecting a corresponding service data reference source from a plurality of service data reference sources associated with the fixed text part, and selecting a service sub-item corresponding to the service data reference source and a service sub-item ordering configuration device from the dynamic selection part, includes:
step S131: displaying a service sub item list of the service data reference source and the sequencing configuration of the service sub items on the dynamic selection part according to the triggered operation on the service data reference source selected by the fixed text part;
step S132: at least two service sub-items configured in the dynamic selection part and the sequencing configuration of the service sub-items are obtained.
The ordering sequence numbers such as 1,2 and 3 can be directly set for the service sub-items to order the service sub-items, and the ordering of the service sub-items can also be automatically determined according to the sequence of the selected service sub-items.
According to the embodiment of the application, a plurality of service data reference sources and a plurality of corresponding service sub-items are provided on the displayed dynamic pull-down control, so that a user can conveniently select the required service data reference sources and the corresponding service sub-items.
Please refer to fig. 4, which illustrates a schematic structural diagram of a device for generating a dynamic drop-down box control according to an embodiment of the present application. The apparatus 200 for generating a dynamic drop-down box control is applied to a service system, the service system is configured with a form designer, and the apparatus includes:
a tag configuration module 210, configured to receive a dynamic drop-down frame configuration tag; wherein the dynamic drop-down box comprises a fixed text portion and a dynamic selection portion, and the dynamic drop-down box configuration tag comprises a first configuration attribute for configuring the fixed text portion and a configured first configuration attribute value, and is configured to configure the dynamic drop-down box, the apparatus comprising: a second configuration attribute and a configured second configuration attribute value of the dynamic selection part, a plurality of service data reference sources related to the fixed text part and service sub items correspondingly related to the dynamic selection part;
an association module 220, configured to associate and configure a control with the dynamic drop-down box configuration tag to form a dynamic drop-down box control, and when an operation of the dynamic drop-down box control is triggered on the form designer, display the dynamic drop-down box control on the form display;
a data configuration module 230, configured to select a corresponding service data reference source from a plurality of service data reference sources associated with the fixed text portion, and select a service sub-item corresponding to the service data reference source and a ranking configuration of the service sub-item from the dynamic selection portion;
a display module 240, configured to display the service data reference source on the fixed text portion according to the first configuration attribute value, and configure and display the selected service sub-items on the dynamic selection portion according to the ordering of the service sub-items according to the second configuration attribute value.
According to the embodiment of the application, through setting a dynamic drop-down frame label, configuring a first configuration attribute of a fixed text part, a first configuration attribute value of configuration and configuration on the label, configuring a second configuration attribute of a dynamic selection part, a second configuration attribute value of configuration, a plurality of service data reference sources associated with the fixed text part and a service sub item corresponding to the dynamic selection part, and configuring a control and the dynamic drop-down frame configuration label in association to form a dynamic drop-down frame control, so that dynamic drop-down frames with various requirements can be designed conveniently and rapidly, service data reference sources can be expanded conveniently and rapidly, design and development of users are facilitated, and manufacturing efficiency of the dynamic drop-down frame is improved.
In an optional embodiment, the method for generating a dynamic drop-down box control further includes:
a property value configuration module (not shown) for displaying a property configuration box of the dynamic drop-down box control; the attribute configuration boxes comprise a first attribute configuration box, a second attribute configuration box, a third attribute configuration box for adding or deleting a service data reference source and a fourth attribute configuration box for adding or deleting a service sub item; the third attribute configuration frame displays a plurality of associated service data reference sources, and the fourth attribute configuration frame displays a plurality of service sub-items corresponding to the service data reference sources;
an attribute value updating module (not shown) is configured to update and display the dynamic drop-down box control according to the first configuration attribute value and the second configuration attribute value that are set in the first attribute configuration box and the second attribute configuration box correspondingly, and the service data reference source and the service sub-item that are configured in the third attribute configuration box and the fourth attribute configuration box correspondingly.
By displaying the attribute configuration frame of the dynamic drop-down frame control, a user can configure the required dynamic drop-down frame according to needs so as to conveniently beautify and design the dynamic drop-down frame, and meanwhile, a service data reference source and a service sub item can be directly added or deleted on the dynamic drop-down frame control according to the actual service condition, so that the design of the dynamic drop-down frame is facilitated, and the dynamic drop-down frame can be conveniently and quickly designed.
In an optional embodiment, the dynamic drop-down box tag further comprises a dynamic drop-down box tag name; an association module 220, comprising: and a detection module (not shown) for detecting the control with the same name as the label of the dynamic drop-down frame, and configuring the control with the same name in association with the configuration label of the dynamic drop-down frame to form the control of the dynamic drop-down frame. The dynamic drop-down box label name can be any character capable of being recognized by a machine, such as numbers, letters, symbols and the like, and the label is an XML element, so that the dynamic drop-down box label name in the embodiment of the application is case-sensitive. And configuring the control name into a name which is the same as the label name of the dynamic drop-down box, so as to quickly establish the association mapping relation between the dynamic drop-down box configuration label and the control.
In an alternative embodiment, the dynamic drop-down box tab further includes a control property; the detection module is further configured to receive control attribute values of the controls with the same name, and if the control attribute corresponding to the control attribute value exists in the control attribute of the label, display a display effect corresponding to the control attribute value when the dynamic drop-down box is displayed; and if the control attribute corresponding to the control attribute value does not exist in the control attribute of the label, not displaying the display effect corresponding to the control attribute value when the dynamic drop-down box is displayed. The control of the business system in the embodiment of the application also has control attributes, and the control attributes at this time need to be configured with the control attributes in the dynamic drop-down box label, that is, whether the label attributes of the custom label have configuration or not needs to be configured, and if the label attributes are not configured, the correspondingly configured control attributes cannot be effective.
In an exemplary embodiment of the present application, the operation of triggering the dynamic drop-down box control on the form designer includes: and dragging the dynamic drop-down box control to a display page of the form designer. By dragging the check box control, a user can design a dynamic drop-down box on a display page of the form designer conveniently.
Referring to fig. 5, in an alternative embodiment, the association module includes a module for displaying a plurality of associated reference source lists of business data in a fixed text portion of the dynamic drop-down box control;
the data configuration module 230 includes:
a trigger display module 231, configured to display, in the dynamic selection portion, a service sub-item list of a service data reference source and a service sub-item ordering configuration according to a triggered operation on the service data reference source selected by the fixed text portion;
a service sub-item configuration module 232, configured to obtain at least two service sub-items configured in the dynamic selection portion and the ordering configuration of the service sub-items.
By directly selecting the corresponding service data reference source and the service sub item on the dynamic drop-down frame control, the corresponding dynamic drop-down frame can be quickly obtained.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the methods of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 6, the present application further provides an electronic device 300, where the electronic device 300 may be a computer, a mobile phone, a tablet computer, an interactive smart tablet, and the like. The electronic device 300 may include: at least one processor 301, at least one memory 302, at least one network interface 303, a user interface 304, and at least one communication bus 305.
The user interface 304 is mainly used for providing an input interface for a user, and acquiring data input by the user, and may include a display terminal and a camera terminal. Optionally, the user interface 304 may also include a standard wired interface, a wireless interface.
The network interface 303 may optionally include a standard wired interface or a wireless interface (e.g., WI-FI interface).
Wherein the communication bus 305 is used for realizing connection communication between the controls.
The processor 301 may include one or more processing cores. The processor 301, using various interfaces and lines to connect various parts throughout the electronic device 300, performs various functions of the electronic device 300 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 302, and calling data stored in the memory 302. Optionally, the processor 301 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 301 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display layer; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 301, but may be implemented by a single chip.
The Memory 302 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 302 includes a non-transitory computer-readable medium. The memory 302 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described method embodiments, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 302 may alternatively be at least one storage device located remotely from the processor 301. As shown in fig. 6, the memory 302, which is a kind of computer storage medium, may include an operating system, a network communication module, and a user therein.
The processor 301 of the present application may be configured to execute any one of the above-described methods for generating a dynamic drop-down box control by an application program calling the method for generating a dynamic drop-down box control stored in the memory 302.
The present application further provides a computer-readable storage medium, on which a computer program is stored, where the instructions are suitable for being loaded by a processor and executing the method steps of the dynamic drop-down box control in the above-mentioned embodiments, and are not described herein again. The device where the storage medium is located can be an electronic device such as a personal computer, a notebook computer, a smart phone and a tablet computer.
For the apparatus embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment for relevant points. The above-described device embodiments are merely illustrative, wherein the controls illustrated as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart block or blocks and/or flowchart block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium, such as a modulated data signal and a carrier wave
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A generation method of dynamic drop-down box control is applied to a business system, the business system is provided with a form designer, and the method is characterized by comprising the following steps:
receiving a dynamic drop-down frame configuration tag; wherein the dynamic drop-down frame comprises a fixed text part and a dynamic selection part; the dynamic drop-down box configuration tag comprises a first configuration attribute value of the fixed text part, a second configuration attribute value of the dynamic selection part, a plurality of service data reference sources associated with the fixed text part and service sub-items correspondingly associated with the dynamic selection part;
configuring a control and the dynamic drop-down frame configuration label in a correlation mode to form a dynamic drop-down frame control, and displaying the dynamic drop-down frame control on the form display when the operation of the dynamic drop-down frame control is triggered on the form designer;
selecting a corresponding service data reference source from a plurality of service data reference sources associated with the fixed text part, and selecting a service sub item corresponding to the service data reference source and the sequencing configuration of the service sub item from the dynamic selection part;
and displaying the service data reference source on the fixed text part according to the first configuration attribute value, and displaying the selected service sub-items on the dynamic selection part according to the sequencing configuration of the service sub-items according to the second configuration attribute value.
2. The method of generating a dynamic drop-down box control of claim 1,
the displaying the dynamic drop-down box control on the form display, comprising:
displaying a plurality of related business data reference source lists in a fixed text part of the dynamic drop-down box control;
the selecting a corresponding service data reference source from a plurality of service data reference sources associated with the fixed text part, and selecting a service sub-item corresponding to the service data reference source and a service sub-item ordering configuration from the dynamic selection part, includes:
displaying a service sub item list of the service data reference source and the sequencing configuration of the service sub items on the dynamic selection part according to the triggered operation on the service data reference source selected by the fixed text part;
at least two service sub-items configured in the dynamic selection part and the sequencing configuration of the service sub-items are obtained.
3. The method of generating a dynamic drop-down box control of claim 2,
when the operation of the dynamic drop-down box control is triggered on the form designer, after the dynamic drop-down box control is displayed on the form display, the method further includes:
displaying the attribute configuration box of the dynamic drop-down box control; the attribute configuration boxes comprise a first attribute configuration box, a second attribute configuration box, a third attribute configuration box for adding or deleting a service data reference source and a fourth attribute configuration box for adding or deleting a service sub item; the third attribute configuration frame displays a plurality of associated service data reference sources, and the fourth attribute configuration frame displays a plurality of service sub-items corresponding to the service data reference sources;
and updating and displaying the dynamic drop-down box control according to the first configuration attribute value and the second configuration attribute value which are correspondingly set in the first attribute configuration box and the second attribute configuration box, and the service data reference source and the service sub-item which are correspondingly configured in the third attribute configuration box and the fourth attribute configuration box.
4. The method of generating a dynamic drop-down box control of claim 3,
the dynamic drop-down box label also comprises a dynamic drop-down box label name;
the associating and configuring the control and the dynamic drop-down box configuration label to form a dynamic drop-down box control comprises:
detecting a control with the same name as the label of the dynamic drop-down frame, and configuring the control with the same name and the configuration label of the dynamic drop-down frame in an associated manner to form the control of the dynamic drop-down frame.
5. The method of generating a dynamic drop-down box control of claim 4,
the dynamic drop-down box label also comprises a control attribute;
the detecting the control with the same name as the dynamic drop-down box label, and performing associated configuration on the control with the same name and the dynamic drop-down box configuration label to form the dynamic drop-down box control comprises:
receiving control attribute values of the controls with the same name, and if the control attribute corresponding to the control attribute values exists in the control attribute of the label, displaying a display effect corresponding to the control attribute values when the dynamic drop-down box is displayed; and if the control attribute corresponding to the control attribute value does not exist in the control attribute of the label, not displaying the display effect corresponding to the control attribute value when the dynamic drop-down box is displayed.
6. A generation device of dynamic drop-down box control is applied to a business system, the business system is provided with a form designer,
the tag configuration module is used for receiving a dynamic drop-down frame configuration tag; wherein the dynamic drop-down box comprises a fixed text portion and a dynamic selection portion, and the dynamic drop-down box configuration tag comprises a first configuration attribute value for configuring a first configuration attribute and a configuration of the fixed text portion, and is configured to configure the dynamic drop-down box, the apparatus comprising: the second configuration attribute and the configured second configuration attribute value of the dynamic selection part, a plurality of service data reference sources associated with the fixed text part and service sub-items correspondingly associated with the dynamic selection part;
the association module is used for associating and configuring a control and the dynamic drop-down box configuration label to form a dynamic drop-down box control, and displaying the dynamic drop-down box control on the form display when the operation of the dynamic drop-down box control is triggered on the form designer;
a data configuration module, configured to select a corresponding service data reference source from a plurality of service data reference sources associated with the fixed text portion, and select a service sub-item corresponding to the service data reference source and a ranking configuration of the service sub-item from the dynamic selection portion;
and the display module is used for displaying the service data reference source on the fixed text part according to the first configuration attribute value and displaying the selected service sub-items on the dynamic selection part according to the second configuration attribute value and the sequence configuration of the service sub-items.
7. The apparatus of claim 6, wherein the association module comprises a means for displaying a list of associated multiple reference sources of business data in a fixed text portion of the dynamic drop-down box control;
the data configuration module comprises:
the trigger display module is used for displaying a service sub item list of the service data reference source and the sequencing configuration of the service sub items on the dynamic selection part according to the triggered operation on the service data reference source selected by the fixed text part;
and the service sub-item configuration module is used for acquiring at least two service sub-items configured in the dynamic selection part and the sequencing configuration of the service sub-items.
8. A business system configured with a form designer, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method of generating a dynamic drop-down box control as claimed in any one of claims 1 to 5.
9. An electronic device, comprising: a business system; the business system is provided with a form designer, a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method of generating a dynamic drop-down box control according to any of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing a method for generating a dynamic drop-down box control according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011418553.0A CN114594948A (en) | 2020-12-07 | 2020-12-07 | Method, device, system, equipment and medium for generating dynamic drop-down box control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011418553.0A CN114594948A (en) | 2020-12-07 | 2020-12-07 | Method, device, system, equipment and medium for generating dynamic drop-down box control |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114594948A true CN114594948A (en) | 2022-06-07 |
Family
ID=81802839
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011418553.0A Pending CN114594948A (en) | 2020-12-07 | 2020-12-07 | Method, device, system, equipment and medium for generating dynamic drop-down box control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114594948A (en) |
-
2020
- 2020-12-07 CN CN202011418553.0A patent/CN114594948A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10908928B2 (en) | Rules-based workflow messaging | |
CN109725901A (en) | Development approach, device, equipment and the computer storage medium of front-end code | |
CN112068911B (en) | Electronic form generation method, device, system, equipment and medium | |
CN111104123B (en) | Automatic deployment of applications | |
US10951486B2 (en) | Terminal device, UI expansion method, and UI expansion program | |
CN113535165A (en) | Interface generation method and device, electronic equipment and computer readable storage medium | |
CN113918194B (en) | A method, device, electronic device and storage medium for displaying page components | |
CN114296833A (en) | Business interface component configuration method and device, equipment and medium thereof | |
CN111736825A (en) | Information display method, device, equipment and storage medium | |
CN115309470A (en) | Method, device and equipment for loading widgets and storage medium | |
CN112068828A (en) | Method, apparatus, system, device and medium for generating title control | |
US11231939B2 (en) | Task template changing device and non-transitory computer readable medium storing program | |
CN110968311A (en) | Front-end page construction method, device and electronic device | |
CN105915615A (en) | Method for displaying application information in mobile equipment and device thereof | |
CN111435313A (en) | Method and device for changing skin of software | |
CN115438113A (en) | Parameter management method and device, electronic equipment and storage medium | |
CN112748917B (en) | Graph display method and device | |
CN111857715B (en) | H5-based linked pull-down component selection method, device, equipment and storage medium | |
CN110333859B (en) | Page creation method, page creation device, electronic device and computer readable storage medium | |
CN114594945A (en) | Method, device, system, equipment and medium for generating advanced popup selection frame | |
CN114594948A (en) | Method, device, system, equipment and medium for generating dynamic drop-down box control | |
CN117149153A (en) | Method, device, computer equipment and medium for generating business data model | |
CN116301453A (en) | Component generation method and device, electronic equipment and storage medium | |
CN114594926A (en) | Radio box control generating method, device, system, equipment and medium | |
CN114594946A (en) | Method, device, system, equipment and medium for generating check box control |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |