CN104391725B - Page display method and page presentation device - Google Patents

Page display method and page presentation device Download PDF

Info

Publication number
CN104391725B
CN104391725B CN201410743550.2A CN201410743550A CN104391725B CN 104391725 B CN104391725 B CN 104391725B CN 201410743550 A CN201410743550 A CN 201410743550A CN 104391725 B CN104391725 B CN 104391725B
Authority
CN
China
Prior art keywords
metadata
latest edition
physical template
terminal
page
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
CN201410743550.2A
Other languages
Chinese (zh)
Other versions
CN104391725A (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.)
CHANJET INFORMATION TECHNOLOGY Co Ltd
Original Assignee
CHANJET INFORMATION TECHNOLOGY Co 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 CHANJET INFORMATION TECHNOLOGY Co Ltd filed Critical CHANJET INFORMATION TECHNOLOGY Co Ltd
Priority to CN201410743550.2A priority Critical patent/CN104391725B/en
Publication of CN104391725A publication Critical patent/CN104391725A/en
Application granted granted Critical
Publication of CN104391725B publication Critical patent/CN104391725B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention proposes a kind of page display method, applied to terminal, including:When the application program for detecting terminal is activated, metadata updates request is sent to server, to obtain the metadata of latest edition;When detecting that the entity into application program shows interface, asked to server sending entity template renewal, to obtain the physical template of latest edition;Entities field in the Pages entity data of traversal applications program, and page layout file is generated according to the metadata of latest edition and the physical template of latest edition;According to page layout file and target element generation full page layout, and it is laid out by terminal display full page.Correspondingly, present invention also offers a kind of page presentation device.Pass through technical scheme so that client can reduce client exploitation maintenance cost so that client iterative development is more efficient with the modification of self-adaptation entity attribute, the compatibility of the client release of reinforcement.

Description

