CN106843836A - The high level control implementation method of dynamic list, apparatus and system - Google Patents

The high level control implementation method of dynamic list, apparatus and system Download PDF

Info

Publication number
CN106843836A
CN106843836A CN201611191396.8A CN201611191396A CN106843836A CN 106843836 A CN106843836 A CN 106843836A CN 201611191396 A CN201611191396 A CN 201611191396A CN 106843836 A CN106843836 A CN 106843836A
Authority
CN
China
Prior art keywords
script
input
type
dynamic list
high level
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.)
Granted
Application number
CN201611191396.8A
Other languages
Chinese (zh)
Other versions
CN106843836B (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.)
Beijing Zhiyuan Internet Software Ltd By Share Ltd
Original Assignee
Beijing Zhiyuan Internet Software Ltd By Share 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 Beijing Zhiyuan Internet Software Ltd By Share Ltd filed Critical Beijing Zhiyuan Internet Software Ltd By Share Ltd
Priority to CN201611191396.8A priority Critical patent/CN106843836B/en
Publication of CN106843836A publication Critical patent/CN106843836A/en
Application granted granted Critical
Publication of CN106843836B publication Critical patent/CN106843836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The invention provides high level control implementation method, the apparatus and system of a kind of dynamic list, realize an entrance for permission User Defined computing formula, allow the scripted code of user input difference script type, so when user fills in list, actuator perform script corresponding with script type can just be called, script operation result is backfilling into list again, so as to neatly realize the demand of user's application high level control on dynamic list.

Description

