CN104391725A - Page display method and page display device - Google Patents
Page display method and page display device Download PDFInfo
- Publication number
- CN104391725A CN104391725A CN201410743550.2A CN201410743550A CN104391725A CN 104391725 A CN104391725 A CN 104391725A CN 201410743550 A CN201410743550 A CN 201410743550A CN 104391725 A CN104391725 A CN 104391725A
- Authority
- CN
- China
- Prior art keywords
- metadata
- latest edition
- physical template
- terminal
- template
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Document Processing Apparatus (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a page display method applied to a terminal. The method includes: when detecting that an application of the terminal is started, sending a metadata update request to a server so as to acquire metadata of the latest version; when detecting an entity display interface entering the application, sending an entity template update request to the server so as to acquire an entity template of the latest version; traversing entity fields in page entity data of the application, and generating a page layout file according to the metadata of the latest version and the entity template of the latest version; generating entire page layout according to the page layout file and a target component, and displaying the entire page layout through the terminal. The invention further provides a page display device. Through the method and device, a client can be adapt to modification of entity attributes, compatibility of the client version is enhanced, development and maintenance cost of the client is reduced, and iterative development of the client is more efficient.
Description
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 presentation device.
Background technology
In CRM (customer relation management), in the software products such as ERP (Enterprise Resources Plan), picture client, contact person, the such entity of order comprises a lot of fields usually, in the continuous upgrading of product and the process enriched constantly of function, the thing that amendment entities field is such can be run into unavoidably, such as add a mode field to client, add one to job record and remind field etc.The same displaying of these entities field on client UI is also not quite similar.The address field of such as client entity can be shown and also can show by special address components by direct text, and the Birth field of contact person's entity can be shown with text and also can show with special date assembly.If in product iteration escalation process, each entity show field have variation all need to change client UI layout code then leading portion maintenance can become suitable loaded down with trivial details.
The defect of technique scheme is:
1, client can only issue by amendment formula the displaying that new edition realized the amendment of entity UI field originally again, does not accomplish the compatibility to early version.
2, the amendment under emergency case can not be tackled, when wanting to revise entity again or need not accomplish under existing scheme when adding unified attribute to the entity under special domain after client is issued.
Therefore, can the displaying of client UI accomplish that the change of self-adaptation entity becomes a problem demanding prompt solution.
Summary of the invention
The present invention, just based on the problems referred to above, proposes a kind of new technical scheme, makes client can the amendment of self-adaptation entity attribute, and the compatibility of the client release of reinforcement, reduces client development and maintenance cost, make client iterative development more efficient.
In view of this, an aspect of of the present present invention proposes a kind of page display method, is applied to terminal, comprising: when detecting that the application program of terminal is activated, and sends metadata updates request, to obtain the metadata of latest edition to server; When detecting that the entity entering described application program shows interface, to the request of described server sending entity template renewal, to obtain the physical template of latest edition; Travel through the entities field in the Pages entity data of described application program, and generate page layout's file according to the metadata of described latest edition and the physical template of described latest edition; Full page layout is generated according to described page layout file and target element, and by full page layout described in described terminal display.
Particularly, metadata is used to the file describing entity and entities field, it is described that service logic constraint and the component exhibiting type of entities field, style.It is text that the metadata of the name field of such as client entity has customer name, maximum length 255 characters, can not be that sky waits description.These descriptions finally can be applied to above the component exhibiting of this entities field, and as text will select text component automatically, this assembly has length and non-NULL verification etc.
Physical template is used to describe physical layout information, which determines the layout of physical page, physical page needs the order of showing which field, field are shown.
Metadata and the physical template of current latest edition are kept at service end, during startup APP, client (terminal) can initiate the request of metadata updates to service end, upgrade up-to-date metadata to client, client analytical element data are loaded into internal memory for search and persistence meta data file opens and uses to local confession next time with the form of dictionary.Same when entering into physical page client initiate the request of physical template renewal, upgrade up-to-date physical template to client and persistence.Then page data entities field is traveled through, if comprise this field in physical template dictionary, from metadata dictionary, then obtain the metadata of this entities field, and in the data of this entities field, template, the interim topology file generated of metadata write, after having traveled through page data entities field, also just generate complete topology file.From target element, find assembly initialization corresponding to each field finally by topology file and assignment data and layout attributes to generate full page layout.
Like this, when needs add displaying field to entity, server end only needs the description adding correspondent entity field in metadata, then in physical template, adds this field description.Client just can according to the new page after above-mentioned rule generation interpolation entities field after getting new metadata and physical template.Thus making client can the amendment of self-adaptation entity attribute, the compatibility of the client release of reinforcement, reduces client development and maintenance cost, makes client iterative development more efficient.
In technique scheme, preferably, the current version number of the metadata in described terminal is comprised in described metadata updates request, determine whether that the metadata that need send latest edition to described terminal according to the current version of described metadata number with the latest edition number of the metadata in described server for described server, when the latest edition of current version number and the described metadata of described metadata is number identical, described server determines that the metadata not needing to send described latest edition is to described terminal, and send described latest edition number to described terminal, when the latest edition of current version number and the described metadata of described metadata is number different, described server sends the latest edition of the metadata of described latest edition and described metadata number to described terminal, and in described physical template request, comprise the current version number of the physical template in described terminal, determine whether that the physical template that need send latest edition to described terminal according to the current version of described physical template number with the latest edition number of the physical template in described server for described server, when the current version of described physical template is identical with the latest edition of described physical template, described server determines that the physical template not needing to send described latest edition is to described terminal, and send the latest edition number of described physical template to described terminal, when the latest edition of current version number and the described physical template of described physical template is number different, described server send the physical template of described latest edition with the latest edition of described physical template number to described terminal.
In this technical scheme, each request metadata Hui Daishang version number of client (symbol of an identification metadata variation, as timestamp), first time passes 0.Service end can be looked into according to the version number uploaded and see if there is metadata variation, if there is variation to return new metadata and version number, if do not have variation to return new version number.Client storing metadata and version number for.Same, client each request entity template Hui Daishang version number (symbol of an identified entities template variation, as timestamp), first time passes 0.According to the version number uploaded, service end can check whether physical template has variation, if there is variation to return new physical template and version number, if do not have variation to return new version number.Client storage entity template and version number for.
In technique scheme, preferably, entities field in the Pages entity data of the described application program of described traversal, and generate page layout's file according to the metadata of described latest edition and the physical template of described latest edition, specifically comprise: travel through the described entities field in the Pages entity data of described application program, when comprising described entities field in the sets of fields of the physical template of described latest edition, from the dictionary of the metadata of described latest edition, then obtain the target metadata of described entities field, to generate described page layout file according to described target metadata and physical template corresponding to described entities field.
In this technical scheme, field in traversal Pages entity data, if physical template sets of fields comprises this entities field, illustrates and needs display, from metadata dictionary, then obtain the metadata of this entities field, and in the topology file of the data of this entities field, template, metadata write generation.
In technique scheme, preferably, described according to described page layout file and target element generation full page layout, specifically comprise: the assembly finding each entities field corresponding from described target element by described page layout file, initialization component assignment assembly layout attribute and numerical attribute, to generate described full page layout.
In this technical scheme, by the assembly initialization that described page layout file finds each entities field corresponding from described target element, and assignment data and layout attributes, to generate described full page layout, thus terminal can be shown full page layout.
In technique scheme, preferably, also comprise: described server is ordered according to increasing newly, revise, delete, hide and/or replacing of receiving, the metadata stored and physical template increased newly, revises, delete, hide and/or replace, with the physical template of the metadata and described latest edition that obtain described latest edition.
In this technical scheme, when needs add displaying field to entity, only need the description adding correspondent entity field in server end metadata, then in physical template, add this field description.Client just can according to the new page after above-mentioned rule generation interpolation entities field after getting new metadata and physical template.
According to a further aspect in the invention, additionally providing a kind of page presentation device, for terminal, comprising: the first transmitting element, when detecting that the application program of terminal is activated, sending metadata updates request, to obtain the metadata of latest edition to server; Second transmitting element, when detecting that the entity entering described application program shows interface, to the request of described server sending entity template renewal, to obtain the physical template of latest edition; Generation unit, travels through the entities field in the Pages entity data of described application program, and generates page layout's file according to the metadata of described latest edition and the physical template of described latest edition; Display unit, generates full page layout according to described page layout file and target element, and by full page layout described in described terminal display.
Particularly, metadata is used to the file describing entity and entities field, it is described that service logic constraint and the component exhibiting type of entities field, style.It is text that the metadata of the name field of such as client entity has customer name, maximum length 255 characters, can not be that sky waits description.These descriptions finally can be applied to above the component exhibiting of this entities field, and as text will select text component automatically, this assembly has length and non-NULL verification etc.
Physical template is used to describe physical layout information, which determines the layout of physical page, physical page needs the order of showing which field, field are shown.
Metadata and the physical template of current latest edition are kept at service end, during startup APP, client (terminal) can initiate the request of metadata updates to service end, upgrade up-to-date metadata to client, client analytical element data are loaded into internal memory for search and persistence meta data file opens and uses to local confession next time with the form of dictionary.Same when entering into physical page client initiate the request of physical template renewal, upgrade up-to-date physical template to client and persistence.Then page data entities field is traveled through, if comprise this field in physical template dictionary, from metadata dictionary, then obtain the metadata of this entities field, and in the data of this entities field, template, the interim topology file generated of metadata write, after having traveled through page data entities field, also just generate complete topology file.From target element, find assembly initialization corresponding to each field finally by topology file and assignment data and layout attributes to generate full page layout.
Like this, when needs add displaying field to entity, server end only needs the description adding correspondent entity field in metadata, then in physical template, adds this field description.Client just can according to the new page after above-mentioned rule generation interpolation entities field after getting new metadata and physical template.Thus making client can the amendment of self-adaptation entity attribute, the compatibility of the client release of reinforcement, reduces client development and maintenance cost, makes client iterative development more efficient.
In technique scheme, preferably, described generation unit specifically for: travel through the described entities field in the Pages entity data of described application program, when comprising described entities field in the sets of fields of the physical template of described latest edition, from the dictionary of the metadata of described latest edition, then obtain the target metadata of described entities field, to generate described page layout file according to described target metadata and physical template corresponding to described entities field.
In this technical scheme, field in traversal Pages entity data, if physical template sets of fields comprises this entities field, illustrates and needs display, from metadata dictionary, then obtain the metadata of this entities field, and in the topology file of the data of this entities field, template, metadata write generation.
In technique scheme, preferably, described display unit specifically for the assembly initialization finding each entities field corresponding from described target element by described page layout file, and assignment data and layout attributes, generating described full page layout.
In this technical scheme, by the assembly that described page layout file finds each entities field corresponding from described target element, initialization component assignment assembly layout attribute and numerical attribute, to generate described full page layout, thus terminal can be shown full page layout.
In accordance with a further aspect of the present invention, additionally provide a kind of page presentation device, for server, comprise: receiving element, the metadata updates request that receiving terminal sends and physical template update request, wherein, in described metadata updates request, comprise the current version number of the metadata in described terminal, in described physical template request, comprise the current version number of the physical template in described terminal, first determining unit, with the latest edition number of the metadata in described server, the current version number according to described metadata determines whether that the metadata needing to send latest edition is to described terminal, first processing unit, when the latest edition of current version number and the described metadata of described metadata is number identical, described server determines that the metadata not needing to send described latest edition is to described terminal, and send described latest edition number to described terminal, when the latest edition of current version number and the described metadata of described metadata is number different, described server sends the latest edition of the metadata of described latest edition and described metadata number to described terminal, and second determining unit, with the latest edition number of the physical template in described server, current version number according to described physical template determines whether that the physical template needing to send latest edition is to described terminal, second processing unit, when the current version of described physical template is identical with the latest edition of described physical template, described server determines that the physical template not needing to send described latest edition is to described terminal, and send the latest edition number of described physical template to described terminal, when the latest edition of current version number and the described physical template of described physical template is number different, described server send the physical template of described latest edition with the latest edition of described physical template number to described terminal.
In this technical scheme, each request metadata Hui Daishang version number of client (symbol of an identification metadata variation, as timestamp), first time passes 0.Service end can be looked into according to the version number uploaded and see if there is metadata variation, if there is variation to return new metadata and version number, if do not have variation to return new version number.Client storing metadata and version number for.Same, client each request entity template Hui Daishang version number (symbol of an identified entities template variation, as timestamp), first time passes 0.According to the version number uploaded, service end can check whether physical template has variation, if there is variation to return new physical template and version number, if do not have variation to return new version number.Client storage entity template and version number for.
In technique scheme, preferably, also comprise: edit cell, according to newly-increased, the amendment received, delete, hide and/or replace order, the metadata stored and physical template increased newly, revises, delete, hide and/or replace, with the physical template of the metadata and described latest edition that obtain described latest edition.
In this technical scheme, when needs add displaying field to entity, only need the description adding correspondent entity field in server end metadata, then in physical template, add this field description.Client just can according to the new page after above-mentioned rule generation interpolation entities field after getting new metadata and physical template.
By above technical scheme, make client can the amendment of self-adaptation entity attribute, the compatibility of the client release of reinforcement, reduces client development and maintenance cost, makes client iterative development more efficient.
Accompanying drawing explanation
Fig. 1 shows the process flow diagram of page display method according to an embodiment of the invention;
Fig. 2 shows according to an embodiment of the invention the process flow diagram of more new metadata;
Fig. 3 shows the process flow diagram upgrading solid data according to an embodiment of the invention;
Fig. 4 shows the process flow diagram generating 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
In order to more clearly understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, when not conflicting, the feature in the embodiment of the application and embodiment can combine mutually.
Set forth a lot of detail in the following description so that fully understand the present invention; but; the present invention can also adopt other to be different from other modes described here and implement, and therefore, protection scope of the present invention is not by the restriction of following public specific embodiment.
Fig. 1 shows the process flow diagram 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, is applied to terminal, comprising: step 102, when detecting that the application program of terminal is activated, sends metadata updates request, to obtain the metadata of latest edition to server; Step 104, when detecting that the entity entering described application program shows interface, to the request of described server sending entity template renewal, to obtain the physical template of latest edition; Step 106, travels through the entities field in the Pages entity data of described application program, and generates page layout's file according to the metadata of described latest edition and the physical template of described latest edition; Step 108, generates full page layout according to described page layout file and target element, and by full page layout described in described terminal display.
Particularly, metadata is used to the file describing entity and entities field, it is described that service logic constraint and the component exhibiting type of entities field, style.It is text that the metadata of the name field of such as client entity has customer name, maximum length 255 characters, can not be that sky waits description.These descriptions finally can be applied to above the component exhibiting of this entities field, and as text will select text component automatically, this assembly has length and non-NULL verification etc.
Physical template is used to describe physical layout information, which determines the layout of physical page, physical page needs the order of showing which field, field are shown.
Metadata and the physical template of current latest edition are kept at service end, during startup APP, client (terminal) can initiate the request of metadata updates to service end, upgrade up-to-date metadata to client, client analytical element data are loaded into internal memory for search and persistence meta data file opens and uses to local confession next time with the form of dictionary.Same when entering into physical page client initiate the request of physical template renewal, upgrade up-to-date physical template to client and persistence.Then page data entities field is traveled through, if comprise this field in physical template dictionary, from metadata dictionary, then obtain the metadata of this entities field, and in the data of this entities field, template, the interim topology file generated of metadata write, after having traveled through page data entities field, also just generate complete topology file.From target element, find assembly initialization corresponding to each field finally by topology file and assignment data and layout attributes to generate full page layout.
Like this, when needs add displaying field to entity, server end only needs the description adding correspondent entity field in metadata, then in physical template, adds this field description.Client just can according to the new page after above-mentioned rule generation interpolation entities field after getting new metadata and physical template.Thus making client can the amendment of self-adaptation entity attribute, the compatibility of the client release of reinforcement, reduces client development and maintenance cost, makes client iterative development more efficient.
In technique scheme, preferably, the current version number of the metadata in described terminal is comprised in described metadata updates request, determine whether that the metadata that need send latest edition to described terminal according to the current version of described metadata number with the latest edition number of the metadata in described server for described server, when the latest edition of current version number and the described metadata of described metadata is number identical, described server determines that the metadata not needing to send described latest edition is to described terminal, and send described latest edition number to described terminal, when the latest edition of current version number and the described metadata of described metadata is number different, described server sends the latest edition of the metadata of described latest edition and described metadata number to described terminal, and in described physical template request, comprise the current version number of the physical template in described terminal, determine whether that the physical template that need send latest edition to described terminal according to the current version of described physical template number with the latest edition number of the physical template in described server for described server, when the current version of described physical template is identical with the latest edition of described physical template, described server determines that the physical template not needing to send described latest edition is to described terminal, and send the latest edition number of described physical template to described terminal, when the latest edition of current version number and the described physical template of described physical template is number different, described server send the physical template of described latest edition with the latest edition of described physical template number to described terminal.
In this technical scheme, each request metadata Hui Daishang version number of client (symbol of an identification metadata variation, as timestamp), first time passes 0.Service end can be looked into according to the version number uploaded and see if there is metadata variation, if there is variation to return new metadata and version number, if do not have variation to return new version number.Client storing metadata and version number for.Same, client each request entity template Hui Daishang version number (symbol of an identified entities template variation, as timestamp), first time passes 0.According to the version number uploaded, service end can check whether physical template has variation, if there is variation to return new physical template and version number, if do not have variation to return new version number.Client storage entity template and version number for.
In technique scheme, preferably, entities field in the Pages entity data of the described application program of described traversal, and generate page layout's file according to the metadata of described latest edition and the physical template of described latest edition, specifically comprise: travel through the described entities field in the Pages entity data of described application program, when comprising described entities field in the sets of fields of the physical template of described latest edition, from the dictionary of the metadata of described latest edition, then obtain the target metadata of described entities field, to generate described page layout file according to described target metadata and physical template corresponding to described entities field.
In this technical scheme, field in traversal Pages entity data, if physical template sets of fields comprises this entities field, illustrates and needs display, from metadata dictionary, then obtain the metadata of this entities field, and in the topology file of the data of this entities field, template, metadata write generation.
In technique scheme, preferably, described according to described page layout file and target element generation full page layout, specifically comprise: the assembly finding each entities field corresponding from described target element by described page layout file, initialization component assignment assembly layout attribute and numerical attribute, to generate described full page layout.
In this technical scheme, by the assembly initialization that described page layout file finds each entities field corresponding from described target element, and assignment data and layout attributes, to generate described full page layout, thus terminal can be shown full page layout.
In technique scheme, preferably, also comprise: described server is ordered according to increasing newly, revise, delete, hide and/or replacing of receiving, the metadata stored and physical template increased newly, revises, delete, hide and/or replace, with the physical template of the metadata and described latest edition that obtain described latest edition.
In this technical scheme, when needs add displaying field to entity, only need the description adding correspondent entity field in server end metadata, then in physical template, add this field description.Client just can according to the new page after above-mentioned rule generation interpolation entities field after getting new metadata and physical template.
Fig. 2 shows according to an embodiment of the invention the process flow diagram of more new metadata.
As shown in Figure 2, more the flow process of new metadata comprises according to an embodiment of the invention:
Step 202, application A PP starts.
Step 204, has judged whether metadata, when judged result is for being, enters step 206, when judged result is no, enters step 208.
Step 206, according to the version updating metadata of metadata.
Step 208, synchronization request metadata.
Step 210, enters application A PP.
Fig. 3 shows the process flow diagram of renewal solid data according to an embodiment of the invention.
As shown in Figure 3, the flow process of renewal solid data according to an embodiment of the invention comprises:
Step 302, enters entity and shows interface.
Step 304, has judged whether physical template, when judged result is for being, enters step 306, when judged result is no, enters 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, starts load page.
Fig. 4 shows the process flow diagram generating topology file according to an embodiment of the invention.
As shown in Figure 4, the flow process generating topology file according to an embodiment of the invention comprises:
Step 402, reads the field index i of Pages entity.
Step 404, judging whether present field i is less than entities field number, when judged result is for being, entering step 406, when judged result is no, enters step 416.
Step 406, obtains ID corresponding to i-th field and data.
Step 408, judging whether there is this ID in physical template, when judged result is for being, entering step 410, enter step 414 when judged result is no.
Step 410, the metadata reading Field ID from metadata describes.
Step 412, writes data in topology file.
Step 414, gets next attribute.
Step 416, generates full page layout by topology file loaded targets assembly.
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, comprise: the first transmitting element 502, when detecting that the application program of terminal is activated, send metadata updates request, to obtain the metadata of latest edition to server; Second transmitting element 504, when detecting that the entity entering described application program shows interface, to the request of described server sending entity template renewal, to obtain the physical template of latest edition; Generation unit 506, travels through the entities field in the Pages entity data of described application program, and generates page layout's file according to the metadata of described latest edition and the physical template of described latest edition; Display unit 508, generates full page layout according to described page layout file and target element, and by full page layout described in described terminal display.
Particularly, metadata is used to the file describing entity and entities field, it is described that service logic constraint and the component exhibiting type of entities field, style.It is text that the metadata of the name field of such as client entity has customer name, maximum length 255 characters, can not be that sky waits description.These descriptions finally can be applied to above the component exhibiting of this entities field, and as text will select text component automatically, this assembly has length and non-NULL verification etc.
Physical template is used to describe physical layout information, which determines the layout of physical page, physical page needs the order of showing which field, field are shown.
Metadata and the physical template of current latest edition are kept at service end, during startup APP, client (terminal) can initiate the request of metadata updates to service end, upgrade up-to-date metadata to client, client analytical element data are loaded into internal memory for search and persistence meta data file opens and uses to local confession next time with the form of dictionary.Same when entering into physical page client initiate the request of physical template renewal, upgrade up-to-date physical template to client and persistence.Then page data entities field is traveled through, if comprise this field in physical template dictionary, from metadata dictionary, then obtain the metadata of this entities field, and in the data of this entities field, template, the interim topology file generated of metadata write, after having traveled through page data entities field, also just generate complete topology file.From target element, find assembly initialization corresponding to each field finally by topology file and assignment data and layout attributes to generate full page layout.
Like this, when needs add displaying field to entity, server end only needs the description adding correspondent entity field in metadata, then in physical template, adds this field description.Client just can according to the new page after above-mentioned rule generation interpolation entities field after getting new metadata and physical template.Thus making client can the amendment of self-adaptation entity attribute, the compatibility of the client release of reinforcement, reduces client development and maintenance cost, makes client iterative development more efficient.
In technique scheme, preferably, described generation unit 506 specifically for: travel through the described entities field in the Pages entity data of described application program, when comprising described entities field in the sets of fields of the physical template of described latest edition, from the dictionary of the metadata of described latest edition, then obtain the target metadata of described entities field, to generate described page layout file according to described target metadata and physical template corresponding to described entities field.
In this technical scheme, field in traversal Pages entity data, if physical template dictionary comprises this entities field, illustrates and needs display, from metadata dictionary, then obtain the metadata of this entities field, and in the topology file of the data of this entities field, template, metadata write generation.
In technique scheme, preferably, described display unit 508 specifically for the assembly initialization finding each entities field corresponding from described target element by described page layout file, and assignment data and layout attributes, generating described full page layout.
In this technical scheme, by the assembly initialization that described page layout file finds each entities field corresponding from described target element, and assignment data and layout attributes, to generate described full page layout, thus terminal can be shown full page layout.
Fig. 6 shows the block diagram of page presentation device according to another embodiment of the invention.
As shown in Figure 6, page presentation device 600 according to another embodiment of the invention, for server, comprise: receiving element 602, the metadata updates request that receiving terminal sends and physical template update request, wherein, in described metadata updates request, comprise the current version number of the metadata in described terminal, in described physical template request, comprise the current version number of the physical template in described terminal, first determining unit 604, with the latest edition number of the metadata in described server, the current version number according to described metadata determines whether that the metadata needing to send latest edition is to described terminal, first processing unit 606, when the latest edition of current version number and the described metadata of described metadata is number identical, described server determines that the metadata not needing to send described latest edition is to described terminal, and send described latest edition number to described terminal, when the latest edition of current version number and the described metadata of described metadata is number different, described server sends the latest edition of the metadata of described latest edition and described metadata number to described terminal, and second determining unit 608, with the latest edition number of the physical template in described server, current version number according to described physical template determines whether that the physical template needing to send latest edition is to described terminal, second processing unit 610, when the current version of described physical template is identical with the latest edition of described physical template, described server determines that the physical template not needing to send described latest edition is to described terminal, and send the latest edition number of described physical template to described terminal, when the latest edition of current version number and the described physical template of described physical template is number different, described server send the physical template of described latest edition with the latest edition of described physical template number to described terminal.
In this technical scheme, each request metadata Hui Daishang version number of client (symbol of an identification metadata variation, as timestamp), first time passes 0.Service end can be looked into according to the version number uploaded and see if there is metadata variation, if there is variation to return new metadata and version number, if do not have variation to return new version number.Client storing metadata and version number for.Same, client each request entity template Hui Daishang version number (symbol of an identified entities template variation, as timestamp), first time passes 0.According to the version number uploaded, service end can check whether physical template has variation, if there is variation to return new physical template and version number, if do not have variation to return new version number.Client storage entity template and version number for.
In technique scheme, preferably, also comprise: edit cell 612, according to newly-increased, the amendment received, delete, hide and/or replace order, the metadata stored and physical template increased newly, revises, delete, hide and/or replace, with the physical template of the metadata and described latest edition that obtain described latest edition.
In this technical scheme, when needs add displaying field to entity, only need the description adding correspondent entity field in server end metadata, then in physical template, add this field description.Client just can according to the new page after above-mentioned rule generation interpolation entities field after getting new metadata and physical template.
More than be described with reference to the accompanying drawings technical scheme of the present invention, by the technical program, make client can the amendment of self-adaptation entity attribute, the compatibility of the client release of reinforcement, reduce client development and maintenance cost, make client iterative development more efficient.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a page display method, is applied to terminal, it is characterized in that, comprising:
When detecting that the application program of terminal is activated, send metadata updates request, to obtain the metadata of latest edition to server;
When detecting that the entity entering described application program shows interface, to the request of described server sending entity template renewal, to obtain the physical template of latest edition;
Travel through the entities field in the Pages entity data of described application program, and generate page layout's file according to the metadata of described latest edition and the physical template of described latest edition;
Full page layout is generated according to described page layout file and target element, and by full page layout described in described terminal display.
2. page display method according to claim 1, is characterized in that,
The current version number of the metadata in described terminal is comprised in described metadata updates request, determine whether that the metadata that need send latest edition to described terminal according to the current version of described metadata number with the latest edition number of the metadata in described server for described server
When the latest edition of current version number and the described metadata of described metadata is number identical, described server determines that the metadata not needing to send described latest edition is to described terminal, and sends described latest edition number to described terminal,
When the latest edition of current version number and the described metadata of described metadata is number different, described server sends the latest edition of the metadata of described latest edition and described metadata number to described terminal; And
The current version number of the physical template in described terminal is comprised in described physical template request, determine whether that the physical template that need send latest edition to described terminal according to the current version of described physical template number with the latest edition number of the physical template in described server for described server
When the current version of described physical template is identical with the latest edition of described physical template, described server determines that the physical template that do not need to send described latest edition is to described terminal, and the latest edition sending described physical template is number to described terminal,
When the latest edition of current version number and the described physical template of described physical template is number different, described server send the physical template of described latest edition with the latest edition of described physical template number to described terminal.
3. page display method according to claim 1, it is characterized in that, entities field in the Pages entity data of the described application program of described traversal, and generate page layout's file according to the metadata of described latest edition and the physical template of described latest edition, specifically comprise:
Travel through the described entities field in the Pages entity data of described application program, when comprising described entities field in the sets of fields of the physical template of described latest edition, from the dictionary of the metadata of described latest edition, then obtain the target metadata of described entities field, to generate described page layout file according to described target metadata and physical template corresponding to described entities field.
4. page display method according to claim 1, is characterized in that, described according to described page layout file and target element generation full page layout, specifically comprises:
By the assembly that described page layout file finds each entities field corresponding from described target element, initialization component assignment assembly layout attribute and numerical attribute, to generate described full page layout.
5. page display method according to any one of claim 1 to 4, is characterized in that, also comprises:
Described server is ordered according to increasing newly, revise, delete, hide and/or replacing of receiving, the metadata stored and physical template increased newly, revises, delete, hide and/or replace, with the physical template of the metadata and described latest edition that obtain described latest edition.
6. a page presentation device, for terminal, is characterized in that, comprising:
First transmitting element, when detecting that the application program of terminal is activated, sends metadata updates request, to obtain the metadata of latest edition to server;
Second transmitting element, when detecting that the entity entering described application program shows interface, to the request of described server sending entity template renewal, to obtain the physical template of latest edition;
Generation unit, travels through the entities field in the Pages entity data of described application program, and generates page layout's file according to the metadata of described latest edition and the physical template of described latest edition;
Display unit, generates full page layout according to described page layout file and target element, and by full page layout described in described terminal display.
7. page presentation device according to claim 6, is characterized in that, described generation unit specifically for:
Travel through the described entities field in the Pages entity data of described application program, when comprising described entities field in the sets of fields of the physical template of described latest edition, from the dictionary of the metadata of described latest edition, then obtain the target metadata of described entities field, to generate described page layout file according to described target metadata and physical template corresponding to described entities field.
8. the page presentation device according to claim 6 or 7, is characterized in that, described display unit specifically for:
By the assembly that described page layout file finds each entities field corresponding from described target element, initialization component assignment assembly layout attribute and numerical attribute, to generate described full page layout.
9. a page presentation device, for server, is characterized in that, comprising:
Receiving element, the metadata updates request that receiving terminal sends and physical template update request, wherein, in described metadata updates request, comprise the current version number of the metadata in described terminal, in described physical template request, comprise the current version number of the physical template in described terminal;
First determining unit, with the latest edition number of the metadata in described server, the current version number according to described metadata determines whether that the metadata needing to send latest edition is to described terminal;
First processing unit, when the latest edition of current version number and the described metadata of described metadata is number identical, described server determines that the metadata not needing to send described latest edition is to described terminal, and sends described latest edition number to described terminal,
When the latest edition of current version number and the described metadata of described metadata is number different, described server sends the latest edition of the metadata of described latest edition and described metadata number to described terminal; And
Second determining unit, with the latest edition number of the physical template in described server, the current version number according to described physical template determines whether that the physical template needing to send latest edition is to described terminal,
Second processing unit, when the current version of described physical template is identical with the latest edition of described physical template, described server determines that the physical template that do not need to send described latest edition is to described terminal, and the latest edition sending described physical template is number to described terminal
When the latest edition of current version number and the described physical template of described physical template is number different, described server send the physical template of described latest edition with the latest edition of described physical template number to described terminal.
10. page presentation device according to claim 9, is characterized in that, also comprise:
Edit cell, according to newly-increased, the amendment received, delete, hide and/or replace order, the metadata stored and physical template increased newly, revises, delete, hide and/or replace, with the physical template of the metadata and described latest edition that obtain described latest edition.
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 true CN104391725A (en) | 2015-03-04 |
CN104391725B 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) |
Cited By (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104866349A (en) * | 2015-05-25 | 2015-08-26 | 小米科技有限责任公司 | Application updating method and device |
CN105159691A (en) * | 2015-10-30 | 2015-12-16 | 北京奇虎科技有限公司 | Method and device for updating metadata |
CN105392065A (en) * | 2015-12-28 | 2016-03-09 | Tcl集团股份有限公司 | Method and system for arranging page content of intelligent television |
CN105487889A (en) * | 2015-11-26 | 2016-04-13 | 小米科技有限责任公司 | Application interface updating method and device |
CN106250158A (en) * | 2016-08-01 | 2016-12-21 | 广州优视网络科技有限公司 | The layout method of a kind of client end interface, device and mobile device |
CN106651482A (en) * | 2015-10-30 | 2017-05-10 | 湖南梅山印办公服务有限公司 | Method for opening shop with one click online through the internet |
CN106708480A (en) * | 2015-07-29 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Management platform realization method and apparatus |
CN106775637A (en) * | 2016-11-18 | 2017-05-31 | 腾讯音乐娱乐(深圳)有限公司 | The page display method and device of a kind of application program |
CN106990950A (en) * | 2017-01-09 | 2017-07-28 | 深圳大宇无限科技有限公司 | The method and apparatus of interface layout |
CN107015819A (en) * | 2016-01-27 | 2017-08-04 | 阿里巴巴集团控股有限公司 | The method and apparatus of html template are updated in server end |
CN107391507A (en) * | 2016-05-16 | 2017-11-24 | 阿里巴巴集团控股有限公司 | The update method and device of the mobile terminal page |
CN107479861A (en) * | 2016-06-07 | 2017-12-15 | 阿里巴巴集团控股有限公司 | Page processing method and its system |
CN107562445A (en) * | 2016-06-29 | 2018-01-09 | 中国电信股份有限公司 | Methods, devices and systems for dynamically more new user interface |
CN107992346A (en) * | 2017-10-19 | 2018-05-04 | 用友网络科技股份有限公司 | Interface display method, the interface display system of application program |
CN108282518A (en) * | 2017-12-26 | 2018-07-13 | 阿里巴巴集团控股有限公司 | A kind of customer terminal webpage generation method and device |
CN109033363A (en) * | 2018-07-26 | 2018-12-18 | 广东浪潮大数据研究有限公司 | A kind of method, device and equipment of customer in response end request |
CN109165066A (en) * | 2018-08-02 | 2019-01-08 | 五八有限公司 | Method of adjustment, methods of exhibiting, device, storage medium and the terminal of page layout |
CN109246035A (en) * | 2018-08-01 | 2019-01-18 | 平安科技(深圳)有限公司 | A kind of method and device of data transfer management |
CN109408189A (en) * | 2018-11-02 | 2019-03-01 | 北京字节跳动网络技术有限公司 | Dynamic adjusting method, device, equipment and the medium of client end interface layout |
CN109522068A (en) * | 2018-10-17 | 2019-03-26 | 大唐网络有限公司 | The edit methods of the methods of exhibiting and system of the page, page data |
CN109582402A (en) * | 2017-09-29 | 2019-04-05 | 北京金山安全软件有限公司 | page display method and device |
CN109815428A (en) * | 2018-12-28 | 2019-05-28 | 陈德芹 | A kind of online table caching method and device |
CN109829144A (en) * | 2018-12-28 | 2019-05-31 | 陈德芹 | A kind of across table reference method and device of online table |
CN109829143A (en) * | 2018-12-28 | 2019-05-31 | 陈德芹 | A kind of online table method of summary and device |
CN110020280A (en) * | 2017-09-08 | 2019-07-16 | 腾讯科技(深圳)有限公司 | Application page methods of exhibiting, device, storage medium and computer equipment |
CN110321227A (en) * | 2018-03-29 | 2019-10-11 | 腾讯科技(深圳)有限公司 | Page data synchronous method, electronic device and computer readable storage medium |
CN111190591A (en) * | 2019-09-06 | 2020-05-22 | 腾讯科技(深圳)有限公司 | Interface display method, data processing method, device, terminal and server |
CN111782216A (en) * | 2020-07-23 | 2020-10-16 | 平安银行股份有限公司 | Page generation method, server and storage medium |
CN112306587A (en) * | 2019-07-15 | 2021-02-02 | 腾讯科技(深圳)有限公司 | Page display processing method and device and terminal equipment |
CN112328244A (en) * | 2020-05-27 | 2021-02-05 | 北京沃东天骏信息技术有限公司 | Method for displaying page configuration, server, terminal equipment and electronic equipment |
CN112769741A (en) * | 2019-11-06 | 2021-05-07 | 中移物联网有限公司 | Message communication method and electronic equipment |
CN113825008A (en) * | 2021-11-24 | 2021-12-21 | 飞狐信息技术(天津)有限公司 | Active page display method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060004845A1 (en) * | 2004-06-03 | 2006-01-05 | Microsoft Corporation | Method and apparatus for generating user interfaces based upon automation with full flexibility |
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 |
-
2014
- 2014-12-08 CN CN201410743550.2A patent/CN104391725B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060004845A1 (en) * | 2004-06-03 | 2006-01-05 | Microsoft Corporation | Method and apparatus for generating user interfaces based upon automation with full flexibility |
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 |
Cited By (42)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104866349A (en) * | 2015-05-25 | 2015-08-26 | 小米科技有限责任公司 | Application updating method and device |
CN106708480A (en) * | 2015-07-29 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Management platform realization method and apparatus |
CN106651482A (en) * | 2015-10-30 | 2017-05-10 | 湖南梅山印办公服务有限公司 | Method for opening shop with one click online through the internet |
CN105159691A (en) * | 2015-10-30 | 2015-12-16 | 北京奇虎科技有限公司 | Method and device for updating metadata |
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 |
CN107015819A (en) * | 2016-01-27 | 2017-08-04 | 阿里巴巴集团控股有限公司 | The method and apparatus of html template are updated in server end |
CN107391507A (en) * | 2016-05-16 | 2017-11-24 | 阿里巴巴集团控股有限公司 | The update method and device of the mobile terminal page |
CN107479861B (en) * | 2016-06-07 | 2021-04-06 | 阿里巴巴集团控股有限公司 | Page processing method and system |
CN107479861A (en) * | 2016-06-07 | 2017-12-15 | 阿里巴巴集团控股有限公司 | Page processing method and its 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 |
CN106775637A (en) * | 2016-11-18 | 2017-05-31 | 腾讯音乐娱乐(深圳)有限公司 | The page display method and device of a kind of application program |
CN106990950A (en) * | 2017-01-09 | 2017-07-28 | 深圳大宇无限科技有限公司 | The method and apparatus of interface layout |
CN110020280A (en) * | 2017-09-08 | 2019-07-16 | 腾讯科技(深圳)有限公司 | Application page methods of exhibiting, device, storage medium and computer equipment |
CN110020280B (en) * | 2017-09-08 | 2022-12-02 | 腾讯科技(深圳)有限公司 | Application page display method and device, storage medium and computer equipment |
CN109582402A (en) * | 2017-09-29 | 2019-04-05 | 北京金山安全软件有限公司 | page display method and device |
CN107992346B (en) * | 2017-10-19 | 2021-09-03 | 用友网络科技股份有限公司 | Interface display method and interface display system of application program |
CN107992346A (en) * | 2017-10-19 | 2018-05-04 | 用友网络科技股份有限公司 | Interface display method, the 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 |
WO2020024375A1 (en) * | 2018-08-01 | 2020-02-06 | 平安科技(深圳)有限公司 | Data transmission management method and device |
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 |
CN109408189A (en) * | 2018-11-02 | 2019-03-01 | 北京字节跳动网络技术有限公司 | Dynamic adjusting method, device, equipment and the medium of client end interface layout |
CN109829144A (en) * | 2018-12-28 | 2019-05-31 | 陈德芹 | A kind of across table reference method and device of online table |
CN109829143A (en) * | 2018-12-28 | 2019-05-31 | 陈德芹 | A kind of online table method of summary and device |
CN109815428A (en) * | 2018-12-28 | 2019-05-28 | 陈德芹 | A kind of online table caching method and device |
CN109815428B (en) * | 2018-12-28 | 2021-04-20 | 陈德芹 | Online table caching method and device |
CN112306587A (en) * | 2019-07-15 | 2021-02-02 | 腾讯科技(深圳)有限公司 | Page display processing method and device and terminal equipment |
CN111190591A (en) * | 2019-09-06 | 2020-05-22 | 腾讯科技(深圳)有限公司 | Interface display method, data processing method, device, terminal and server |
CN111190591B (en) * | 2019-09-06 | 2022-02-01 | 腾讯科技(深圳)有限公司 | Interface display method, data processing method, device, terminal and server |
CN112769741A (en) * | 2019-11-06 | 2021-05-07 | 中移物联网有限公司 | Message communication method and electronic equipment |
CN112328244A (en) * | 2020-05-27 | 2021-02-05 | 北京沃东天骏信息技术有限公司 | Method for displaying page configuration, server, terminal equipment and electronic equipment |
CN111782216A (en) * | 2020-07-23 | 2020-10-16 | 平安银行股份有限公司 | Page generation method, server and storage medium |
CN111782216B (en) * | 2020-07-23 | 2024-06-21 | 平安银行股份有限公司 | Page generation method, server and storage medium |
CN113825008A (en) * | 2021-11-24 | 2021-12-21 | 飞狐信息技术(天津)有限公司 | Active page display method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104391725B (en) | 2017-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104391725A (en) | Page display method and page display device | |
US10275355B2 (en) | Method and apparatus for cleaning files in a mobile terminal and associated mobile terminal | |
US11003625B2 (en) | Method and apparatus for operating on file | |
US9460107B2 (en) | Filename-based inference of repository actions | |
CN105279278A (en) | File searching method and device | |
CN108536745B (en) | Shell-based data table extraction method, terminal, equipment and storage medium | |
CN107783770B (en) | Page configuration updating method, device, server and medium | |
CN110717536A (en) | Method and device for generating training sample | |
CN111984659B (en) | Data updating method, device, computer equipment and storage medium | |
CN105138532A (en) | Method, device and system for processing service data | |
CN115291931A (en) | Version change processing method and device, electronic equipment and storage medium | |
CN109144620B (en) | Skipping method and device for suspension window permission setting interface | |
CN108334333B (en) | Method and device for updating source code base | |
CN108196921B (en) | Document development method and device, computer equipment and storage medium | |
CN109840078B (en) | Method and device for collaboratively editing hierarchical metadata | |
CN109325160B (en) | Webpage snapshot generating method and device | |
CN110532526A (en) | Data method for transformation, electronic device and computer readable storage medium | |
CN116048609A (en) | Configuration file updating method, device, computer equipment and storage medium | |
CN114328965A (en) | Knowledge graph updating method and device and computer equipment | |
CN115004667B (en) | Information pushing method, device, electronic equipment and computer readable medium | |
CN112632266B (en) | Data writing method and device, computer equipment and readable storage medium | |
CN108197164A (en) | Business data storage method and device | |
US10210149B2 (en) | Personalized wiki-book annotation | |
CN109857759B (en) | Concurrent data processing method and device, computer equipment and storage medium | |
CN111610908B (en) | Method for generating frame diagram, computer equipment and readable 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 |