Page display method and page presentation device
Technical field
The present invention relates to page presentation technical field, in particular to a kind of page display method and a kind of page exhibition Showing device.
Background technology
In CRM (customer relation management), the software product such as ERP (Enterprise Resources Plan), as client, contact person, order Such entity generally comprises many fields, can be met unavoidably during the continuous upgrading of product and the enriching constantly of function A mode field is added to thing as modification entities field, such as to client, a prompting word is added to logging Section etc..Same displaying of these entities fields on client UI is also not quite similar.For example the address field of client entity can be with Can also directly be shown with text to show with special address components, the Birth field of contact person's entity can with text come Displaying can also be shown with special date component.If in product iteration escalation process, each entity displaying field has Change and be required for changing client UI layout codes then leading portion is safeguarded and can become suitable cumbersome.
The defects of above-mentioned technical proposal, is:
1st, client can only issue redaction again to realize the displaying of entity UI fields modification by changing formula, not accomplish To the compatibility of early version.
2nd, the modification under emergency case can not be tackled, wants to change entity again or need to specific after client is issued Entity under domain is not accomplished when adding unified attribute under currently existing scheme.
Therefore, can client UI displaying accomplish that the change of self-adaptation entity turns into a urgent problem to be solved.
The content of the invention
The present invention is based on above mentioned problem, it is proposed that a kind of new technical scheme so that client can be adaptively real The modification of body attribute, strengthen the compatibility of client release, reduce client exploitation maintenance cost so that client iteration is opened Hair is more efficient.
In view of this, an aspect of of the present present invention proposes a kind of page display method, applied to terminal, including:Work as detection When being activated to the application program of terminal, metadata updates request is sent to server, to obtain the metadata of latest edition;When When detecting into the entity displaying interface of the application program, asked to the server sending entity template renewal, to obtain Take the physical template of latest edition;Travel through the entities field in the Pages entity data of the application program, and according to it is described most The physical template of the metadata of redaction and the latest edition generates page layout file;According to the page layout file and Target element generation full page layout, and be laid out by full page described in the terminal display.
Specifically, metadata is the file for describing entity and entities field, and the business that it describes entities field is patrolled Collect constraint and component exhibiting type, style.For example it is text class that the metadata of the name field of client entity, which has customer name, Type, 255 characters of maximum length, it is impossible to for the description such as sky.These descriptions are eventually applied to the component exhibiting of the entities field Above, as text type will automatically select text component, the component has length and non-NULL verification etc..
Physical template is for describing physical layout information, and it determines the layout of physical page, physical page needs Show which field, the order of field displaying.
The metadata and physical template of current latest edition are stored in service end, client (terminal) meeting when starting APP The request of metadata updates is initiated to service end, newest metadata is updated and parses metadata to client, client with dictionary Form be loaded into internal memory for search and persistence meta data file to local for opening and using next time.Equally work as and enter reality Client initiates the request of physical template renewal during the body page, updates newest physical template to client and persistence.Then Page data entities field is traveled through, if including the field in physical template dictionary, the entity word is obtained from metadata dictionary The metadata of section, and in the topology file that the write-in of the data, template, metadata of the entities field is generated temporarily, when having traveled through Also complete topology file is just generated after page data entities field.Found often from target element finally by topology file Simultaneously assignment data and layout attributes are laid out assembly initialization corresponding to individual field to generate full page.
So, when needing to add displaying field to entity, server end only needs to add correspondent entity word in metadata The description of section, then adds the field description in physical template.Client get new metadata and physical template it The new page after entities field can be just added according to above-mentioned rule generation afterwards.So that client can be adaptively real The modification of body attribute, the compatibility of the client release of reinforcement, reduce client exploitation maintenance cost so that client iteration is opened Hair is more efficient.
In the above-mentioned technical solutions, it is preferable that the metadata in the terminal is included in the metadata updates request Current version number, for metadata of the server in the current version number of the metadata and the server Latest edition number determines the need for sending the metadata of latest edition to the terminal, when the current version number of the metadata When identical with the latest edition number of the metadata, the server determination need not send the metadata of the latest edition extremely The terminal, and the latest edition number is sent to the terminal, when current version number and the metadata of the metadata Latest edition number difference when, the server sends the metadata of the latest edition and the latest edition number of the metadata To the terminal;And the current version number of the physical template in the terminal is included in the physical template request, for institute The latest edition number for stating physical template of the server in the current version number of the physical template and the server determines The physical template for whether needing to send latest edition is to the terminal, when current version and the entity mould of the physical template When the latest edition of plate is identical, the server determines to send the physical template of the latest edition to the terminal, And the latest edition number of the physical template is sent to the terminal, when current version number and the entity of the physical template During the latest edition number difference of template, the server sends physical template the and described physical template of the latest edition Latest edition number is to the terminal.
In the technical scheme, client asks metadata to take version number's (identification metadata variation every time Symbol, such as timestamp), 0 is passed for the first time.Service end can check whether metadata variation according to the version number of upload, if Have to change and return to new metadata and version number, new version number is returned if not changing.Client stores metadata and version Number for use.Likewise, each request entity template of client can take version number's (symbol that a mark physical template changes Number, such as timestamp), 0 is passed for the first time.Service end can check whether physical template has variation according to the version number of upload, if Have to change and return to new physical template and version number, new version number is returned if not changing.Client storage entity template and Version number is for using.
In the above-mentioned technical solutions, it is preferable that the entity word in the Pages entity data of the traversal application program Section, and page layout file, specific bag are generated according to the metadata of the latest edition and the physical template of the latest edition Include:The entities field in the Pages entity data of the application program is traveled through, when the physical template of the latest edition When the entities field is included in sets of fields, then the entities field is obtained from the dictionary of the metadata of the latest edition Target metadata, the page layout text is generated with the physical template according to corresponding to the target metadata and the entities field Part.
In the technical scheme, the field in Pages entity data is traveled through, if physical template sets of fields includes the entity word Section, illustrates to need to show, then obtains the metadata of the entities field from metadata dictionary, and data the entities field, In the topology file that template, metadata write-in generate.
In the above-mentioned technical solutions, it is preferable that described that whole page is generated according to the page layout file and target element Face is laid out, and is specifically included:Group corresponding to each entities field is found from the target element by the page layout file Part, initialization component and valuation component layout attributes and numerical attribute, it is laid out with generating the full page.
In the technical scheme, each entities field pair is found from the target element by the page layout file The assembly initialization answered, and assignment data and layout attributes, it is laid out with generating the full page, so as to which terminal can be to whole Page layout is shown.
In the above-mentioned technical solutions, it is preferable that also include:The server according to the newly-increased, modification received, delete, To hide and/or replace order, metadata and physical template to storage are increased newly, are changed, are deleted, hidden and/or replaced, with Obtain the metadata of the latest edition and the physical template of the latest edition.
In the technical scheme, when needing to add displaying field to entity, it is only necessary to added in server end metadata The description of correspondent entity field, the field description is then added in physical template.Client get new metadata and The new page after entities field can be just added after physical template according to above-mentioned rule generation.
According to another aspect of the present invention, a kind of page presentation device is additionally provided, for terminal, including:First sends Unit, when the application program for detecting terminal is activated, metadata updates request is sent to server, to obtain latest edition Metadata;Second transmitting element, when detecting that the entity into the application program shows interface, sent out to the server Physical template renewal request is sent, to obtain the physical template of latest edition;Generation unit, the page for traveling through the application program are real Entities field in volume data, and the page is generated according to the metadata of the latest edition and the physical template of the latest edition Topology file;Display unit, according to the page layout file and target element generation full page layout, and pass through the end End shows the full page layout.
Specifically, metadata is the file for describing entity and entities field, and the business that it describes entities field is patrolled Collect constraint and component exhibiting type, style.For example it is text class that the metadata of the name field of client entity, which has customer name, Type, 255 characters of maximum length, it is impossible to for the description such as sky.These descriptions are eventually applied to the component exhibiting of the entities field Above, as text type will automatically select text component, the component has length and non-NULL verification etc..
Physical template is for describing physical layout information, and it determines the layout of physical page, physical page needs Show which field, the order of field displaying.
The metadata and physical template of current latest edition are stored in service end, client (terminal) meeting when starting APP The request of metadata updates is initiated to service end, newest metadata is updated and parses metadata to client, client with dictionary Form be loaded into internal memory for search and persistence meta data file to local for opening and using next time.Equally work as and enter Client initiates the request of physical template renewal during physical page, updates newest physical template to client and persistence.So Page data entities field is traveled through afterwards, if including the field in physical template dictionary, the entity is obtained from metadata dictionary The metadata of field, and in the topology file that data, template, the metadata write-in of the entities field are generated temporarily, work as traversal Complete topology file is also just generated after complete page data entities field.Found finally by topology file from target element Simultaneously assignment data and layout attributes are laid out assembly initialization corresponding to each field to generate full page.
So, when needing to add displaying field to entity, server end only needs to add correspondent entity word in metadata The description of section, then adds the field description in physical template.Client get new metadata and physical template it The new page after entities field can be just added according to above-mentioned rule generation afterwards.So that client can be adaptively real The modification of body attribute, the compatibility of the client release of reinforcement, reduce client exploitation maintenance cost so that client iteration is opened Hair is more efficient.
In the above-mentioned technical solutions, it is preferable that the generation unit is specifically used for:The page for traveling through the application program is real The entities field in volume data, when including the entities field in the sets of fields of the physical template of the latest edition, The target metadata of the entities field is then obtained from the dictionary of the metadata of the latest edition, with according to the target element Physical template corresponding to data and the entities field generates the page layout file.
In the technical scheme, the field in Pages entity data is traveled through, if physical template sets of fields includes the entity word Section, illustrates to need to show, then obtains the metadata of the entities field from metadata dictionary, and data the entities field, In the topology file that template, metadata write-in generate.
In the above-mentioned technical solutions, it is preferable that the display unit is specifically used for:By the page layout file from institute State and assembly initialization corresponding to each entities field is found in target element, and assignment data and layout attributes, with described in generation Full page is laid out.
In the technical scheme, each entities field pair is found from the target element by the page layout file The component answered, initialization component and valuation component layout attributes and numerical attribute, it is laid out with generating the full page, so as to eventually End can be laid out to full page and be shown.
In accordance with a further aspect of the present invention, a kind of page presentation device is additionally provided, for server, including:Receive single Member, the metadata updates request and physical template renewal request that receiving terminal is sent, wherein, wrapped in the metadata updates request Current version number containing the metadata in the terminal, the physical template in the terminal is included in the physical template request Current version number;First determining unit, the metadata in the current version number of the metadata and the server is most New version number determines the need for sending the metadata of latest edition to the terminal;First processing units, when the metadata Current version number it is identical with the latest edition number of the metadata when, the server determines that the latest edition need not be sent This metadata sends the latest edition number to the terminal to the terminal, when the current version number of the metadata During with the latest edition number difference of the metadata, the server sends the metadata of the latest edition and the metadata Latest edition number to the terminal;And second determining unit, according to the current version number of the physical template and the clothes The latest edition number of physical template in business device determines the need for sending the physical template of latest edition to the terminal, and second Processing unit, when the current version of the physical template is identical with the latest edition of the physical template, the server is true Surely the physical template of the latest edition need not be sent to the terminal, and send the latest edition number of the physical template extremely The terminal, when the current version number and the latest edition number difference of the physical template of the physical template, the service Device sends the latest edition number of physical template the and described physical template of the latest edition to the terminal.
In the technical scheme, client asks metadata to take version number's (identification metadata variation every time Symbol, such as timestamp), 0 is passed for the first time.Service end can check whether metadata variation according to the version number of upload, if Have to change and return to new metadata and version number, new version number is returned if not changing.Client stores metadata and version Number for use.Likewise, each request entity template of client can take version number's (symbol that a mark physical template changes Number, such as timestamp), 0 is passed for the first time.Service end can check whether physical template has variation according to the version number of upload, if Have to change and return to new physical template and version number, new version number is returned if not changing.Client storage entity template and Version number is for using.
In the above-mentioned technical solutions, it is preferable that also include:Edit cell, according to the newly-increased, modification received, delete, hidden To hide and/or replace order, metadata and physical template to storage are increased newly, are changed, are deleted, hidden and/or replaced, with To the metadata of the latest edition and the physical template of the latest edition.
In the technical scheme, when needing to add displaying field to entity, it is only necessary to added in server end metadata The description of correspondent entity field, the field description is then added in physical template.Client get new metadata and The new page after entities field can be just added after physical template according to above-mentioned rule generation.
Pass through above technical scheme so that client can be with the modification of self-adaptation entity attribute, the client release of reinforcement Compatibility, reduce client exploitation maintenance cost so that client iterative development is more efficient.
Brief description of the drawings
Fig. 1 shows the flow chart of page display method according to an embodiment of the invention;
Fig. 2 shows the flow chart of more new metadata according to an embodiment of the invention;
Fig. 3 shows the flow chart of renewal solid data according to an embodiment of the invention;
Fig. 4 shows the flow chart of generation topology file according to an embodiment of the invention;
Fig. 5 shows the block diagram of page presentation device according to an embodiment of the invention;
Fig. 6 shows the block diagram of page presentation device according to another embodiment of the invention.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting, the implementation of the application Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also To be different from other modes described here using other to implement, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Fig. 1 shows the flow chart of page display method according to an embodiment of the invention.
As shown in figure 1, page display method according to an embodiment of the invention, applied to terminal, including:Step 102, when When detecting that the application program of terminal is activated, metadata updates request is sent to server, to obtain first number of latest edition According to;Step 104, when detecting that the entity into the application program shows interface, to the server sending entity template Renewal request, to obtain the physical template of latest edition;Step 106, in the Pages entity data for traveling through the application program Entities field, and page layout file is generated according to the metadata of the latest edition and the physical template of the latest edition; Step 108, according to the page layout file and target element generation full page layout, and by described in the terminal display Full page is laid out.
Specifically, metadata is the file for describing entity and entities field, and the business that it describes entities field is patrolled Collect constraint and component exhibiting type, style.For example it is text class that the metadata of the name field of client entity, which has customer name, Type, 255 characters of maximum length, it is impossible to for the description such as sky.These descriptions are eventually applied to the component exhibiting of the entities field Above, as text type will automatically select text component, the component has length and non-NULL verification etc..
Physical template is for describing physical layout information, and it determines the layout of physical page, physical page needs Show which field, the order of field displaying.
The metadata and physical template of current latest edition are stored in service end, client (terminal) meeting when starting APP The request of metadata updates is initiated to service end, newest metadata is updated and parses metadata to client, client with dictionary Form be loaded into internal memory for search and persistence meta data file to local for opening and using next time.Equally work as and enter reality Client initiates the request of physical template renewal during the body page, updates newest physical template to client and persistence.Then Page data entities field is traveled through, if including the field in physical template dictionary, the entity word is obtained from metadata dictionary The metadata of section, and in the topology file that the write-in of the data, template, metadata of the entities field is generated temporarily, when having traveled through Also complete topology file is just generated after page data entities field.Found often from target element finally by topology file Simultaneously assignment data and layout attributes are laid out assembly initialization corresponding to individual field to generate full page.
So, when needing to add displaying field to entity, server end only needs to add correspondent entity word in metadata The description of section, then adds the field description in physical template.Client get new metadata and physical template it The new page after entities field can be just added according to above-mentioned rule generation afterwards.So that client can be adaptively real The modification of body attribute, the compatibility of the client release of reinforcement, reduce client exploitation maintenance cost so that client iteration is opened Hair is more efficient.
In the above-mentioned technical solutions, it is preferable that the metadata in the terminal is included in the metadata updates request Current version number, for metadata of the server in the current version number of the metadata and the server most New version number determines the need for sending the metadata of latest edition to the terminal, when the metadata current version number with When the latest edition number of the metadata is identical, the server determines to send the metadata of the latest edition to institute Terminal is stated, and sends the latest edition number to the terminal, when current version number and the metadata of the metadata During latest edition number difference, the metadata of the server transmission latest edition and the latest edition number of the metadata are extremely The terminal;And the current version number of the physical template in the terminal is included in the physical template request, for described The latest edition number of physical template of the server in the current version number of the physical template and the server determines It is no to need to send the physical template of latest edition to the terminal, when current version and the physical template of the physical template Latest edition it is identical when, the physical template that the server determines that the latest edition need not be sent to the terminal, and The latest edition number of the physical template is sent to the terminal, when current version number and the entity mould of the physical template During the latest edition number difference of plate, the server sends physical template the and described physical template of the latest edition most New version number is to the terminal.
In the technical scheme, client asks metadata to take version number's (identification metadata variation every time Symbol, such as timestamp), 0 is passed for the first time.Service end can check whether metadata variation according to the version number of upload, if Have to change and return to new metadata and version number, new version number is returned if not changing.Client stores metadata and version Number for use.Likewise, each request entity template of client can take version number's (symbol that a mark physical template changes Number, such as timestamp), 0 is passed for the first time.Service end can check whether physical template has variation according to the version number of upload, if Have to change and return to new physical template and version number, new version number is returned if not changing.Client storage entity template and Version number is for using.
In the above-mentioned technical solutions, it is preferable that the entity word in the Pages entity data of the traversal application program Section, and page layout file, specific bag are generated according to the metadata of the latest edition and the physical template of the latest edition Include:The entities field in the Pages entity data of the application program is traveled through, when the physical template of the latest edition When the entities field is included in sets of fields, then the entities field is obtained from the dictionary of the metadata of the latest edition Target metadata, the page layout text is generated with the physical template according to corresponding to the target metadata and the entities field Part.
In the technical scheme, the field in Pages entity data is traveled through, if physical template sets of fields includes the entity word Section, illustrates to need to show, then obtains the metadata of the entities field from metadata dictionary, and data the entities field, In the topology file that template, metadata write-in generate.
In the above-mentioned technical solutions, it is preferable that described that whole page is generated according to the page layout file and target element Face is laid out, and is specifically included:Group corresponding to each entities field is found from the target element by the page layout file Part, initialization component and valuation component layout attributes and numerical attribute, it is laid out with generating the full page.
In the technical scheme, each entities field pair is found from the target element by the page layout file The assembly initialization answered, and assignment data and layout attributes, it is laid out with generating the full page, so as to which terminal can be to whole Page layout is shown.
In the above-mentioned technical solutions, it is preferable that also include:The server according to the newly-increased, modification received, delete, To hide and/or replace order, metadata and physical template to storage are increased newly, are changed, are deleted, hidden and/or replaced, with Obtain the metadata of the latest edition and the physical template of the latest edition.
In the technical scheme, when needing to add displaying field to entity, it is only necessary to added in server end metadata The description of correspondent entity field, the field description is then added in physical template.Client get new metadata and The new page after entities field can be just added after physical template according to above-mentioned rule generation.
Fig. 2 shows the flow chart of more new metadata according to an embodiment of the invention.
As shown in Fig. 2 the flow of more new metadata according to an embodiment of the invention includes:
Step 202, application APP starts.
Step 204, metadata is determined whether, is no in judged result into step 206 when judged result is to be When, into step 208.
Step 206, according to the version updating metadata of metadata.
Step 208, synchronization request metadata.
Step 210, into application APP.
Fig. 3 shows the flow chart of renewal solid data according to an embodiment of the invention.
As shown in figure 3, the flow of renewal solid data according to an embodiment of the invention includes:
Step 302, interface is shown into entity.
Step 304, physical template is determined whether, when judged result is to be, into step 306, is in judged result When no, into step 308.
Step 306, according to the physical template of the version asynchronous refresh page of physical template.
Step 308, synchronization request physical template.
Step 310, loading page is started.
Fig. 4 shows the flow chart of generation topology file according to an embodiment of the invention.
As shown in figure 4, the flow of generation topology file according to an embodiment of the invention includes:
Step 402, the field index i of Pages entity is read.
Step 404, judge whether present field i is less than entities field number, when judged result is to be, into step 406, when judged result is no, into step 416.
Step 406, ID and data corresponding to i-th of field are obtained.
Step 408, judge to whether there is the ID in physical template, when judged result is to be, into step 410, sentencing Disconnected result enters step 414 when being no.
Step 410, the metadata description of Field ID is read from metadata.
Step 412, write data in topology file.
Step 414, next attribute is taken.
Step 416, full page is generated by topology file loaded targets component to be laid out.
Fig. 5 shows the block diagram of page presentation device according to an embodiment of the invention.
As shown in figure 5, page presentation device 500 according to an embodiment of the invention, for terminal, including:First Transmitting element 502, when the application program for detecting terminal is activated, metadata updates request is sent to server, to obtain The metadata of latest edition;Second transmitting element 504, when detecting that the entity into the application program shows interface, to The server sending entity template renewal request, to obtain the physical template of latest edition;Generation unit 506, described in traversal Entities field in the Pages entity data of application program, and the metadata according to the latest edition and the latest edition Physical template generation page layout file;Display unit 508, generated according to the page layout file and target element whole Page layout, and be laid out by full page described in the terminal display.
Specifically, metadata is the file for describing entity and entities field, and the business that it describes entities field is patrolled Collect constraint and component exhibiting type, style.For example it is text class that the metadata of the name field of client entity, which has customer name, Type, 255 characters of maximum length, it is impossible to for the description such as sky.These descriptions are eventually applied to the component exhibiting of the entities field Above, as text type will automatically select text component, the component has length and non-NULL verification etc..
Physical template is for describing physical layout information, and it determines the layout of physical page, physical page needs Show which field, the order of field displaying.
The metadata and physical template of current latest edition are stored in service end, client (terminal) meeting when starting APP The request of metadata updates is initiated to service end, newest metadata is updated and parses metadata to client, client with dictionary Form be loaded into internal memory for search and persistence meta data file to local for opening and using next time.Equally work as and enter reality Client initiates the request of physical template renewal during the body page, updates newest physical template to client and persistence.Then Page data entities field is traveled through, if including the field in physical template dictionary, the entity word is obtained from metadata dictionary The metadata of section, and in the topology file that the write-in of the data, template, metadata of the entities field is generated temporarily, when having traveled through Also complete topology file is just generated after page data entities field.Found often from target element finally by topology file Simultaneously assignment data and layout attributes are laid out assembly initialization corresponding to individual field to generate full page.
So, when needing to add displaying field to entity, server end only needs to add correspondent entity word in metadata The description of section, then adds the field description in physical template.Client get new metadata and physical template it The new page after entities field can be just added according to above-mentioned rule generation afterwards.So that client can be adaptively real The modification of body attribute, the compatibility of the client release of reinforcement, reduce client exploitation maintenance cost so that client iteration is opened Hair is more efficient.
In the above-mentioned technical solutions, it is preferable that the generation unit 506 is specifically used for:Travel through the page of the application program The entities field in face entity data, when including the entities field in the sets of fields of the physical template of the latest edition When, then the target metadata of the entities field is obtained from the dictionary of the metadata of the latest edition, with according to the mesh Mark physical template corresponding to metadata and the entities field and generate the page layout file.
In the technical scheme, the field in Pages entity data is traveled through, if physical template dictionary includes the entity word Section, illustrates to need to show, then obtains the metadata of the entities field from metadata dictionary, and data the entities field, In the topology file that template, metadata write-in generate.
In the above-mentioned technical solutions, it is preferable that the display unit 508 is specifically used for:Pass through the page layout file Assembly initialization corresponding to each entities field, and assignment data and layout attributes are found from the target element, with generation The full page layout.
In the technical scheme, each entities field pair is found from the target element by the page layout file The assembly initialization answered, and assignment data and layout attributes, it is laid out with generating the full page, so as to which terminal can be to whole Page layout is shown.
Fig. 6 shows the block diagram of page presentation device according to another embodiment of the invention.
As shown in fig. 6, page presentation device 600 according to another embodiment of the invention, for server, including: Receiving unit 602, the metadata updates request and physical template renewal request that receiving terminal is sent, wherein, the metadata is more The current version number of the metadata in the terminal is included in new request, is included in the physical template request in the terminal The current version number of physical template;First determining unit 604, according in the current version number of the metadata and the server The latest edition number of metadata determine the need for sending the metadata of latest edition to the terminal;First processing units 606, when the current version number of the metadata is identical with the latest edition number of the metadata, the server determines to be not required to The metadata of the latest edition is sent to the terminal, and sends the latest edition number to the terminal, when the member When the current version number of data and the latest edition number difference of the metadata, the server sends the member of the latest edition The latest edition number of data and the metadata is to the terminal;And second determining unit 608, according to the physical template The latest edition number of physical template in current version number and the server determines the need for sending the entity of latest edition Template is to the terminal, second processing unit 610, when the current version and the latest edition of the physical template of the physical template When this is identical, the server determines to send the physical template of the latest edition to the terminal, and described in transmission The latest edition number of physical template to the terminal, when the physical template current version number and the physical template it is newest During version number's difference, the server sends the latest edition number of physical template the and described physical template of the latest edition To the terminal.
In the technical scheme, client asks metadata to take version number's (identification metadata variation every time Symbol, such as timestamp), 0 is passed for the first time.Service end can check whether metadata variation according to the version number of upload, if Have to change and return to new metadata and version number, new version number is returned if not changing.Client stores metadata and version Number for use.Likewise, each request entity template of client can take version number's (symbol that a mark physical template changes Number, such as timestamp), 0 is passed for the first time.Service end can check whether physical template has variation according to the version number of upload, if Have to change and return to new physical template and version number, new version number is returned if not changing.Client storage entity template and Version number is for using.
In the above-mentioned technical solutions, it is preferable that also include:Edit cell 612, increase newly, change, delete according to what is received Order is removed, hides and/or replaces, the metadata and physical template to storage are increased newly, changed, deleted, hide and/or replaced Change, to obtain the physical template of the metadata of the latest edition and the latest edition.
In the technical scheme, when needing to add displaying field to entity, it is only necessary to added in server end metadata The description of correspondent entity field, the field description is then added in physical template.Client get new metadata and The new page after entities field can be just added after physical template according to above-mentioned rule generation.
Technical scheme is described in detail above in association with accompanying drawing, passes through the technical program so that client can be with The modification of self-adaptation entity attribute, the compatibility of the client release of reinforcement, reduce client exploitation maintenance cost so that client Hold iterative development more efficient.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (10)

  1. A kind of 1. page display method, applied to terminal, it is characterised in that including:
    When the application program for detecting terminal is activated, metadata updates request is sent to server, to obtain latest edition Metadata;
    , please to the server sending entity template renewal when detecting that the entity into the application program shows interface Ask, to obtain the physical template of latest edition;
    Travel through the entities field in the Pages entity data of the application program, and the metadata according to the latest edition and institute State the physical template generation page layout file of latest edition;
    According to the page layout file and target element generation full page layout, and by whole described in the terminal display Page layout.
  2. 2. page display method according to claim 1, it is characterised in that
    The current version number of the metadata in the terminal is included in metadata updates request, for the server according to The latest edition number of metadata in the current version number of the metadata and the server determines the need for sending newest The metadata of version to the terminal,
    When the current version number of the metadata is identical with the latest edition number of the metadata, the server determines to be not required to The metadata of the latest edition is sent to the terminal, and sends the latest edition number to the terminal,
    When the current version number and the latest edition number difference of the metadata of the metadata, described in the server transmission The latest edition number of the metadata of latest edition and the metadata is to the terminal;And
    The current version number of the physical template in the terminal is included in physical template request, for the server according to The latest edition number of physical template in the current version number of the physical template and the server determines the need for sending The physical template of latest edition to the terminal,
    When the current version of the physical template is identical with the latest edition of the physical template, the server determines to be not required to The physical template of the latest edition is sent to the terminal, and sends the latest edition number of the physical template to the end End,
    When the current version number and the latest edition number difference of the physical template of the physical template, the server is sent The latest edition number of physical template the and described physical template of the latest edition is to the terminal.
  3. 3. page display method according to claim 1, it is characterised in that the page of the traversal application program is real Entities field in volume data, and the page is generated according to the metadata of the latest edition and the physical template of the latest edition Topology file, specifically include:
    The entities field in the Pages entity data of the application program is traveled through, when the physical template of the latest edition When the entities field is included in sets of fields, then the entities field is obtained from the dictionary of the metadata of the latest edition Target metadata, the page layout text is generated with the physical template according to corresponding to the target metadata and the entities field Part.
  4. 4. page display method according to claim 1, it is characterised in that described according to the page layout file and mesh Component generation full page layout is marked, is specifically included:
    Component corresponding to each entities field, initialization component are found from the target element by the page layout file And valuation component layout attributes and numerical attribute, it is laid out with generating the full page.
  5. 5. page display method according to any one of claim 1 to 4, it is characterised in that also include:
    The server according to the newly-increased, modification received, delete, hide and/or replace and order, to the metadata and reality of storage Body template is increased newly, is changed, is deleted, hidden and/or replaced, to obtain the metadata of the latest edition and the latest edition This physical template.
  6. A kind of 6. page presentation device, for terminal, it is characterised in that including:
    First transmitting element, when the application program for detecting terminal is activated, metadata updates request is sent to server, with Obtain the metadata of latest edition;
    Second transmitting element, when detecting that the entity into the application program shows interface, sent to the server real Body template renewal is asked, to obtain the physical template of latest edition;
    Generation unit, the entities field in the Pages entity data of the application program is traveled through, and according to the latest edition The physical template of metadata and the latest edition generates page layout file;
    Display unit, according to the page layout file and target element generation full page layout, and pass through the terminal exhibition Show the full page layout.
  7. 7. page presentation device according to claim 6, it is characterised in that the generation unit is specifically used for:
    The entities field in the Pages entity data of the application program is traveled through, when the physical template of the latest edition When the entities field is included in sets of fields, then the entities field is obtained from the dictionary of the metadata of the latest edition Target metadata, the page layout text is generated with the physical template according to corresponding to the target metadata and the entities field Part.
  8. 8. the page presentation device according to claim 6 or 7, it is characterised in that the display unit is specifically used for:
    Component corresponding to each entities field, initialization component are found from the target element by the page layout file And valuation component layout attributes and numerical attribute, it is laid out with generating the full page.
  9. A kind of 9. page presentation device, for server, it is characterised in that including:
    Receiving unit, the metadata updates request and physical template renewal request that receiving terminal is sent, wherein, the metadata is more The current version number of the metadata in the terminal is included in new request, is included in the physical template request in the terminal The current version number of physical template;
    First determining unit, the latest edition number of the metadata in the current version number of the metadata and the server Determine the need for sending the metadata of latest edition to the terminal;
    First processing units, it is described when the current version number of the metadata is identical with the latest edition number of the metadata Server determines to send the metadata of the latest edition to the terminal, and sends the latest edition number to described Terminal,
    When the current version number and the latest edition number difference of the metadata of the metadata, described in the server transmission The latest edition number of the metadata of latest edition and the metadata is to the terminal;And
    Second determining unit, the latest edition of the physical template in the current version number of the physical template and the server This number physical template for determining the need for sending latest edition to the terminal,
    Second processing unit, it is described when the current version of the physical template is identical with the latest edition of the physical template The physical template that server determines that the latest edition need not be sent sends the newest of the physical template to the terminal Version number to the terminal,
    When the current version number and the latest edition number difference of the physical template of the physical template, the server is sent The latest edition number of physical template the and described physical template of the latest edition is to the terminal.
  10. 10. page presentation device according to claim 9, it is characterised in that also include:
    Edit cell, according to the newly-increased, modification received, delete, hide and/or replace and order, to the metadata and reality of storage Body template is increased newly, is changed, is deleted, hidden and/or replaced, to obtain the metadata of the latest edition and the latest edition This physical template.