The high level control implementation method of dynamic list, apparatus and system
Technical field
The present invention relates to list generation technical field, more particularly to a kind of dynamic list high level control implementation method, Apparatus and system.
Background technology
Due to the constraint of html standards in itself, such as being input into the constraint of length, or input type constraint (including Data constraint, letter constraint, Chinese character constraint etc.), cause traditional form to realize being simply input constraint and use, and For the flexible demands of user on dynamic list, it is impossible to be met.
The content of the invention
It is an object of the invention to provide high level control implementation method, the apparatus and system of a kind of dynamic list, it is intended to solve Traditional form is restrained by html standards, cannot meet the problem of user's request.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of high level control implementation method of dynamic list, including:
Script storing step:
The data structure of script storage is set;Field in data structure includes script type;
User input to the script of dynamic list is received, as input script;
According to the script type, actuator corresponding with the script type is called to perform the input script, to institute The legitimacy for stating input script is verified, and obtains check results;It is legal and illegal that the check results include;
When the check results are legal, the input script is saved as into legal script;
Script performs step:
Html is write, input controls are realized;
Ajax is realized according to the input controls, script is obtained and is performed request;
Invoking server end performs whether request configures dynamic script and judge to the script, obtains judged result; The judged result includes configured and does not configure;
When the judged result is configured, according to the script type, hold corresponding with the script type is called Row device performs the legal script, obtains script implementing result;The script implementing result includes return structure;
According to the return structure, the page data of the dynamic list is adjusted by javascript.
On the basis of above-described embodiment, further, the field in the data structure is also identified including html controls And content for script.
On the basis of above-mentioned any embodiment, further, the script type include Groovy, Python and Ruby。
A kind of high level control of dynamic list realizes device, including:
Script memory module includes:
Setting unit, the data structure for setting script storage;Field in data structure includes script type;
Input block, for receiving user input to the script of dynamic list, as input script;
Verification unit, it is described for according to the script type, calling actuator corresponding with the script type to perform Input script, the legitimacy to the input script is verified, and obtains check results;It is legal and not that the check results include It is legal;
Storage unit, for when the check results are legal, the input script being saved as into legal script;
Script execution module includes:
Unit is write, for writing html, input controls is realized;
Request unit, for realizing ajax according to the input controls, obtains script and performs request;
Judging unit, judges whether script execution request configures dynamic script for invoking server end, Obtain judged result;The judged result includes configured and does not configure;
Execution unit, for when the judged result is configured, according to the script type, calling and the script The corresponding actuator of type performs the legal script, obtains script implementing result;The script implementing result includes returning to be tied Structure;
Adjustment unit, for according to the return structure, the page number of the dynamic list being adjusted by javascript According to.
On the basis of above-described embodiment, further, the field in the data structure is also identified including html controls And content for script.
On the basis of above-mentioned any embodiment, further, the script type include Groovy, Python and Ruby。
A kind of high level control of dynamic list realizes system, including:
The high level control of any of the above-described dynamic list realizes device;
Server end, for being called by judging unit, sentences to whether script execution request configures dynamic script It is disconnected, obtain judged result and be sent to judging unit;
Actuator, for being called by verification unit, performs the input script, and the legitimacy to the input script is carried out Verification, obtains check results and is sent to verification unit;And called by execution unit, the legal script is performed, obtain pin This implementing result is simultaneously sent to execution unit.
On the basis of above-described embodiment, further, also include:
Memory, for storing the described legal script that the storage unit sends.
On the basis of above-mentioned any embodiment, further, the field in the data structure also includes html controls Mark and content for script.
On the basis of above-mentioned any embodiment, further, the script type include Groovy, Python and Ruby。
The beneficial effects of the invention are as follows:
The invention provides high level control implementation method, the apparatus and system of a kind of dynamic list, a permission is realized The entrance of User Defined computing formula, it is allowed to the scripted code of user input difference script type, so fills in table in user Dan Shi, it is possible to call actuator perform script corresponding with script type, then script operation result is backfilling into list, from And neatly realize the demand of user's application high level control on dynamic list.
Brief description of the drawings
The present invention is further described with reference to the accompanying drawings and examples.
Fig. 1 shows a kind of flow chart of the high level control implementation method of dynamic list provided in an embodiment of the present invention;
Fig. 2 shows that a kind of high level control of dynamic list provided in an embodiment of the present invention realizes the structural representation of device Figure;
Fig. 3 shows that a kind of high level control of dynamic list provided in an embodiment of the present invention realizes the structural representation of system Figure.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the present invention, not Limit the present invention.
Specific embodiment one
As depicted in figs. 1 and 2, a kind of high level control implementation method of dynamic list is the embodiment of the invention provides, including:
Script storing step S101:
Step S1011, sets the data structure of script storage;Field in data structure includes script type;
Step S1012, receives user input to the script of dynamic list, used as input script;
Step S1013, according to the script type, calls actuator corresponding with the script type to perform the input Script, the legitimacy to the input script is verified, and obtains check results;The check results include legal and do not conform to Method;
Step S1014, when the check results are legal, legal script is saved as by the input script;
Script performs step S102:
Step S1021, writes html, realizes input controls;
Step S1022, ajax is realized according to the input controls, is obtained script and is performed request;
Step S1023, invoking server end judges whether script execution request configures dynamic script, obtains Judged result;The judged result includes configured and does not configure;
Step S1024, when the judged result is configured, according to the script type, calls and the script type The corresponding actuator of type performs the legal script, obtains script implementing result;The script implementing result includes return structure;
Step S1025, according to the return structure, the page data of the dynamic list is adjusted by javascript.
The embodiment of the present invention realizes an entrance for permission User Defined computing formula, it is allowed to user input difference pin The scripted code of this type, so when user fills in list, it is possible to call actuator corresponding with script type to perform pin This, then script operation result is backfilling into list, so as to neatly realize user's application high level control on dynamic list Demand.
The embodiment of the present invention is not limited the field in data structure, it is preferred that the field in the data structure is also Html controls mark and content for script can be included.
The embodiment of the present invention is not limited script type, it is preferred that the script type include Groovy, Python and Ruby.When script type is Groovy, the actuator called in step S1013 and step S1024 is Groovy actuators.
Specific embodiment two
As shown in Fig. 2 the embodiment of the invention provides a kind of high level control of dynamic list realizes device, including:
Script memory module 201 includes:
Setting unit 2011, the data structure for setting script storage;Field in data structure includes script type;
Input block 2012, for receiving user input to the script of dynamic list, as input script;
Verification unit 2013, for according to the script type, calling actuator corresponding with the script type to perform The input script, the legitimacy to the input script is verified, and obtains check results;It is legal that the check results include With it is illegal;
Storage unit 2014, for when the check results are legal, the input script being saved as into legal script;
Script execution module 202 includes:
Unit 2021 is write, for writing html, input controls is realized;
Request unit 2022, for realizing ajax according to the input controls, obtains script and performs request;
Judging unit 2023, sentences for invoking server end to whether script execution request configures dynamic script It is disconnected, obtain judged result;The judged result includes configured and does not configure;
Execution unit 2024, for when the judged result for it is configured when, according to the script type, call with it is described The corresponding actuator of script type performs the legal script, obtains script implementing result;The script implementing result includes returning Return structure;
Adjustment unit 2025, for according to the return structure, the page of the dynamic list being adjusted by javascript Face data.
The embodiment of the present invention is not limited the field in data structure, it is preferred that the field in the data structure is also Html controls mark and content for script can be included.
The embodiment of the present invention is not limited script type, it is preferred that the script type include Groovy, Python and Ruby.When script type is Groovy, the actuator called in step S1013 and step S1024 is Groovy actuators.
Specific embodiment three
As shown in figure 3, the embodiment of the invention provides a kind of high level control of dynamic list realizes system, including:
The high level control of any one of specific embodiment two dynamic list realizes device 301;
Server end 302, for being called by judging unit, is carried out to whether script execution request configures dynamic script Judge, obtain judged result and be sent to judging unit;
Actuator 303, for being called by verification unit, performs the input script, to the legitimacy of the input script Verified, obtain check results and be sent to verification unit;And called by execution unit, the legal script is performed, obtain Take script implementing result and be sent to execution unit.
Preferably, the embodiment of the present invention can also include memory 304, for storing described in the storage unit transmission Legal script.Advantage of this is that, it is easy to preserve legal script, prevent legal script from losing and cause unnecessary loss.
The embodiment of the present invention is not limited the field in data structure, it is preferred that the field in the data structure is also Html controls mark and content for script can be included.
The embodiment of the present invention is not limited script type, it is preferred that the script type include Groovy, Python and Ruby.When script type is Groovy, the actuator called in step S1013 and step S1024 is Groovy actuators.
It should be noted that in the case where not conflicting, the embodiment in the present invention and the feature in embodiment can phases Mutually combination.Although present invention has been a certain degree of description, it will be apparent that, do not departing from the bar of the spirit and scope of the present invention Under part, the appropriate change of each condition can be carried out.It is appreciated that the invention is not restricted to the embodiment, and be attributed to right and want The scope asked, its equivalent for including each factor.

