CN106354483B - Data processing method and device and electronic equipment - Google Patents

Data processing method and device and electronic equipment Download PDF

Info

Publication number
CN106354483B
CN106354483B CN201510419227.4A CN201510419227A CN106354483B CN 106354483 B CN106354483 B CN 106354483B CN 201510419227 A CN201510419227 A CN 201510419227A CN 106354483 B CN106354483 B CN 106354483B
Authority
CN
China
Prior art keywords
control
editing
editing control
parent
preset
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.)
Active
Application number
CN201510419227.4A
Other languages
Chinese (zh)
Other versions
CN106354483A (en
Inventor
刘威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510419227.4A priority Critical patent/CN106354483B/en
Publication of CN106354483A publication Critical patent/CN106354483A/en
Application granted granted Critical
Publication of CN106354483B publication Critical patent/CN106354483B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data processing method, a data processing device and electronic equipment, which are used for an auxiliary pull-down list associated with an editing control. The data processing method comprises the following steps: acquiring control names and control values of a parent editing control and ancestor editing controls of the current editing control according to a preset editing control cascade constraint relation; forming retrieval conditions by using the acquired control names and control value pairs of the parent editing controls and the ancestor editing controls at each level, and retrieving in a prestored option data set to acquire selectable option data of the current editing controls which accord with the retrieval conditions; and filling selectable item data meeting the retrieval condition into an auxiliary drop-down list associated with the current editing control. By adopting the method provided by the application, the selectable data of the editing controls can be obtained through one unified query program, the query program is prevented from being written for each editing control, the program codes for realizing linkage display of the editing controls are reduced, and the effect of reducing the manual workload is achieved.

Description

Data processing method and device and electronic equipment
Technical Field
The present application relates to the field of data processing, and in particular, to a data processing method and apparatus, and an electronic device.
Background
In a graphical user interface, an editing control is a very common control in which a user can enter and edit text. Common editing controls include an input box control or a combo box control, for example, in a web page file, an input box control is represented by an < input > tag or a < textarea > tag, and a combo box control is represented by a < select > tag; in the Visual Basic programming language, the input box control is a TextBox component and the comboBox control is a ComboBox component.
The editing control has a secondary drop-down list associated therewith in which selectable data for the editing control is listed for selection by the user. The selectable data of the edit control can be either deterministic or variable. The main reasons for the change in the selectable data of the edit control are: and a cascade constraint relation exists between the editing controls. For example, the selectable item data of one input box needs to be filtered according to the input content of another input box. When the cascade constraint relationship between the editing controls is complex, the cascade constraint relationship forms a tree structure, and the selectable item data of any editing control needs to be screened according to the input contents in the parent editing control and all ancestor editing controls having the cascade constraint relationship with the selectable item data so as to obtain the selectable item data meeting the conditions.
For editing controls with cascading constraint relationships, a common method for acquiring selectable item data includes: 1) when a window where an editing control is located is loaded, acquiring all selectable data of all editing controls in the window, and when a user clicks the editing control, listing all the selectable data acquired in advance for the user to select; 2) and writing an independent query program for acquiring the selectable item data for each editing control in the window respectively so as to acquire the selectable item data of different editing controls.
The first method has the advantage of simple procedure, and has the disadvantage that the window loading time is longer in the case of a larger amount of selectable item data of the edit control. The second method has the advantage that the time for loading the window is not influenced by the data quantity of the selectable items of the editing control, so that the loading speed is higher. However, this second approach would result in higher development costs because it would require the query program to be customized individually for each edit control. Particularly, the second method cannot solve the problem of acquiring selectable data of the editing controls when the cascade constraint relationship among the editing controls forms a tree structure.
In summary, when a cascade constraint relationship exists between editing controls, the prior art needs to customize an inquiry program for each editing control individually to realize dynamic display of selectable data of the editing controls.
Disclosure of Invention
The application provides a data processing method, a data processing device and electronic equipment, and aims to solve the problem that when a cascade constraint relation exists among editing controls, the prior art needs to customize an inquiry program for each editing control independently, and then selectable data of the editing controls can be displayed dynamically.
The application provides a data processing method for an auxiliary drop-down list associated with an editing control, comprising:
when an event listener preset for the editing control monitors a preset display drop-down list event, acquiring the control names and control values of a parent editing control and ancestor editing controls of the current editing control according to a preset editing control cascade constraint relation;
forming retrieval conditions by using the acquired control names and control value pairs of the parent editing controls and the ancestor editing controls at all levels, and retrieving in a prestored option data set to acquire selectable option data of the current editing control which meets the retrieval conditions;
and filling selectable item data meeting the retrieval condition into an auxiliary drop-down list associated with the current editing control.
Optionally, the obtaining, according to the preset editing control cascade constraint relationship, the control names and control values of the parent editing control and ancestor editing controls of the current editing control includes:
judging whether a parent editing control with a cascade constraint relation with the current editing control exists or not according to a preset editing control cascade constraint relation;
and if so, acquiring the control name and the control value of the parent editing control, taking the parent editing control as a new current editing control, and returning to execute the step of judging whether the parent editing control having the cascade constraint relation with the new current editing control exists according to the preset cascade constraint relation of the editing controls.
Optionally, the editing control has a parent editing control attribute; and the preset editing control cascade constraint relation is set in the parent editing control attribute of each editing control.
Optionally, the determining whether there is a parent editing control having a cascade constraint relationship with the current editing control according to a preset editing control cascade constraint relationship includes:
reading the attribute value of the attribute of the parent editing control of the current editing control;
and judging whether the parent editing control with the cascade constraint relation with the current editing control exists or not according to the attribute value of the parent editing control attribute.
Optionally, the attribute values of the attributes of the parent editing control include a path name and a control name of the parent editing control; the obtaining of the control name and the control value of the parent editing control includes:
analyzing the attribute value of the attribute of the parent editing control to obtain the path name and the control name of the parent editing control;
acquiring the parent editing control according to the path name and the control name of the parent editing control;
and reading the control value of the parent editing control.
Optionally, the step of forming a retrieval condition by using the obtained control name and control value pair of the parent editing control and the ancestor editing controls at each level, and retrieving in a pre-stored option data set to obtain selectable option data of the current editing control meeting the retrieval condition includes:
forming the retrieval condition according to the acquired control names and control value pairs of the parent editing control and the ancestor editing controls at all levels;
searching in the pre-stored option data set through a preset query program, and acquiring the selectable option data of the current editing control which meets the searching condition.
Optionally, the retrieval condition is a logic and expression formed by an equivalent relationship between the control name and the control value pair of the parent editing control and the ancestor editing controls at each level.
Optionally, the preset editing control cascade constraint relationship is constructed in the following manner:
and setting a cascading constraint relation between the editing controls in the document object model.
Optionally, the editing control has a parent editing control attribute; the preset editing control cascade constraint relation is set in the parent editing control attribute of each editing control; the setting of the cascade constraint relationship among the editing controls in the document object model comprises the following steps:
compiling each editing control in the document object model;
and configuring the cascade constraint relation among the editing controls through the attributes of the parent editing controls.
Optionally, the current editing control adopts an input box control; the populating selectable item data meeting the retrieval condition into the auxiliary drop-down list associated with the current editing control includes:
setting respective corresponding click events for the selectable item data; when the click event is triggered, taking selectable item data corresponding to the click event as an input value of the input box control;
and filling the data of each selectable item after the click event is set into an auxiliary drop-down list associated with the current editing control.
Optionally, when the event listener preset for the editing control monitors a preset display drop-down list event, before acquiring the control names and control values of the parent editing control and ancestor editing controls of the current editing control according to the preset editing control cascade constraint relationship, the method further includes:
and monitoring the preset display pull-down list event of the editing control.
Correspondingly, the present application further provides a data processing apparatus, configured to apply to an auxiliary drop-down list associated with an editing control, including:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring control names and control values of a parent editing control and ancestor editing controls of a current editing control according to a preset editing control cascade constraint relation when a preset display pull-down list event is monitored by an event monitor preset for the editing control;
the retrieval unit is used for forming retrieval conditions by using the acquired control name and control value pairs of the parent editing control and the ancestor editing controls at each level, and retrieving in a prestored option data set to acquire selectable option data of the current editing control which accords with the retrieval conditions;
and the filling unit is used for filling the selectable item data meeting the retrieval conditions into the auxiliary drop-down list associated with the current editing control.
Optionally, the obtaining unit includes:
the judging subunit is used for judging whether a parent editing control with a cascade constraint relation with the current editing control exists or not according to a preset editing control cascade constraint relation;
and the obtaining subunit is configured to, if the determination result is yes, obtain a control name and a control value of the parent editing control, use the parent editing control as a new current editing control, and return to execute the step of determining whether there is a parent editing control having a cascade constraint relationship with the new current editing control according to a preset editing control cascade constraint relationship.
Optionally, the editing control has a parent editing control attribute; and the preset editing control cascade constraint relation is set in the parent editing control attribute of each editing control.
Optionally, the judging subunit includes:
the reading subunit is used for reading the attribute value of the attribute of the parent editing control of the current editing control;
and the first judging subunit is used for judging whether the parent editing control with the cascade constraint relation with the current editing control exists or not according to the attribute value of the attribute of the parent editing control.
Optionally, the attribute values of the attributes of the parent editing control include a path name and a control name of the parent editing control; the acquisition subunit includes:
the analysis subunit is used for analyzing the attribute value of the attribute of the parent editing control to obtain the path name and the control name of the parent editing control;
the first obtaining subunit is configured to obtain the parent editing control according to the path name and the control name of the parent editing control;
and the reading subunit is used for reading the control value of the parent editing control.
Optionally, the retrieving unit includes:
the generating subunit is used for forming the retrieval condition according to the acquired control name and control value pair of the parent editing control and the ancestor editing controls at each level;
and the first retrieval subunit is used for retrieving in the pre-stored option data set through a preset query program to acquire the selectable option data of the current editing control which meets the retrieval condition.
Optionally, the method further includes:
the construction relation unit is used for constructing the preset editing control cascade constraint relation; the preset editing control cascade constraint relationship is constructed by adopting the following method:
and setting a cascading constraint relation between the editing controls in the document object model.
Optionally, the editing control has a parent editing control attribute; the preset editing control cascade constraint relation is set in the parent editing control attribute of each editing control; the building relation unit comprises:
the compiling subunit is used for compiling each editing control in the document object model;
and the configuration subunit is used for configuring the cascade constraint relationship among the editing controls through the attributes of the parent editing controls.
Optionally, the filling unit includes:
the setting subunit is used for setting the click events corresponding to the selectable item data; when the click event is triggered, the selectable item data corresponding to the click event is used as the input value of the input box control;
and the filling subunit is used for filling the data of each selectable item after the click event is set into the auxiliary drop-down list associated with the current editing control.
Optionally, the method further includes:
and the monitoring unit is used for monitoring the preset display pull-down list event of the editing control.
Correspondingly, the present application also provides an electronic device, comprising:
a display;
a processor; and
a memory for storing a data processing apparatus, the data processing apparatus, when executed by the processor, comprising the steps of: when an event listener preset for the editing control monitors a preset display drop-down list event, acquiring the control names and control values of a parent editing control and ancestor editing controls of the current editing control according to a preset editing control cascade constraint relation; forming retrieval conditions by using the acquired control names and control value pairs of the parent editing controls and the ancestor editing controls at all levels, and retrieving in a prestored option data set to acquire selectable option data of the current editing control which meets the retrieval conditions; and filling selectable item data meeting the retrieval condition into an auxiliary drop-down list associated with the current editing control.
Compared with the prior art, the method has the following advantages:
according to the data processing method provided by the embodiment of the application, when an event listener preset for an editing control monitors a preset display drop-down list event, the control names and the control values of a parent editing control and ancestor editing controls of the current editing control are obtained according to a preset editing control cascade constraint relation; forming retrieval conditions by using the acquired control names and control value pairs of the parent editing controls and the ancestor editing controls at each level, and retrieving in a prestored option data set to acquire selectable option data of the current editing control which meets the retrieval conditions; and filling selectable item data meeting the retrieval conditions into an auxiliary drop-down list associated with the current editing control, so that when the editing control with the cascade constraint relation needs to display the selectable item data in a linkage manner, the selectable item data of the editing control can be acquired through a uniform query program, the query program is prevented from being written for each editing control, the program codes for realizing linkage display of the editing controls are reduced, and the effect of reducing the manual workload is achieved.
Drawings
FIG. 1 is a flow chart of a data processing method embodiment of the present application;
FIG. 2 is a DOM structure diagram of an embodiment of the data processing method of the present application;
FIG. 3 is a schematic diagram of an edit control with a cascading constraint relationship according to an embodiment of the data processing method of the present application;
FIG. 4 is a schematic diagram of a program code for setting a cascade constraint relationship according to an embodiment of the data processing method of the present application;
FIG. 5 is a flowchart illustrating a step S101 of an embodiment of the data processing method according to the present application;
fig. 6 is a detailed flowchart of step S1013 of the data processing method embodiment of the present application;
FIG. 7 is a flowchart illustrating an embodiment of a data processing method of the present application in detail for constructing query program parameters;
FIG. 8 is a schematic diagram of an embodiment of a data processing apparatus of the present application;
FIG. 9 is a detailed diagram of an acquisition unit 101 of an embodiment of the data processing apparatus of the present application;
FIG. 10 is a detailed schematic diagram of an embodiment of a data processing apparatus of the present application;
fig. 11 is a detailed schematic diagram of an electronic device of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The application provides a data processing method and device and electronic equipment. Details are described in the following examples one by one.
The data processing method provided by the embodiment of the application has the following basic ideas: and for the editing control to be displayed with the pull-down list, forming a retrieval condition according to the control names and control values of the parent editing control and the ancestor editing controls at all levels, which have a cascade constraint relation with the editing control, and retrieving and acquiring selectable item data of the editing control to be displayed with the pull-down list through a uniform query interface. The method provided by the application retrieves and acquires the selectable data of the editing controls through a uniform query interface, and the query interface does not need to be written for each editing control, so that the program codes for realizing linkage display of the editing controls can be reduced.
Please refer to fig. 1, which is a flowchart illustrating an embodiment of a data processing method according to the present application. The method comprises the following steps:
step S101: and when the event listener preset for the editing control monitors a preset display drop-down list event, acquiring the control names and control values of the parent editing control and the ancestor editing controls of the current editing control according to the preset editing control cascade constraint relation.
The editing control in the embodiment of the application refers to a graphical user interface element with editable content. An edit control is a very common control that allows text to be entered and edited within the edit control. In particular, the edit control includes an input box control or a combo box control, for example, in a web page file, the input box control is represented by an < input > tag or a < textarea > tag, and the combo box control is represented by a < select > tag; in the Visual Basic programming language, the input box control is a TextBox component and the comboBox control is a ComboBox component.
In practical application, when the event listener preset for the editing control monitors a preset event for displaying a drop-down list, the data processing method provided by the embodiment of the application is started to execute, and the selectable item data is obtained for the current editing control and is displayed in the drop-down list. Therefore, to implement the method provided by the present application, first, a respective event listener needs to be preset for each editing control having a cascading constraint relationship in the window.
The event listener in the embodiment of the present application is configured to listen to a drop-down list display event of an editing control associated with the event listener. The event for displaying the pull-down list in the embodiment of the application is triggered by a preset action implemented on the editing control, for example, the event for displaying the pull-down list is triggered by clicking the editing control or inputting data in an input box.
When the event listener preset for the editing control monitors a preset display drop-down list event, the method provided by the embodiment of the application is executed. According to the method provided by the embodiment of the application, firstly, the control names and the control values of the parent editing control and the ancestor editing controls of the current editing control are obtained according to the preset editing control cascade constraint relationship.
The preset editing control cascade constraint relationship described in the present application defines a cascade constraint relationship between editing controls in a window, for example: the selectable data of the editing control No. 2 depends on the input value of the editing control No. 1 and the like. Under the complex condition, a preset editing control cascade constraint relationship forms a tree structure, each editing control in the tree structure obtains selectable data of each editing control through a uniform query program, namely: and one preset editing control cascade constraint relation only corresponds to one query program. Through the preset editing control cascade constraint relationship, the control names and control values of the parent editing control and ancestor editing controls of the current editing control can be obtained.
In this embodiment, the edit control is located in the web page file. In order to conveniently obtain the parent editing control and the ancestor editing controls of all levels of the editing controls in the webpage file, the cascade constraint relationship among the editing controls needs to be set in the document object model.
The Document Object Model (DOM) is a standard programming interface for the W3C organization to process extensible markup language (xml) recommendations. It is a platform and language independent Application Program Interface (API) that can dynamically access programs and scripts, updating their content, structure and style of www documents (currently, HTMl and XML documents are defined by the declarative part). The document may be further processed and the results of the processing may be added to the current page. The DOM is a tree-based API document that requires that the entire document be represented in memory during processing.
The DOM is divided into HTML DOM and XML DOM. They define standard methods of accessing and manipulating HTML/XML documents, respectively, and present the corresponding document as a tree structure (node tree) with elements, attributes and text. The document object model has the following characteristics:
1) the DOM tree defines the logical structure of an HTML/XML document and presents a way for applications to access and process XML documents.
2) In the DOM tree, there is a root node and all other nodes are descendants of the root node.
3) In the application process, the HTML/XML analyzer based on the DOM converts an HTML/XML document into a DOM tree, and the application program realizes the operation on the HTML/XML document data through the operation on the DOM tree.
Please refer to fig. 2, which is a schematic diagram of a DOM structure according to an embodiment of the data processing method of the present application. In the HTML DOM, everything is a node. The DOM is HTML considered to be a tree of nodes. According to the HTML DOM standard of W3C, all of the content in an HTML document is a node: the whole document is a document node; each HTML element is an element node; the text within the HTML element is a text node; each HTML attribute is an attribute node; the annotations are annotation nodes.
Please refer to fig. 3, which is a schematic diagram of an editing control having a cascade constraint relationship according to an embodiment of the data processing method of the present application. The content of the No. 1 input box is obtained by directly calling a query program when a page is loaded; the content of the No. 2 input box is obtained by calling the query program by taking the content of the No. 1 input box as a retrieval condition; the content of the No. 3 input box is obtained by calling the query program by taking the content of the No. 1 input box and the content of the No. 2 input box as retrieval conditions; by analogy, more than one input box from No. 5 to No. 9 can be seen, and the cascade relation is that all the input boxes from No. 5 use the content of the input boxes from No. 1 to No. 4 as a retrieval condition and call the query program to obtain the input boxes from No. 5 to No. 4; the No. 6 input box behind the first No. 5 input box is obtained by calling the query program with the contents of the No. 1 to No. 4 input boxes and the contents of the first No. 5 input box as retrieval conditions; similarly, the input box No. 8 is obtained by calling the query program with the contents of the input boxes No. 1 to 4 and the input boxes No. 5 to 7 above 8 as the search conditions.
For the cascade constraint relationship between the editing controls shown in fig. 3, please refer to fig. 4, which is a schematic diagram of a program code for setting the cascade constraint relationship according to an embodiment of the data processing method of the present application. And the div element node identified by the container type attribute in the code < div class ═ container > is the top element node of the same genus of each editing control with the cascade constraint relationship.
Figure GDA0002200829010000101
The div element node identified by the input-element type attribute in the upper segment of code is a child node of the div element node identified by the container type attribute, the editing control in the div element node identified by the input-element type attribute is an input frame control, the control name is interface type description, the data-case-parent-exp attribute of the control is a custom attribute, the attribute identifies the path name and the control name of the parent editing control of the control, the data-trigger-url attribute is also a custom attribute, and the attribute identifies the name of the query program of the selectable item data.
Figure GDA0002200829010000102
The data-cascade-parent-exp attribute value in the upper code is panel input [ name ═ interface type description' ], and selectable item data indicating the input box interface description depends on the input value of the input box interface type description.
The data-cascade-parent-exp attribute value in the upper code is, contract input [ name ═ method description' ], which indicates that the selectable item data of the input box interfaceTypeDescription under the div element node identified by the contract class attribute- > the div element node identified by the panel class attribute- > the panel-header class attribute depends on the input value of the input box interfaceTypeDescription under the div element node identified by the immediately previous contract class attribute of the current div element node.
In summary, by setting the cascade constraint relationship between the editing controls in the document object model, the parent editing control and the ancestor editing controls of each level of the editing controls can be conveniently obtained. Specifically, the method for setting the cascade constraint relationship among the editing controls in the document object model comprises the following steps: 1) compiling each editing control in the document object model; 2) and configuring the cascade constraint relationship among the editing controls through the preset cascade constraint relationship attribute.
1) Various editing controls are written in the document object model.
By writing each editing control in the document object model, each editing control can be identified by a node path name and a control name, for example, the node path name of the input box interface type description corresponding to the service type in fig. 4 is contact, the node path name of the input box interface type description corresponding to the function type is contact.
In a web page file, a document may be divided into separate, distinct sections by < div > tags. It can be used as a strict organizational tool and is not associated with it using any format. Especially if id or class is used to mark < div >, the role of the tag becomes more efficient. In this embodiment, the node pathname of the edit control is identified by the class attribute of the div element.
The class attribute appearing in the web page tag of FIG. 4 is typically used to invoke the pre-configured attribute in CSS, the named CSS also being called the CSS style selector. In CSS style, the preformulation attributes are named with "English half-corner lowercase period number, while in html pages the preformulation attributes are chosen to be called with the class attribute, for example: container { attribute: an attribute value; the style selector is called at html as < div class ═ container' >. By the Class attribute, a 'Class' attribute is not repeatedly configured in a webpage page like a calling function, and only a Class selection needs to be written, so that the same Class can be called and selected at any position in the same page.
2) And configuring the cascade constraint relation among the editing controls through the attributes of the parent editing controls.
The parent editing control attribute is a custom attribute, and each editing control with the cascade constraint relationship has the parent editing control attribute. The preset editing control cascade constraint relationship in the embodiment of the application is formed by setting the parent editing control attribute for each editing control. Therefore, the preset editing control cascade constraint relationship is set in the parent editing control attribute of each editing control.
For example, the input tag in fig. 4 retains the original name attribute and adds the parent edit control attribute: the data-cascade-parent-exp points to a parent editing control which causes the selectable data of the current editing control to change in a linkage mode, the data-cascade-parent-exp is assigned by the name property of the parent editing control, and the data-cascade-parent-exp value further comprises the node path name of the parent editing control.
It should be noted that, because the editing control of this embodiment is located in the web page file, the web page file is written by using JavaScript and CSS languages, and the cascade constraint relationship between the editing controls is set in the document object model. In practical application, the method is not limited to setting the cascade constraint relationship between the editing controls in the document object model, and may also be an organization structure of other editing controls, for example, when the editing control is not located in a web page file but in a common window, the organization structure of the editing control related to the window may be adopted, so as to conveniently obtain the parent editing control and the ancestor editing controls of the editing controls. These different embodiments are modifications of the embodiments, which do not depart from the core of the present application, and therefore all fall within the scope of the present application.
In this embodiment, after the cascade constraint relationship between the editing controls is set in the document object model, the control names and control values of the parent editing control and the ancestor editing controls of the current editing control can be obtained according to the preset cascade constraint relationship of the editing controls. Please refer to fig. 5, which is a flowchart illustrating a step S101 of the data processing method according to an embodiment of the present application. Specifically, the obtaining of the control names and control values of the parent editing control and ancestor editing controls of the current editing control according to the preset editing control cascade constraint relationship includes:
step S1011: and judging whether a parent editing control having a cascade constraint relation with the current editing control exists or not according to a preset editing control cascade constraint relation.
According to the data processing method provided by the embodiment of the application, the control names and the control values of the parent editing control and the ancestor editing controls of the current editing control are gradually obtained in the process of recursively obtaining the parent editing control of each editing control step by step upwards for the DOM structure according to the attribute values of the attributes of the parent editing control of the current editing control. And when the editing controls at all levels are processed recursively, acquiring the control names and control values of the editing controls at the father level according to the attributes of the editing controls at the father level of the current editing control.
Specifically, the determining whether there is a parent editing control having a cascade constraint relationship with the current editing control according to a preset editing control cascade constraint relationship includes: 1) reading the attribute value of the attribute of the parent editing control of the current editing control; 2) and judging whether the parent editing control with the cascade constraint relation with the current editing control exists or not according to the attribute value of the parent editing control attribute.
1) And reading the attribute value of the attribute of the parent editing control of the current editing control.
And for the editing control being processed in the recursive process, reading the attribute value of the attribute of the parent editing control of the editing control through the DOM API.
2) And judging whether the parent editing control with the cascade constraint relation with the current editing control exists or not according to the attribute value of the parent editing control attribute.
After the attribute values of the attributes of the parent editing control of the current editing control are obtained, whether the parent editing control having the cascade constraint relation with the current editing control exists or not is judged according to the obtained attribute values. In this embodiment, if the attribute value of the attribute of the parent editing control is null, it indicates that the current editing control does not have the parent editing control with the cascade constraint relationship, and if the attribute value of the attribute of the parent editing control is non-null, it indicates that the current editing control has the parent editing control with the cascade constraint relationship.
Step S1013: and if so, acquiring the control name and the control value of the parent editing control, taking the parent editing control as a new current editing control, and returning to execute the step of judging whether the parent editing control having the cascade constraint relation with the new current editing control exists according to the preset cascade constraint relation of the editing controls.
By the judgment of the step S1011, if there is a parent editing control having a cascade constraint relationship with the current editing control, the control name of the parent editing control is obtained according to the attribute value of the attribute of the parent editing control, and further the control value of the parent editing control is obtained according to the control name of the parent editing control. After the control name and the control value of the parent editing control having the cascade constraint relationship with the current editing control are obtained, the parent editing control of the current editing control is recursively processed upwards along the DOM tree and is used as the current editing control, and the step S1011 is repeated until the processed current editing control has no parent editing control.
Please refer to fig. 6, which is a flowchart illustrating a step S1013 of the data processing method according to an embodiment of the present application. Specifically, the obtaining the control name and the control value of the parent editing control includes:
step S10131: and analyzing the attribute value of the attribute of the parent editing control to obtain the path name and the control name of the parent editing control.
The attribute values of the attributes of the parent editing control comprise the path name and the control name of the parent editing control. For example, in fig. 4, the path name of the input box interfaceTypeDescription corresponding to the service type is connector, and the path name of the input box interfaceTypeDescription corresponding to the function type is connector.
In this embodiment, spaces are used to separate the pathname and the control name of the parent editing control, so that the pathname and the control name of the parent editing control can be obtained by obtaining the sub-character strings. In practical applications, the method is not limited to the way of using space to separate the path name and the control name of the character-level editing control, and may also be other preset segmentation characters, and the above different ways are all changes of the specific implementation mode, and do not depart from the core of the present application, and therefore, all of them are within the protection scope of the present application.
Step S10133: and acquiring the parent editing control according to the path name and the control name of the parent editing control.
After the path name and the control name of the parent editing control are obtained, the parent editing control identified by the control name under the path can be further obtained through the DOM API.
Step S10135: and reading the control value of the parent editing control.
And after a parent editing control having a cascade constraint relation with the current editing control is obtained, the control value of the parent editing control can be obtained by reading the value attribute of the editing control.
And S1011, judging whether a parent editing control having a cascade constraint relation with the current editing control exists according to the preset editing control cascade constraint relation, and if not, indicating that the control names and control values of the parent editing control and ancestor editing controls of the current editing control are obtained.
Step S103: and forming retrieval conditions by using the acquired control names and control value pairs of the parent editing controls and the ancestor editing controls at all levels, and retrieving in a prestored option data set to acquire selectable option data of the current editing control which meets the retrieval conditions.
The control names and control values of the parent editing control and the ancestor editing controls of each level of the current editing control are obtained through the step S101, the retrieval condition is formed by the combination of the control name and the control value of each pair of the obtained editing controls, and the selectable item data of the current editing control which meets the retrieval condition is obtained through searching in the prestored option data set through a unified query program.
Specifically, the step of forming a retrieval condition by using the obtained control name and control value pair of the parent editing control and the ancestor editing controls at each level, and retrieving in a pre-stored option data set to obtain selectable option data of the current editing control which meets the retrieval condition includes: 1) forming the retrieval condition according to the acquired control names and control value pairs of the parent editing control and the ancestor editing controls at all levels; 2) searching in the pre-stored option data set through a preset query program, and acquiring the selectable option data of the current editing control which meets the searching condition.
1) And forming the retrieval condition according to the acquired control names and control value pairs of the parent editing control and the ancestor editing controls at all levels.
The retrieval condition in the embodiment of the application is a logic and expression formed by equivalent relations between control names and control value pairs of a parent editing control and ancestor editing controls of the current editing control. For example, in fig. 3, the content of the input box No. 3 is the content of the input boxes No. 1 and No. 2 as the search condition, where the content of the input box No. 1 is XXX and the content of the input box No. 2 is YYY, then the search condition is: parameter 1 ═ XXX and parameter 2 ═ YYY.
2) Searching in the pre-stored option data set through a preset query program, and acquiring the selectable option data of the current editing control which meets the searching condition.
In this embodiment, the preset query program is identified by "obtaining the query program name attribute of the selectable item data" (i.e. data-comment-url) through editing the custom attribute of the control. The Web application provides a uniform query program, when the query program is called to obtain the selectable item data of the current editing control, certain parameters are required to be transmitted to the query program, the parameters are the control names and the control values of all the parent editing controls related to the current editing control, the query program forms retrieval conditions according to the received query parameters, and executes query operation according to the retrieval conditions, so that the selectable item data of the current editing control are obtained.
Please refer to fig. 7, which is a flowchart illustrating a method for processing data according to an embodiment of the present invention. Specifically, when a user clicks an editing control or inputs a character in the editing control, a drop-down list display event bound to the editing control is triggered, and the step of constructing query program parameters by an event processor of the event is as follows: reading the name attribute of the current editing control, and taking the name attribute as a parameter of a query program, wherein the parameter represents the name of the editing control for acquiring the selectable item data; then reading the 'parent editing control attribute' of the current editing control, and judging whether the parent editing control attribute value is null; if the judgment result is negative, taking a blank space as a separator to split the ' parent editing control attribute ', taking the split first part as a parent node selector in a closest DOM structure of the input frame, finding a parent node which is in accordance with the selector condition in the DOM structure according to the parent node selector, taking the split second part as a selector of a child node of the parent node in 1, finding a parent input frame/drop-down frame in the cascade relation according to the parent node and the child node selector in the DOM structure, reading the ' name attribute ' and the ' value attribute ' of the parent input frame/drop-down frame, and taking the ' name attribute ' value ' as a parameter of the query program; if the judgment result is yes, reading the 'query program name attribute for acquiring the selectable item data' of the current editing control, and adding all the parameters acquired before to the attribute value.
After the query program parameters are constructed through the specific steps in fig. 7, the query program provided by the back end can be requested to be executed according to the parameters, the query program searches in the pre-stored option data set to obtain the optional data of the current editing control meeting the conditions, and finally, the data returned by the back end query program is displayed below the editing control for the user to select. Upon user selection, the user-selected value is filled into the edit control.
The pre-stored option data set in the embodiment of the application is stored in a JSON data exchange format, the attribute value of the "query program name attribute for acquiring selectable item data" (i.e., data-comment-url) of the editing control is "/scc/serviceMetaInfoRpc/comment. In practical applications, the unified query program is not limited to the option data set stored in the JSON data exchange format, and may also be other program interfaces, for example, a query program written in programming languages such as java, c #, php, ruby, etc., and these different manners are merely changes of specific embodiments, and do not depart from the core of the present application, and therefore, all of them are within the protection scope of the present application.
Step S105: and filling selectable item data meeting the retrieval condition into an auxiliary drop-down list associated with the current editing control.
The selectable data of the editing control is obtained through step S103, and is usually a list of key-value pairs. These selectable data need to be displayed in a secondary drop-down list associated with the current editing control, the drop-down list populated with one or more suggested completion strings. Specifically, since the edit control of this embodiment is located in the web page file, the JavaScript program can display the selectable item data meeting the search condition acquired in step S103 below the edit control, and provide the selectable item data for the user to select.
In practical application, if the editing control adopts an input box control, filling selectable item data meeting the retrieval condition into an auxiliary drop-down list associated with the current editing control, wherein the method comprises the following steps: 1) setting respective corresponding click events for the selectable item data; when the click event is triggered, taking an option value corresponding to the click event as an input value of the input box control; 2) and filling the data of each selectable item after the click event is set into an auxiliary drop-down list associated with the current editing control.
1) Setting respective corresponding click events for the selectable item data; and when the click event is triggered, taking the option value corresponding to the click event as the input value of the input box control.
For the edit control of the combo box style, after the acquired selectable item data is filled in the auxiliary drop-down list, if one of the options is selected, the option value is automatically filled in the input box. With the conventional input box control, if one of the options is selected, the option value is not automatically filled into the input box, so that some additional setting needs to be made so that the option value can be automatically filled into the input box. For this purpose, respective click events may be set for the respective selectable item data. And when the click event is triggered, taking the option value corresponding to the click event as the value of the text input box.
2) And filling the data of each selectable item after the click event is set into an auxiliary drop-down list associated with the current editing control.
And for the auxiliary drop-down list associated with the text input box, after a click event is set for each option, filling the data of each selectable item after the click event is set into the auxiliary drop-down list associated with the editing control. In the embodiment, through using JavaScript and JQuery technology, optional data (usually the data is an array) returned by the query program is appended behind the DOM node of the current input box in a mode of a certain element of a "< li > array", and simultaneously, a click event is added to each < li >, so that when clicked, the content of the element in the < li > is filled in the value attribute of the input box.
In the foregoing embodiment, a data processing method is provided, and correspondingly, the present application further provides a data processing apparatus. The apparatus corresponds to an embodiment of the method described above.
Please refer to fig. 8, which is a schematic diagram of an embodiment of a data processing apparatus according to the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
A data processing apparatus of this embodiment, configured to apply to an auxiliary drop-down list associated with an editing control, includes:
the acquiring unit 101 is configured to acquire control names and control values of a parent editing control and ancestor editing controls of a current editing control according to a preset editing control cascade constraint relationship when a preset event listener for the editing control monitors a preset display pull-down list event;
a retrieval unit 103, configured to form a retrieval condition according to the acquired control name and control value pair of the parent editing control and the ancestor editing controls at each level, and perform a centralized retrieval on pre-stored option data to acquire selectable option data of the current editing control that meets the retrieval condition;
and a filling unit 105, configured to fill the selectable item data meeting the retrieval condition into the auxiliary drop-down list associated with the current editing control.
Please refer to fig. 9, which is a detailed schematic diagram of an acquisition unit 101 of an embodiment of the data processing apparatus of the present application. Optionally, the obtaining unit 101 includes:
a determining subunit 1011, configured to determine, according to a preset editing control cascade constraint relationship, whether a parent editing control having a cascade constraint relationship with the current editing control exists;
and an obtaining subunit 1013, configured to, if the determination result is yes, obtain a control name and a control value of the parent editing control, use the parent editing control as a new current editing control, and return to execute the step of determining whether there is a parent editing control having a cascade constraint relationship with the new current editing control according to a preset cascade constraint relationship of editing controls.
Optionally, the editing control has a parent editing control attribute; and the preset editing control cascade constraint relation is set in the parent editing control attribute of each editing control.
Optionally, the determining subunit 1011 includes:
the reading subunit is used for reading the attribute value of the attribute of the parent editing control of the current editing control;
and the first judging subunit is used for judging whether the parent editing control with the cascade constraint relation with the current editing control exists or not according to the attribute value of the attribute of the parent editing control.
Optionally, the attribute values of the attributes of the parent editing control include a path name and a control name of the parent editing control; the acquisition subunit 1013 includes:
the analysis subunit is used for analyzing the attribute value of the attribute of the parent editing control to obtain the path name and the control name of the parent editing control;
the first obtaining subunit is configured to obtain the parent editing control according to the path name and the control name of the parent editing control;
and the reading subunit is used for reading the control value of the parent editing control.
Optionally, the retrieving unit 103 includes:
the generating subunit is used for forming the retrieval condition according to the acquired control name and control value pair of the parent editing control and the ancestor editing controls at each level;
and the first retrieval subunit is used for retrieving in the pre-stored option data set through a preset query program to acquire the selectable option data of the current editing control which meets the retrieval condition.
Please refer to fig. 10, which is a detailed diagram of an embodiment of a data processing apparatus according to the present application. Optionally, the method further includes:
a relationship building unit 201, configured to build the preset editing control cascade constraint relationship; the preset editing control cascade constraint relationship is constructed by adopting the following method:
and setting a cascading constraint relation between the editing controls in the document object model.
Optionally, the editing control has a parent editing control attribute; the preset editing control cascade constraint relation is set in the parent editing control attribute of each editing control; the build relationship unit 201 includes:
the compiling subunit is used for compiling each editing control in the document object model;
and the configuration subunit is used for configuring the cascade constraint relationship among the editing controls through the attributes of the parent editing controls.
Optionally, the filling unit 105 includes:
the setting subunit is used for setting the click events corresponding to the selectable item data; when the click event is triggered, taking selectable item data corresponding to the click event as an input value of the input box control;
and the filling subunit is used for filling the data of each selectable item after the click event is set into the auxiliary drop-down list associated with the current editing control.
Optionally, the method further includes:
a monitoring unit 203, configured to monitor the preset display pull-down list event of the editing control.
Please refer to fig. 11, which is a flowchart illustrating an embodiment of an electronic device according to the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
An embodiment of the present application further provides an electronic device, which includes: a display 1101; a processor 1102; and a memory 1103 for storing a data processing device, which when executed by the processor 1102, comprises the steps of: when an event listener preset for the editing control monitors a preset display drop-down list event, acquiring the control names and control values of a parent editing control and ancestor editing controls of the current editing control according to a preset editing control cascade constraint relation; forming retrieval conditions by using the acquired control names and control value pairs of the parent editing controls and the ancestor editing controls at all levels, and retrieving in a prestored option data set to acquire selectable option data of the current editing control which meets the retrieval conditions; and filling selectable item data meeting the retrieval condition into an auxiliary drop-down list associated with the current editing control.
The electronic equipment in the embodiment of the application comprises terminal equipment such as a personal computer, a PAD (PAD application), an iPad and mobile communication equipment, namely: known as a cell phone or smart phone. The data processing device is used for acquiring optional data meeting conditions according to a preset cascade constraint relation and filling the acquired data into an auxiliary pull-down list associated with the editing control.
According to the data processing method provided by the embodiment of the application, when an event listener preset for an editing control monitors a preset display drop-down list event, the control names and the control values of a parent editing control and ancestor editing controls of the current editing control are obtained according to a preset editing control cascade constraint relation; forming retrieval conditions by using the acquired control names and control value pairs of the parent editing controls and the ancestor editing controls at each level, and retrieving in a prestored option data set to acquire selectable option data of the current editing control which meets the retrieval conditions; and filling selectable item data meeting the retrieval conditions into an auxiliary drop-down list associated with the current editing control, so that when the editing control with the cascade constraint relation needs to display the selectable item data in a linkage manner, the selectable item data of the editing control can be acquired through a uniform query program, the query program is prevented from being written for each editing control, the program codes for realizing linkage display of the editing controls are reduced, and the effect of reducing the manual workload is achieved.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.
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). Memory is an example of a computer-readable medium.
1. 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, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
2. 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.

