Specific embodiment
Embodiments herein is described below in detail, the example of the embodiment is shown in the drawings, wherein identical from start to finish
Or similar label represents same or similar element or the element with same or like function.Retouch below with reference to accompanying drawing
The embodiment stated is exemplary, it is intended to for explaining the application, and it is not intended that the restriction to the application.
Below with reference to the accompanying drawings the generation method and device of the dynamic listing of the embodiment of the present application are described.
Fig. 1 is the flow chart of the generation method of the dynamic listing of the application one embodiment.
As shown in figure 1, the generation method of the dynamic listing includes:
S11, obtains dynamic listing configuration file.
Specifically, the dynamic listing configuration file that server is issued is received and preserves, and when needing to generate dynamic listing,
Client can be from local middle acquisition dynamic listing configuration file.
Wherein, dynamic listing configuration file includes the first field and at least one second fields, wherein, the first field record mark
Quasi- cell data model list, each the field record list page configuration information at least one second fields.
Wherein, list page configuration information can include but is not limited to the information such as list style, cell height, separator bar pattern.
In one embodiment of the application, the information in dynamic listing configuration file can be configured by various data forms.Example
Such as, XML (Extensible Markup Language, extensible markup language), JSON (JavaScript Object can be passed through
The form configuration dynamic listing configuration file such as Notation).
, wherein it is desired to explanation, JSON forms (JavaScript Object Notation) are a kind of data exchanges of lightweight
Form, it adopts the text formatting for being totally independent of language.Also, JSON forms have be easy to people read and write, while
The characteristics of being also easy to machine parsing and generate.
The efficiency of the information in order to improve parsing dynamic listing configuration file, it is preferable that dynamic listing configuration file is JSON
Form, i.e., configure dynamic listing configuration file using JSON forms.Now, with an array in dynamic listing configuration file
The field of type marks cell data model list to record, and it is high that different field record list styles, unit is respectively adopted
Each configuration information one field of correspondence of information, the i.e. list pages such as degree, separator bar pattern.
For example, using JSON forms configure dynamic listing configuration file, it is assumed that list page configuration information include list style,
Cell height and separator bar style information, now, can by field X preserve list style, field Y storage unit height,
Field Y preserves separator bar style information.
Again for example, dynamic listing configuration file is configured using JSON forms, it is assumed that standard block data model list includes
Three standard block data models, are represented respectively with standard block data model A, B, C.In order to record these three standard lists
Metadata schema, the form of the first field of dynamic listing configuration file is
{cells:[{name:A},{name:B},{name:C}]}。
S12, according to dynamic listing configuration file dynamic listing page model is generated,
Wherein, dynamic listing page model includes the standard block data model list generated according to the first field and according to the second word
The list page configuration information of Duan Shengcheng.
In one embodiment of the application, the detailed process of dynamic listing page model is generated according to dynamic listing configuration file,
As shown in Fig. 2 can include:
S121, the first field read in dynamic listing configuration file creates corresponding standard block data model list.
S122, reads the second field in dynamic listing configuration file, and generates corresponding list page configuration according to the second field
Information.
For example, the form of the first field of dynamic listing configuration file is { cells:[{name:A},{name:B},{name:C }] },
During content in the first field is read, corresponding standard block data model can be created according to name fields, A pair
The standard block data model answered is standard block data model A, and the corresponding standard block data models of B are standard block number
According to Model B, the corresponding standard block data models of C are standard block data model C, and according to the standard block for being obtained
Data model information constitutes standard block data model list, wherein, the corresponding code form of standard block data model list
It is as follows:ACellModel|BCellModel|CCellModel.ACellModel represents standard block data model A;
BCellModel represents standard block data model B;CCellModel represents standard block data model C.
S13, transfers corresponding many according to the standard block data model list of dynamic listing page model from standard block ATL
Individual standard block component, and corresponding multiple standard block components are combined to generate Assembly Listing, and according to dynamic column
The list page configuration information of table page model is rendered to generate dynamic listing to Assembly Listing.
For example it is assumed that standard block data model list includes three standard block data models, standard block number is used respectively
Represent according to model A, B, C.After standard block data model list is obtained, standard can be obtained from standard block ATL
The corresponding standard block component A of cell data model A (can represent standard block component A) with ACell, standard block data
The corresponding standard block component B of Model B (can represent standard block component B) with BCell, standard block data model C pair
The standard block component C (can represent standard block component C with CCell) for answering, the standard package of above-mentioned acquisition is combined
To generate Assembly Listing, the form of the Assembly Listing for being generated is:ACell | BCell | CCell, after Assembly Listing is generated, can
The standard block component in Assembly Listing is entered by list page configuration informations such as list style, cell height, separator bar patterns
Row render, to generate list page in dynamic listing.
, wherein it is desired to explanation, standard block ATL is pre-saved in the client, in standard block ATL
Various standard block components are saved, and saves the corresponding relation between standard block data model and standard block component.
In summary it can be seen, the embodiment is given birth to after dynamic listing page model is generated according to dynamic listing configuration file
Into after the specification of dynamic listing, corresponding multiple standard lists are transferred from standard block ATL according to dynamic listing page model
First component, and corresponding multiple standard block components are combined to generate Assembly Listing, and confidence is matched somebody with somebody according to list page
Breath is rendered to generate dynamic listing to Assembly Listing.Thus, dynamic listing is completed without the need for relying on business datum feature
Generate, facilitate the dynamic listing for being subsequently generated new business.
, wherein it is desired to explanation, by the dynamic listing mode of the embodiment various dynamic listings can be generated.
The generation method of the dynamic listing of the embodiment of the present application, obtains dynamic listing configuration file, and is configured according to dynamic listing
Dynamic listing page model of the file generated comprising the list of standard block data model and list page configuration information, and according to dynamic
Corresponding multiple standard block components are transferred in the standard block data model list of list page model from standard block ATL,
And corresponding multiple standard block components are combined to generate Assembly Listing, and according to the list page of dynamic listing page model
Configuration information is rendered to generate dynamic listing to Assembly Listing, thus, generate dynamic listing during, without the need for according to
Bad business datum feature can complete the generation of dynamic listing, flexible construction dynamic listing, improve and generate dynamic listing
Efficiency.
Fig. 3 is the flow chart of the generation method of the dynamic listing of the application another embodiment.
As shown in figure 3, the generation method of the dynamic listing includes:
S301, obtains dynamic listing configuration file.
Specifically, the dynamic listing configuration file that server is issued is received and preserves, and when needing to generate dynamic listing,
Client can be from local middle acquisition dynamic listing configuration file.
Wherein, dynamic listing configuration file includes the first field and at least one second fields, wherein, the first field record mark
Quasi- cell data model list, each the field record list page configuration information at least one second fields.
Wherein, list page configuration information can include but is not limited to the information such as list style, cell height, separator bar pattern.
In one embodiment of the application, the information in dynamic listing configuration file can be configured by various data forms.Example
Such as, XML (Extensible Markup Language, extensible markup language), JSON (JavaScript Object can be passed through
The form configuration dynamic listing configuration file such as Notation).
, wherein it is desired to explanation, JSON forms (JavaScript Object Notation) are a kind of data exchanges of lightweight
Form, it adopts the text formatting for being totally independent of language.Also, JSON forms have be easy to people read and write, while
The characteristics of being also easy to machine parsing and generate.
The efficiency of the information in order to improve parsing dynamic listing configuration file, it is preferable that dynamic listing configuration file is JSON
Form, i.e., configure dynamic listing configuration file using JSON forms.Now, one number of dynamic listing configuration file is configured
The field of set type marks cell data model list to record, and different field record list style, units are respectively adopted
Highly, each configuration information one field of correspondence of the information such as separator bar pattern, i.e. list page.
For example, using JSON forms configure dynamic listing configuration file, it is assumed that list page configuration information include list style,
Cell height and separator bar style information, now, can by field X preserve list style, field Y storage unit height,
Field Y preserves separator bar style information.
Again for example, dynamic listing configuration file is configured using JSON forms, it is assumed that standard block data model list includes
Three standard block data models, are represented respectively with standard block data model A, B, C.In order to record these three standard lists
Metadata schema, the form of the first field of dynamic listing configuration file is
{cells:[{name:A},{name:B},{name:C}]}。
S302, the first field read in dynamic listing configuration file creates corresponding standard block data model list.
S303, reads the second field in dynamic listing configuration file, and generates corresponding list page configuration according to the second field
Information.
For example, the form of the first field of dynamic listing configuration file is { cells:[{name:A},{name:B},{name:C }] },
During content in the first field is read, corresponding standard block data model can be created according to name fields, A pair
The standard block data model answered is standard block data model A, and the corresponding standard block data models of B are standard block number
According to Model B, the corresponding standard block data models of C are standard block data model C, and according to the standard block for being obtained
Data model information constitutes standard block data model list, wherein, the corresponding code form of standard block data model list
It is as follows:ACellModel|BCellModel|CCellModel.ACellModel represents standard block data model A;
BCellModel represents standard block data model B;CCellModel represents standard block data model C.
S304, transfers corresponding to the standard block data model in standard block data model list from standard block ATL
Multiple standard block components, and corresponding multiple standard block components are combined to generate Assembly Listing, and according to dynamic
The list page configuration information of state list page model is rendered to generate dynamic listing to Assembly Listing.
For example it is assumed that standard block data model list includes three standard block data models, standard block number is used respectively
Represent according to model A, B, C.After standard block data model list is obtained, standard can be obtained from standard block ATL
The corresponding standard block component A of cell data model A (can represent standard block component A) with ACell, standard block data
The corresponding standard block component B of Model B (can represent standard block component B) with BCell, standard block data model C pair
The standard block component C (can represent standard block component C with CCell) for answering, the standard package of above-mentioned acquisition is combined
To generate Assembly Listing, the form of the Assembly Listing for being generated is:ACell | BCell | CCell, after Assembly Listing is generated, can
The standard block component in Assembly Listing is entered by list page configuration informations such as list style, cell height, separator bar patterns
Row render, to generate list page in dynamic listing.
, wherein it is desired to explanation, standard block ATL is pre-saved in the client, in standard block ATL
Save the corresponding relation between standard block data model and standard block component.
In one embodiment of the application, after dynamic listing is generated, when needing to modify dynamic listing, for example,
Existing row is inserted or deleted in dynamic listing.At present, it is common practice to:Developer rebuilds new list
Page model simultaneously replaces old list page model, and is re-started according to new list page model and render, to generate new list
Page, the time that by the way modification dynamic listing is spent is more, and modification dynamic listing efficiency is low.
In order to improve the efficiency of modification dynamic listing, the embodiment stores standard block data model list using variable list,
In embodiments herein, the modification of dynamic listing can be completed by below step.
S305, receives edit instruction, wherein, edit instruction is instructed including standard block component edits.
S306, modifies, to change dynamic column according to the instruction of standard block component edits to standard block data model list
Table page model.
S307, according to amended dynamic listing page model the dynamic listing after modification is generated.
For example, a line is newly increased in dynamic listing, after receiving to the instruction of standard block component edits, can be according to editor
Instruction is modified to standard block data model list, you can the standard block recorded in the first field in configuration file
Edlin is entered in data model list, that is to say, that the first field is the field of an editable array type, and in modification
Afterwards, amended dynamic listing model can be generated according to amended standard block data model list, and according to modification
Dynamic listing model afterwards generates amended dynamic listing, i.e., edited in dynamic listing model, corresponding dynamic listing
A line is newly increased in page.
The generation method of the dynamic listing of the embodiment of the present application, generates according to dynamic listing configuration file and includes standard block data
The dynamic listing page model of model list and list page configuration information, and according to the standard block data mould of dynamic listing page model
Corresponding multiple standard block components are transferred in type list from standard block ATL, and by corresponding multiple standard block components
Be combined to generate Assembly Listing, according to the list page configuration information of dynamic listing page model Assembly Listing is rendered with
Dynamic listing is generated, and can be by modifying to the standard block array in standard block data model list, it is right to realize
The efficient modification of dynamic listing, improves the flexibility of dynamic listing, facilitates modification dynamic listing.
In order to realize above-described embodiment, the application also proposes a kind of generating means of dynamic listing.
Fig. 4 is the structural representation of the generating means of the dynamic listing of the application one embodiment.
As shown in figure 4, the generating means of the dynamic listing include acquisition module 100, generation module 200 and first processing module
300, wherein:
Specifically, acquisition module 100 is used to obtain dynamic listing configuration file.
Wherein, dynamic listing configuration file includes the first field and at least one second fields, wherein, the first field record mark
Quasi- cell data model list, each the field record list page configuration information at least one second fields.
Wherein, list page configuration information can include but is not limited to the information such as list style, cell height, separator bar pattern.
In one embodiment of the application, the information in dynamic listing configuration file can be configured by various data forms.Example
Such as, XML (Extensible Markup Language, extensible markup language), JSON (JavaScript Object can be passed through
The form configuration dynamic listing configuration file such as Notation).
, wherein it is desired to explanation, JSON forms (JavaScript Object Notation) are a kind of data exchanges of lightweight
Form, it adopts the text formatting for being totally independent of language.Also, JSON forms have be easy to people read and write, while
The characteristics of being also easy to machine parsing and generate.
The efficiency of the information in order to improve parsing dynamic listing configuration file, it is preferable that dynamic listing configuration file is JSON
Form, i.e., configure dynamic listing configuration file using JSON forms.Now, dynamic listing configuration file is with an array class
The field of type come record mark cell data model list, and be respectively adopted different field record list styles, cell height,
Each configuration information one field of correspondence of the information such as separator bar pattern, i.e. list page.
For example, using JSON forms configure dynamic listing configuration file, it is assumed that list page configuration information include list style,
Cell height and separator bar style information, now, can by field X preserve list style, field Y storage unit height,
Field Y preserves separator bar style information.
Again for example, dynamic listing configuration file is configured using JSON forms, it is assumed that standard block data model list includes
Three standard block data models, are represented respectively with standard block data model A, B, C.In order to record these three standard lists
Metadata schema, the form of the first field of dynamic listing configuration file is
{cells:[{name:A},{name:B},{name:C}]}。
Generation module 200 is used to generate dynamic listing page model according to dynamic listing configuration file.
Wherein, dynamic listing page model includes the standard block data model list generated according to the first field and according to the second word
The list page configuration information of Duan Shengcheng.
Specifically, generation module 200 specifically for:The first field read in dynamic listing configuration file creates corresponding mark
Quasi- cell data model list, and the second field in dynamic listing configuration file is read, and it is right according to the generation of the second field
The list page configuration information answered.
First processing module 300 is used for according to the standard block data model list of dynamic listing page model from standard block template
Corresponding multiple standard block components are transferred in storehouse, and corresponding multiple standard block components are combined to generate composite column
Table, and according to the list page configuration information of dynamic listing page model Assembly Listing is rendered to generate dynamic listing.
, wherein it is desired to explanation, standard block ATL is pre-saved in the client, in standard block ATL
Various standard block components are saved, and saves the corresponding relation between standard block data model and standard block component.
After first processing module 300 generates dynamic listing, when needing to modify dynamic listing, for example, to dynamic
Existing row is inserted or deleted in list.At present, it is common practice to:Developer rebuilds new list page model
And old list page model is replaced, and re-started according to new list page model and render, to generate new list page, lead to
Cross that aforesaid way modification time for being spent of dynamic listing is more, modification dynamic listing efficiency is low.
In order to improve the efficiency of modification dynamic listing, the embodiment stores standard block data model list using variable list,
Said apparatus can also include Second processing module 400, and the Second processing module 400 is used to receive edit instruction, and according to
The instruction of standard block component edits is modified to standard block data model list, to change dynamic listing page model.
Wherein, edit instruction is instructed including standard block component edits.
For example, a line is newly increased in dynamic listing, Second processing module 400 refers to standard block component edits receiving
After order, standard block data model list can be modified according to edit instruction, you can the first field in configuration file
Edlin is entered in the standard block data model list of middle record, that is to say, that the first field is an editable array type
Field, and after modification, amended dynamic listing mould can be generated according to amended standard block data model list
Type, and amended dynamic listing is generated according to amended dynamic listing model, i.e., it is edited in dynamic listing model,
A line is newly increased in corresponding dynamic listing page.
In addition, in order to generate amended dynamic listing, said apparatus can also include the 3rd processing module 500, this
Three processing modules 500 are used to generate the dynamic listing after modification according to dynamic listing page model.
, wherein it is desired to illustrate, the explanation of the above-mentioned generation method embodiment to dynamic listing is also applied for the enforcement
The generating means of the dynamic listing of example, here is omitted.
The generating means of the dynamic listing of the embodiment of the present application, by acquisition module dynamic listing configuration file is obtained, and generates mould
Root tuber generates the dynamic listing page comprising the list of standard block data model and list page configuration information according to dynamic listing configuration file
Model, and first processing module according to the standard block data model list of dynamic listing page model from standard block ATL
In transfer corresponding multiple standard block components, and corresponding multiple standard block components are combined to generate Assembly Listing,
Assembly Listing is rendered according to the list page configuration information of dynamic listing page model generate dynamic listing, and can be passed through
Standard block array in standard block data model list is modified, is realized to the efficient modification of dynamic listing, carried
The high flexibility of dynamic listing, facilitates modification dynamic listing.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specific example ",
Or the description of " some examples " etc. means to combine specific features, structure, material or feature bag that the embodiment or example are described
In being contained at least one embodiment of the application or example.In this manual, to the schematic representation of above-mentioned term necessarily
It is directed to identical embodiment or example.And, the specific features of description, structure, material or feature can be arbitrary
Combine in an appropriate manner in individual or multiple embodiments or example.Additionally, in the case of not conflicting, the skill of this area
Art personnel can be combined the feature of the different embodiments or example described in this specification and different embodiments or example
And combination.
Additionally, term " first ", " second " be only used for describe purpose, and it is not intended that indicate or imply relative importance or
The implicit quantity for indicating indicated technical characteristic.Thus, " first " is defined, the feature of " second " can be expressed or hidden
Include at least one this feature containing ground.In the description of the present application, " multiple " are meant that at least two, such as two, three
It is individual etc., unless otherwise expressly limited specifically.
In flow chart or here any process described otherwise above or method description are construed as, expression includes one
Or more module, fragment or parts for being used for the code of executable instruction the step of realize specific logical function or process,
And the scope of the preferred embodiment of the application includes other realization, wherein order that is shown or discussing can not be pressed,
Including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be by the application's
Embodiment person of ordinary skill in the field understood.
In flow charts expression or here logic described otherwise above and/or step, for example, are considered for reality
The order list of the executable instruction of existing logic function, in may be embodied in any computer-readable medium, for instruction
Execution system, device or equipment (as computer based system, the system including processor or other can perform from instruction
The system of system, device or equipment instruction fetch and execute instruction) use, or with reference to these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicating, propagating
Or transmission procedure is used for instruction execution system, device or equipment or with reference to these instruction execution systems, device or equipment
Device.The more specifically example (non-exhaustive list) of computer-readable medium includes following:With one or more cloth
The electrical connection section (electronic installation) of line, portable computer diskette box (magnetic device), random access memory (RAM), only
Reading memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and
Portable optic disk read-only storage (CDROM).In addition, computer-readable medium can even is that can thereon print described
The paper of program or other suitable media, because for example by carrying out optical scanner to paper or other media can then carry out
Editor, interpretation are processed to other suitable methods electronically obtain described program if necessary, are then stored
In computer storage.
It should be appreciated that each several part of the application can be realized with hardware, software, firmware or combinations thereof.In above-mentioned reality
In applying mode, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage or
Firmware is realizing.For example, if realized with hardware, and in another embodiment, can be with well known in the art
Any one of row technology or their combination are realizing:With for realizing the logic gates of logic function to data-signal
Discrete logic, the special IC with suitable combinational logic gate circuit, programmable gate array (PGA) is existing
Field programmable gate array (FPGA) etc..
Those skilled in the art be appreciated that to realize all or part of step that above-described embodiment method is carried is can
Completed with the hardware that correlation is instructed by program, described program can be stored in a kind of computer-readable recording medium,
The program upon execution, including one or a combination set of the step of embodiment of the method.
Additionally, each functional unit in the application each embodiment can be integrated in a processing module, or each
Individual unit is individually physically present, it is also possible to which two or more units are integrated in a module.Above-mentioned integrated module was both
Can be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.If the integrated module with
The form of software function module is realized and as independent production marketing or when using, it is also possible to be stored in a computer-readable
In taking storage medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although having been shown and described above
Embodiments herein, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the restriction to the application,
One of ordinary skill in the art can be changed within the scope of application to above-described embodiment, change, replacing and modification.