Claims (10)

1. the high level control implementation method of a kind of dynamic list, it is characterised in that including:
Script storing step:
The data structure of script storage is set;Field in data structure includes script type;
User input to the script of dynamic list is received, as input script;
According to the script type, actuator corresponding with the script type is called to perform the input script, to described defeated The legitimacy for entering script is verified, and obtains check results;It is legal and illegal that the check results include;
When the check results are legal, the input script is saved as into legal script;
Script performs step:
Html is write, input controls are realized;
Ajax is realized according to the input controls, script is obtained and is performed request;
Invoking server end performs whether request configures dynamic script and judge to the script, obtains judged result;It is described Judged result includes configured and does not configure;
When the judged result is configured, according to the script type, actuator corresponding with the script type is called The legal script is performed, script implementing result is obtained;The script implementing result includes return structure;
According to the return structure, the page data of the dynamic list is adjusted by javascript.
2. the high level control implementation method of dynamic list according to claim 1, it is characterised in that in the data structure Field also include html controls mark and content for script.
3. the high level control implementation method of dynamic list according to claim 1 and 2, it is characterised in that the script type Type includes Groovy, Python and Ruby.
4. a kind of high level control of dynamic list realizes device, it is characterised in that including:
Script memory module includes:
Setting unit, the data structure for setting script storage;Field in data structure includes script type;
Input block, for receiving user input to the script of dynamic list, as input script;
Verification unit, for according to the script type, calling actuator corresponding with the script type to perform the input Script, the legitimacy to the input script is verified, and obtains check results;The check results include legal and do not conform to Method;
Storage unit, for when the check results are legal, the input script being saved as into legal script;
Script execution module includes:
Unit is write, for writing html, input controls is realized;
Request unit, for realizing ajax according to the input controls, obtains script and performs request;
Judging unit, judges whether script execution request configures dynamic script for invoking server end, obtains Judged result;The judged result includes configured and does not configure;
Execution unit, for when the judged result is configured, according to the script type, calling and the script type Corresponding actuator performs the legal script, obtains script implementing result;The script implementing result includes return structure;
Adjustment unit, for according to the return structure, the page data of the dynamic list being adjusted by javascript.
5. the high level control of dynamic list according to claim 4 realizes device, it is characterised in that in the data structure Field also include html controls mark and content for script.
6. the high level control of the dynamic list according to claim 4 or 5 realizes device, it is characterised in that the script type Type includes Groovy, Python and Ruby.
7. a kind of high level control of dynamic list realizes system, it is characterised in that including:
The high level control of the dynamic list described in claim any one of 4-6 realizes device;
Server end, for being called by judging unit, judges whether script execution request configures dynamic script, obtains Take judged result and be sent to judging unit;
Actuator, for being called by verification unit, performs the input script, and the legitimacy to the input script carries out school Test, obtain check results and be sent to verification unit;And called by execution unit, the legal script is performed, obtain script Implementing result is simultaneously sent to execution unit.
8. the high level control of dynamic list according to claim 7 realizes system, it is characterised in that also include:
Memory, for storing the described legal script that the storage unit sends.
9. the high level control of the dynamic list according to claim 7 or 8 realizes system, it is characterised in that the data knot Field in structure also includes html controls mark and content for script.
10. the high level control of the dynamic list according to claim 7 or 8 realizes system, it is characterised in that the script type Type includes Groovy, Python and Ruby.
CN201611191396.8A 2016-12-21 2016-12-21 Advanced control implementation method, device and system of dynamic form Active CN106843836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611191396.8A CN106843836B (en) 2016-12-21 2016-12-21 Advanced control implementation method, device and system of dynamic form

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611191396.8A CN106843836B (en) 2016-12-21 2016-12-21 Advanced control implementation method, device and system of dynamic form