Claims (22)

1. A data processing method for use with a secondary drop-down list associated with an editing control, comprising:
when an event listener preset for the editing control monitors a preset display drop-down list event, acquiring the control names and control values of a parent editing control and ancestor editing controls of the current editing control according to a preset editing control cascade constraint relation;
forming retrieval conditions by using the acquired control names and control value pairs of the parent editing controls and the ancestor editing controls at all levels, and retrieving in a prestored option data set to acquire selectable option data of the current editing control which meets the retrieval conditions;
and filling selectable item data meeting the retrieval condition into an auxiliary drop-down list associated with the current editing control.
2. The data processing method according to claim 1, wherein the obtaining of the control names and control values of the parent editing control and the ancestors editing controls of each level of the current editing control according to the preset editing control cascade constraint relationship comprises:
judging whether a parent editing control with a cascade constraint relation with the current editing control exists or not according to a preset editing control cascade constraint relation;
and if so, acquiring the control name and the control value of the parent editing control, taking the parent editing control as a new current editing control, and returning to execute the step of judging whether the parent editing control having the cascade constraint relation with the new current editing control exists according to the preset cascade constraint relation of the editing controls.
3. The data processing method of claim 2, wherein the edit control has a parent edit control property; and the preset editing control cascade constraint relation is set in the parent editing control attribute of each editing control.
4. The data processing method according to claim 3, wherein the determining whether there is a parent editing control having a cascade constraint relationship with the current editing control according to a preset editing control cascade constraint relationship comprises:
reading the attribute value of the attribute of the parent editing control of the current editing control;
and judging whether the parent editing control with the cascade constraint relation with the current editing control exists or not according to the attribute value of the parent editing control attribute.
5. The data processing method of claim 3, wherein the property values of the parent editing control properties comprise a pathname and a control name of the parent editing control; the obtaining of the control name and the control value of the parent editing control includes:
analyzing the attribute value of the attribute of the parent editing control to obtain the path name and the control name of the parent editing control;
acquiring the parent editing control according to the path name and the control name of the parent editing control;
and reading the control value of the parent editing control.
6. The data processing method according to claim 1, wherein the retrieving conditions are formed by the acquired control name and control value pairs of the parent editing control and ancestor editing controls at each level, and the retrieved control name and control value pairs are retrieved from a pre-stored option data set to acquire selectable data of the current editing control meeting the retrieving conditions, and the method comprises the following steps:
forming the retrieval condition according to the acquired control names and control value pairs of the parent editing control and the ancestor editing controls at all levels;
searching in the pre-stored option data set through a preset query program, and acquiring the selectable option data of the current editing control which meets the searching condition.
7. The data processing method according to claim 1, wherein the retrieval condition is a logical and expression composed of equivalence relations between control name and control value pairs of the parent editing control and ancestor editing controls at each level.
8. The data processing method according to claim 7, wherein the preset editing control cascade constraint relationship is constructed in the following manner:
and setting a cascading constraint relation between the editing controls in the document object model.
9. The data processing method of claim 8, wherein the edit control has a parent edit control property; the preset editing control cascade constraint relation is set in the parent editing control attribute of each editing control; the setting of the cascade constraint relationship among the editing controls in the document object model comprises the following steps:
compiling each editing control in the document object model;
and configuring the cascade constraint relation among the editing controls through the attributes of the parent editing controls.
10. The data processing method of claim 1, wherein the current editing control is an input box control; the populating selectable item data meeting the retrieval condition into the auxiliary drop-down list associated with the current editing control includes:
setting respective corresponding click events for the selectable item data; when the click event is triggered, taking selectable item data corresponding to the click event as an input value of the input box control;
and filling the data of each selectable item after the click event is set into an auxiliary drop-down list associated with the current editing control.
11. The data processing method according to claim 1, wherein before the obtaining, according to the preset cascade constraint relationship of the editing controls, the control names and control values of the parent editing control and ancestor editing controls of the current editing control when the preset event listener for the editing controls monitors a preset display drop-down list event, the method further comprises:
and monitoring the preset display pull-down list event of the editing control.
12. A data processing apparatus for a secondary drop-down list associated with an editing control, comprising:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring control names and control values of a parent editing control and ancestor editing controls of a current editing control according to a preset editing control cascade constraint relation when a preset display pull-down list event is monitored by an event monitor preset for the editing control;
the retrieval unit is used for forming retrieval conditions by using the acquired control name and control value pairs of the parent editing control and the ancestor editing controls at each level, and retrieving in a prestored option data set to acquire selectable option data of the current editing control which accords with the retrieval conditions;
and the filling unit is used for filling the selectable item data meeting the retrieval conditions into the auxiliary drop-down list associated with the current editing control.
13. The data processing apparatus according to claim 12, wherein the acquisition unit includes:
the judging subunit is used for judging whether a parent editing control with a cascade constraint relation with the current editing control exists or not according to a preset editing control cascade constraint relation;
and the obtaining subunit is configured to, if the determination result is yes, obtain a control name and a control value of the parent editing control, use the parent editing control as a new current editing control, and return to execute the step of determining whether there is a parent editing control having a cascade constraint relationship with the new current editing control according to a preset editing control cascade constraint relationship.
14. The data processing apparatus of claim 13, wherein the edit control has a parent edit control property; and the preset editing control cascade constraint relation is set in the parent editing control attribute of each editing control.
15. The data processing apparatus of claim 14, wherein the determining subunit comprises:
the reading subunit is used for reading the attribute value of the attribute of the parent editing control of the current editing control;
and the first judging subunit is used for judging whether the parent editing control with the cascade constraint relation with the current editing control exists or not according to the attribute value of the attribute of the parent editing control.
16. The data processing apparatus according to claim 14, wherein the property values of the parent editing control properties comprise a pathname and a control name of the parent editing control; the acquisition subunit includes:
the analysis subunit is used for analyzing the attribute value of the attribute of the parent editing control to obtain the path name and the control name of the parent editing control;
the first obtaining subunit is configured to obtain the parent editing control according to the path name and the control name of the parent editing control;
and the reading subunit is used for reading the control value of the parent editing control.
17. The data processing apparatus of claim 12, wherein the retrieving unit comprises:
the generating subunit is used for forming the retrieval condition according to the acquired control name and control value pair of the parent editing control and the ancestor editing controls at each level;
and the first retrieval subunit is used for retrieving in the pre-stored option data set through a preset query program to acquire the selectable option data of the current editing control which meets the retrieval condition.
18. The data processing apparatus of claim 12, further comprising:
the construction relation unit is used for constructing the preset editing control cascade constraint relation; the preset editing control cascade constraint relationship is constructed by adopting the following method:
and setting a cascading constraint relation between the editing controls in the document object model.
19. The data processing apparatus of claim 18, wherein the edit control has a parent edit control property; the preset editing control cascade constraint relation is set in the parent editing control attribute of each editing control; the building relation unit comprises:
the compiling subunit is used for compiling each editing control in the document object model;
and the configuration subunit is used for configuring the cascade constraint relationship among the editing controls through the attributes of the parent editing controls.
20. The data processing apparatus of claim 12, wherein the padding unit comprises:
the setting subunit is used for setting the click events corresponding to the selectable item data; when the click event is triggered, the selectable item data corresponding to the click event is used as the input value of the input box control;
and the filling subunit is used for filling the data of each selectable item after the click event is set into the auxiliary drop-down list associated with the current editing control.
21. The data processing apparatus of claim 12, further comprising:
and the monitoring unit is used for monitoring the preset display pull-down list event of the editing control.
22. An electronic device, comprising:
a display;
a processor; and
a memory for storing a data processing apparatus, the data processing apparatus, when executed by the processor, comprising the steps of: when an event listener preset for the editing control monitors a preset display drop-down list event, acquiring the control names and control values of a parent editing control and ancestor editing controls of the current editing control according to a preset editing control cascade constraint relation; forming retrieval conditions by using the acquired control names and control value pairs of the parent editing controls and the ancestor editing controls at all levels, and retrieving in a prestored option data set to acquire selectable option data of the current editing control which meets the retrieval conditions; and filling selectable item data meeting the retrieval condition into an auxiliary drop-down list associated with the current editing control.
CN201510419227.4A 2015-07-16 2015-07-16 Data processing method and device and electronic equipment Active CN106354483B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510419227.4A CN106354483B (en) 2015-07-16 2015-07-16 Data processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510419227.4A CN106354483B (en) 2015-07-16 2015-07-16 Data processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN106354483A CN106354483A (en) 2017-01-25
CN106354483B true CN106354483B (en) 2020-02-07

