Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Form component state switching method and device

A state switching and component state technology, applied in the information field, can solve the problem that the state of the form page cannot be switched at will, and achieve the effect of cost reduction

Pending Publication Date: 2019-10-22
ALIBABA GRP HLDG LTD
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the state of the generated form page in the prior art cannot be switched arbitrarily, and page codes in two different states need to be generated, and only two states of read-only and edit can be controlled

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Form component state switching method and device
  • Form component state switching method and device
  • Form component state switching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] Reference Figure 4 , Shows a flowchart of a method for switching the state of a form component according to an embodiment of the present application, which may specifically include the following steps:

[0045] Step 401: Load the form state control component.

[0046] In the embodiment of the present application, after the page code of the form page is obtained from the application server, the page code is loaded, and the form state control component is loaded while the page code is loaded.

[0047] The page code can be HTML code. One or more form tags are set in the page code. In addition, form state control components are also set. The form tags in the page code are bound to the corresponding form state control components through the form The state control component can control the state of the first form component in the page code.

[0048] Step 402: Obtain the first form component used by the form page through the form state control component; the first form component incl...

Embodiment 2

[0062] Reference Figure 5 , Shows a specific flowchart of a method for switching the state of a form component according to an embodiment of the present application, which may specifically include the following steps:

[0063] Step 501: Obtain the original second form component in the original form component library.

[0064] In the embodiment of the present application, obtaining the original second form component from the original form component library can be to obtain all the original second form components in the original form component library, or it can be based on the requirements of the form page, from the corresponding original Obtain the required original second form component from the form component library.

[0065] The original form component library includes antd open source form component library, open source amazeui form component library, open source rc-component form component library and open source RSUITE form component library, etc. The standards in each origin...

Embodiment 3

[0113] Reference Image 6 , Shows a flowchart of another form component state switching method according to an embodiment of the present application, which may specifically include the following steps:

[0114] Step 601: Load the form state control components corresponding to the multiple form tags in the form page, and bind each form state control component to the corresponding form tags.

[0115] In the embodiment of the present application, one form page may include multiple form tags, and one form tag corresponds to one form state control component.

[0116] After obtaining the page code of the form page from the application server, load the page code. While loading the page code, load the form status control components corresponding to the multiple form tags in the form page, and associate each form status control component with the corresponding The form label binding.

[0117] For example, a form page includes 3 form labels, namely form label 1, form label 2, and form label 3. ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a form component state switching method and device, and relates to the technical field of information. According to the invention, the form state control assembly is loaded; a first form component used by a form page is obtained through a form state control component; and a state switching instruction for switching the first form component from the first state to the secondstate is received, and the code set corresponding to the first state is replaced with the code set corresponding to the second state in the page codes of the form page through the form state control component. In a page code running process; when the state of the first form component needs to be switched; code sets in different states are replaced through the form state control assembly, page codes of one form page are written and can be reused in multiple states, the function of switching the states of the form page at will is achieved through state switching of the first form assembly, and the cost for writing the form page is greatly reduced.

Description

Technical field [0001] This application relates to the field of information technology, and in particular to a method and device for switching the state of form components. Background technique [0002] Form page generation technology is a common technology in web application development. Usually when writing form pages, it is often necessary to write multiple form pages in different states, such as order creation, editing, details, etc., and multiple form pages in different states Most form elements are the same, only the state of the form elements is different. [0003] At present, for the JSP (Java Server Pages, Java server page) form component library, based on the read-only and edit state switching of the basic components of the browser, the switch of the form page state can be controlled, and the same form page resource can be read-only and edited. In the two states, different HTML (HyperText Markup Language) codes are generated, and when the browser needs to switch the stat...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/38G06F9/445G06F9/451
CPCG06F8/38G06F9/44526G06F9/451
Inventor 郑淳
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products