Publications (2)

Publication Number Publication Date
CN106843836A true CN106843836A (en) 2017-06-13
CN106843836B CN106843836B (en) 2020-02-07

Family

ID=59135138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611191396.8A Active CN106843836B (en) 2016-12-21 2016-12-21 Advanced control implementation method, device and system of dynamic form

Country Status (1)

Country Link
CN (1) CN106843836B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107977243A (en) * 2017-11-27 2018-05-01 海尔优家智能科技(北京)有限公司 A kind of third party's interface call method and device
CN109375914A (en) * 2018-09-27 2019-02-22 中国气象科学研究院 Information remote exchange method and system
CN111897470A (en) * 2020-07-06 2020-11-06 上海泛微网络科技股份有限公司 Method and device for dynamically setting form calculation logic

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090210781A1 (en) * 2008-02-20 2009-08-20 Hagerott Steven G Web application code decoupling and user interaction performance
WO2013039593A2 (en) * 2011-09-15 2013-03-21 Citicorp Development Center, Inc. Methods and systems for dynamically generating and reusing dynamic web content
CN103377038A (en) * 2012-04-11 2013-10-30 怡丰联合(北京)科技有限责任公司 User-defined form description and form analysis method
CN104461519A (en) * 2014-11-23 2015-03-25 国云科技股份有限公司 Method for dynamically producing flow chart and controlling authority
CN105335153A (en) * 2015-10-12 2016-02-17 杭州古北电子科技有限公司 Dynamic script automatic-generating method
CN105373523A (en) * 2015-10-14 2016-03-02 浪潮软件集团有限公司 Workflow solution method based on user-defined form and Activiti
CN105573765A (en) * 2015-12-29 2016-05-11 武汉传神信息技术有限公司 Implementation method for dynamic form, client and server
CN106796525A (en) * 2015-02-23 2017-05-31 华为技术有限公司 On-demand loading dynamic script language codes are used with reducing internal memory

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090210781A1 (en) * 2008-02-20 2009-08-20 Hagerott Steven G Web application code decoupling and user interaction performance
WO2013039593A2 (en) * 2011-09-15 2013-03-21 Citicorp Development Center, Inc. Methods and systems for dynamically generating and reusing dynamic web content
CN103377038A (en) * 2012-04-11 2013-10-30 怡丰联合(北京)科技有限责任公司 User-defined form description and form analysis method
CN104461519A (en) * 2014-11-23 2015-03-25 国云科技股份有限公司 Method for dynamically producing flow chart and controlling authority
CN106796525A (en) * 2015-02-23 2017-05-31 华为技术有限公司 On-demand loading dynamic script language codes are used with reducing internal memory
CN105335153A (en) * 2015-10-12 2016-02-17 杭州古北电子科技有限公司 Dynamic script automatic-generating method
CN105373523A (en) * 2015-10-14 2016-03-02 浪潮软件集团有限公司 Workflow solution method based on user-defined form and Activiti
CN105573765A (en) * 2015-12-29 2016-05-11 武汉传神信息技术有限公司 Implementation method for dynamic form, client and server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107977243A (en) * 2017-11-27 2018-05-01 海尔优家智能科技(北京)有限公司 A kind of third party's interface call method and device
CN109375914A (en) * 2018-09-27 2019-02-22 中国气象科学研究院 Information remote exchange method and system
CN109375914B (en) * 2018-09-27 2021-04-30 中国气象科学研究院 Information remote interaction method and system
CN111897470A (en) * 2020-07-06 2020-11-06 上海泛微网络科技股份有限公司 Method and device for dynamically setting form calculation logic