Family

ID=57842659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510419227.4A Active CN106354483B (en) 2015-07-16 2015-07-16 Data processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106354483B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766307B (en) * 2016-08-18 2021-06-08 阿里巴巴集团控股有限公司 Method and equipment for linkage of table elements
CN107219972B (en) * 2017-05-23 2021-01-01 努比亚技术有限公司 Application management method and device and computer readable storage medium
TWI638314B (en) * 2017-08-10 2018-10-11 易易資設有限公司 Method for editing an html document
CN109426415B (en) * 2017-08-31 2020-10-27 北京国双科技有限公司 Method and device for generating cascade selector
CN110377851B (en) * 2019-06-18 2024-02-02 平安科技(深圳)有限公司 Method and device for realizing multi-stage linkage drop-down frame and computer equipment
CN111104160B (en) * 2019-12-17 2023-11-03 北京明略软件***有限公司 Membership exhibiting method and device, electronic equipment and storage medium
CN111767071A (en) * 2020-07-02 2020-10-13 湖南快乐阳光互动娱乐传媒有限公司 Data display adjustment method and device and electronic equipment
CN113791783B (en) * 2021-09-14 2022-11-29 科东(广州)软件科技有限公司 Control generation method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101082862A (en) * 2007-03-07 2007-12-05 浪潮集团山东通用软件有限公司 Window describing method and making language of logical, represent and data separation
CN101452380A (en) * 2007-12-05 2009-06-10 康佳集团股份有限公司 Method and system for implementing multi-stage linkage pulldown menu based on MVC model
US7885987B1 (en) * 2001-08-28 2011-02-08 Lee Eugene M Computer-implemented method and system for managing attributes of intellectual property documents, optionally including organization thereof
CN102004633A (en) * 2009-09-03 2011-04-06 阿里巴巴集团控股有限公司 Method and device for processing control property
CN103780448A (en) * 2012-10-23 2014-05-07 百度在线网络技术(北京)有限公司 Widget layer code generation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7885987B1 (en) * 2001-08-28 2011-02-08 Lee Eugene M Computer-implemented method and system for managing attributes of intellectual property documents, optionally including organization thereof
CN101082862A (en) * 2007-03-07 2007-12-05 浪潮集团山东通用软件有限公司 Window describing method and making language of logical, represent and data separation
CN101452380A (en) * 2007-12-05 2009-06-10 康佳集团股份有限公司 Method and system for implementing multi-stage linkage pulldown menu based on MVC model
CN102004633A (en) * 2009-09-03 2011-04-06 阿里巴巴集团控股有限公司 Method and device for processing control property
CN103780448A (en) * 2012-10-23 2014-05-07 百度在线网络技术(北京)有限公司 Widget layer code generation method and device