CN201410743550.2A 2014-12-08 2014-12-08 Page display method and page presentation device Active CN104391725B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410743550.2A CN104391725B (en) 2014-12-08 2014-12-08 Page display method and page presentation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410743550.2A CN104391725B (en) 2014-12-08 2014-12-08 Page display method and page presentation device

Publications (2)

Publication Number Publication Date
CN104391725A CN104391725A (en) 2015-03-04
CN104391725B true CN104391725B (en) 2017-11-14

Family

ID=52609633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410743550.2A Active CN104391725B (en) 2014-12-08 2014-12-08 Page display method and page presentation device

Country Status (1)

Country Link
CN (1) CN104391725B (en)

Families Citing this family (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866349A (en) * 2015-05-25 2015-08-26 小米科技有限责任公司 Application updating method and device
CN106708480B (en) * 2015-07-29 2021-02-26 腾讯科技(深圳)有限公司 Management platform implementation method and device
CN106651482A (en) * 2015-10-30 2017-05-10 湖南梅山印办公服务有限公司 Method for opening shop with one click online through the internet
CN105159691B (en) * 2015-10-30 2019-03-05 北京奇虎科技有限公司 The method and device of more new metadata
CN105487889A (en) * 2015-11-26 2016-04-13 小米科技有限责任公司 Application interface updating method and device
CN105392065A (en) * 2015-12-28 2016-03-09 Tcl集团股份有限公司 Method and system for arranging page content of intelligent television
CN107015819B (en) * 2016-01-27 2020-11-13 阿里巴巴集团控股有限公司 Method and device for updating HTML (Hypertext markup language) template at server side
CN107391507B (en) * 2016-05-16 2020-12-15 阿里巴巴集团控股有限公司 Updating method and device for mobile terminal page
CN107479861B (en) * 2016-06-07 2021-04-06 阿里巴巴集团控股有限公司 Page processing method and system
CN107562445A (en) * 2016-06-29 2018-01-09 中国电信股份有限公司 Methods, devices and systems for dynamically more new user interface
CN106250158A (en) * 2016-08-01 2016-12-21 广州优视网络科技有限公司 The layout method of a kind of client end interface, device and mobile device
CN106775637B (en) * 2016-11-18 2020-09-08 腾讯音乐娱乐(深圳)有限公司 Page display method and device for application program
CN106990950B (en) * 2017-01-09 2020-12-15 深圳大宇无限科技有限公司 Interface layout method and device
CN110020280B (en) * 2017-09-08 2022-12-02 腾讯科技(深圳)有限公司 Application page display method and device, storage medium and computer equipment
CN109582402B (en) * 2017-09-29 2022-11-22 北京金山安全软件有限公司 Page display method and device
CN107992346B (en) * 2017-10-19 2021-09-03 用友网络科技股份有限公司 Interface display method and interface display system of application program
CN108282518A (en) * 2017-12-26 2018-07-13 阿里巴巴集团控股有限公司 A kind of customer terminal webpage generation method and device
CN110321227A (en) * 2018-03-29 2019-10-11 腾讯科技(深圳)有限公司 Page data synchronous method, electronic device and computer readable storage medium
CN109033363A (en) * 2018-07-26 2018-12-18 广东浪潮大数据研究有限公司 A kind of method, device and equipment of customer in response end request
CN109246035A (en) * 2018-08-01 2019-01-18 平安科技(深圳)有限公司 A kind of method and device of data transfer management
CN109165066A (en) * 2018-08-02 2019-01-08 五八有限公司 Method of adjustment, methods of exhibiting, device, storage medium and the terminal of page layout
CN109522068A (en) * 2018-10-17 2019-03-26 大唐网络有限公司 The edit methods of the methods of exhibiting and system of the page, page data
CN109408189B (en) * 2018-11-02 2022-07-12 北京字节跳动网络技术有限公司 Dynamic adjustment method, device, equipment and medium for client interface layout
CN109829143B (en) * 2018-12-28 2023-06-20 陈德芹 Online form summarizing method and device
CN109829144B (en) * 2018-12-28 2023-06-06 陈德芹 Method and device for cross-table referencing of online table
CN109815428B (en) * 2018-12-28 2021-04-20 陈德芹 Online table caching method and device
CN111190591B (en) * 2019-09-06 2022-02-01 腾讯科技(深圳)有限公司 Interface display method, data processing method, device, terminal and server
CN112769741B (en) * 2019-11-06 2023-04-07 中移物联网有限公司 Message communication method and electronic equipment
CN113825008B (en) * 2021-11-24 2022-03-01 飞狐信息技术(天津)有限公司 Active page display method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1987851A (en) * 2005-12-22 2007-06-27 腾讯科技(深圳)有限公司 Updating display method for webpage data
CN101441656A (en) * 2008-12-23 2009-05-27 金蝶软件(中国)有限公司 Method and apparatus for processing form setting scheme and enterprise resource planning system
CN101697123A (en) * 2009-10-20 2010-04-21 金蝶软件(中国)有限公司 Method and device for modifying interface layout in ERP system and ERP system
CN102103513A (en) * 2011-02-25 2011-06-22 金洋 Method for rapidly developing software by utilizing metadata and middleware
CN103019693A (en) * 2012-11-21 2013-04-03 用友软件股份有限公司 System and method for generating user interface
CN103136027A (en) * 2013-03-01 2013-06-05 畅捷通信息技术股份有限公司 Immediate updating device and immediate updating method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7424485B2 (en) * 2004-06-03 2008-09-09 Microsoft Corporation Method and apparatus for generating user interfaces based upon automation with full flexibility

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1987851A (en) * 2005-12-22 2007-06-27 腾讯科技(深圳)有限公司 Updating display method for webpage data
CN101441656A (en) * 2008-12-23 2009-05-27 金蝶软件(中国)有限公司 Method and apparatus for processing form setting scheme and enterprise resource planning system
CN101697123A (en) * 2009-10-20 2010-04-21 金蝶软件(中国)有限公司 Method and device for modifying interface layout in ERP system and ERP system
CN102103513A (en) * 2011-02-25 2011-06-22 金洋 Method for rapidly developing software by utilizing metadata and middleware
CN103019693A (en) * 2012-11-21 2013-04-03 用友软件股份有限公司 System and method for generating user interface
CN103136027A (en) * 2013-03-01 2013-06-05 畅捷通信息技术股份有限公司 Immediate updating device and immediate updating method

Also Published As

Publication number Publication date
CN104391725A (en) 2015-03-04

Similar Documents

Publication Publication Date Title
CN104391725B (en) Page display method and page presentation device
Mingers Multimethodology
CN105608088B (en) A kind of database based on configuration file automatically creates and data dynamic recording method
US9460107B2 (en) Filename-based inference of repository actions
CN108846753B (en) Method and apparatus for processing data
CN107911487A (en) Information-pushing method, device, server and readable storage medium storing program for executing
CN108255915B (en) File management method and device and machine-readable storage medium
CN105843867B (en) Search method based on metadata schema and the retrieval device based on metadata schema
CN109697071A (en) Installation kit synthetic method, device, terminal and storage medium
CN105760380A (en) Database query method, device and system
CN104050161B (en) Dynamic bridging of application and data servers
CN108363684A (en) List creation method, device and server
CN106649602A (en) Way, device and server of processing business object data
CN103150359A (en) Method and device for displaying microblog information
CN115544183A (en) Data visualization method and device, computer equipment and storage medium
CN106462933A (en) Using content structure to socially connect users
CN111090803A (en) Data processing method and device, electronic equipment and storage medium
CN110502716A (en) A kind of methods of exhibiting of information of vehicles, server, terminal device
CN107944866B (en) Transaction record duplication elimination method and computer-readable storage medium
CN106886548A (en) Data query method and device
CN109062947A (en) User's portrait tag queries method, equipment and computer readable storage medium
CN109062970A (en) Generation method, generating device and the computer readable storage medium of user's portrait
CN107077473A (en) System, method and computer-readable medium for display content
CN108549722B (en) Multi-platform data publishing method, system and medium
CN108196921B (en) Document development method and device, computer equipment and storage medium

Legal Events

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