Also Published As

Publication number Publication date
CN106843836B (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN109246089B (en) Role-based front-end and back-end separation architecture access control system and method
CN106843836A (en) The high level control implementation method of dynamic list, apparatus and system
JP2017511542A5 (en)
US20140298101A1 (en) Distributed pressure testing system and method
CN110784450A (en) Single sign-on method and device based on browser
CN108462760A (en) Electronic device, cluster access domain name automatic generation method and storage medium
CN106970978A (en) Data sharing method and device
CN108984174A (en) Cross-platform application creation method, device, server and storage medium
CN103823697B (en) Cross-platform implementation method, system and the plugin manager of application
CN107329849B (en) Data verification method and system based on Java system
CN104519050A (en) Login method and login system
CN102104607A (en) Method, device and system for controlling safety of service access
CN104394133A (en) Login method and login system
CN113990354B (en) Audio control method, device, equipment and storage medium based on Linux
JP6967074B2 (en) Protecting your web server from malicious client applications
CN107835181A (en) Right management method, device, medium and the electronic equipment of server cluster
US20170155740A1 (en) Method, Electronic Device and System for Acquiring Video Data
KR102112897B1 (en) Roaming internet-accessible application state across trusted and untrusted platforms
CN108600234A (en) A kind of auth method, device and mobile terminal
CN105975319A (en) Application program loading method and device
CN106203069B (en) A kind of hold-up interception method of dynamic link library file, device and terminal device
CN105045801A (en) Login avatar displaying method, apparatus and system
CN107943622B (en) Standby operation and maintenance method, device and system
CN103685259B (en) The method and its device of Account Logon
CN104008043B (en) Cross-terminal method of testing, end to be tested and test lead

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
GR01 Patent grant
GR01 Patent grant