Also Published As

Publication number Publication date
CN106354483A (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN106354483B (en) Data processing method and device and electronic equipment
US10726195B2 (en) Filtered stylesheets
CN109918607B (en) Page construction method and device, medium and computing equipment
CN106598591B (en) Webpage dynamic menu generation method and device
US9619441B2 (en) Editing a fragmented document
US9967370B2 (en) OData enabled mobile software applications
JP2016224923A (en) Method and system for automated generation of user form interface
US9886175B1 (en) Adaptive and special user interface modes
CN113126990B (en) Page development method, device, equipment and storage medium
CN112711418B (en) Front-end interface layout method and device for multiple components, electronic equipment and storage medium
US20180321831A1 (en) Smart controls for user interface design and implementation
CN109284488B (en) Method, device and medium for modifying front-end table column data based on local storage
CN103559184A (en) Form page display method and device
US7650276B2 (en) System and method for dynamic data binding in distributed applications
US9575617B1 (en) Navigation payload injection
US20240037325A1 (en) Ability to add non-direct ancestor columns in child spreadsheets
CN112825038A (en) Visual page making method based on general component language specification and related product
CN113485746B (en) Method and device for generating application program interface document
CN111221610B (en) Page element acquisition method and device
CN112541327A (en) Data reading method and device, electronic equipment and storage medium
CN117130946B (en) Test scene generation method and device, electronic equipment and readable storage medium
US11210454B2 (en) Method for preparing documents written in markup languages while implementing a user interface for dealing with data of an information system
CN103488643A (en) Method and device for browsing cloud massive data
CN111367976B (en) Method and device for exporting EXCEL file data based on JAVA reflection mechanism
CN115408627A (en) Menu display method, device, equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant