A method for filling an input page and a computer program product
By automatically parsing and updating the key-value pairs of the input page, the problem of low input page filling efficiency and data protocol reuse is solved, efficient data filling and uploading is achieved, and the strong coupling between the client code and the server is decoupled.
Patent Information
- Application Number
- CN202111038100.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-06
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-09-06
AI Technical Summary
In the existing technology, the input page filling efficiency is low, the client code is strongly coupled with the server, and the data protocol cannot be reused between pages.
Provides an entry page filling method that automatically parses and updates the attribute values of the entry items by receiving key-value pairs issued by the server, and converts the data format input by the user into the key-value pairs to be uploaded to achieve automatic data processing. Fill and upload.
It improves the efficiency of data filling and uploading, decouples the strong coupling relationship between client code and server, and realizes the reuse of data protocols between pages.
Smart Images

Figure CN113962202B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method for filling an input page and a computer program product. Background Art
[0002] Currently, the page data sent by the server in the input type page is only described in the form of multiple key-value pairs. The meaning of the keywords is unclear and cannot be automatically parsed and filled by the program. The data sent by each page can only be manually parsed by the programmer writing special code and then filled into the input item for display.
[0003] Therefore, the existing technology has the following problems: Each page client developer needs to manually process the data sent by the server, which is inefficient. The client code is strongly coupled with the server. If the server needs to change the protocol data format due to business iteration, technical improvement, etc., the client personnel have to make corresponding modifications. Different input pages define different data formats, resulting in the inability to reuse data protocols between pages. Summary of the invention
[0004] The present invention provides a method for filling an input page and a computer program product, which are used to solve the problems in the prior art of low efficiency of filling an input page, strong coupling between client code and server, and inability to reuse data protocols between pages.
[0005] The present invention provides a method for filling an input page, comprising:
[0006] Receiving first data sent by a server for filling in a client input page, wherein the first data includes at least one key-value pair, wherein the input page includes at least one input item, and the key-value pair corresponds to the input item one by one;
[0007] Determine an entry item corresponding to a target key-value pair, and update an attribute value of the entry item according to a keyword and a value of the target key-value pair;
[0008] Displays the updated entry.
[0009] According to a method for filling an entry page provided by the present invention, the target key-value pair group includes a tag key-value pair, and determining the entry item corresponding to the target key-value pair group includes:
[0010] The value of the tag key-value pair in the target key-value pair group is matched with the entry item name to determine the entry item corresponding to the target key-value pair group, wherein the value of the tag key-value pair includes the entry item name.
[0011] According to a method for filling an entry page provided by the present invention, the attribute value of the entry item is updated according to the keyword and value of the target key-value pair to be updated, including:
[0012] Convert the format of the keyword and value of each target key-value pair group to generate keywords and values after format conversion;
[0013] Determine an entry instance of an entry corresponding to the target key-value pair, wherein the entry instance includes a plurality of attributes;
[0014] The attribute values of the multiple attributes of the entry instance are updated based on the keywords and values after format conversion.
[0015] According to a method for filling an entry page provided by the present invention, the method further includes:
[0016] Acquire second data input by a user into the entry page; the second data includes an attribute value of an entry item of the entry page;
[0017] The second data is assembled into a key-value pair to be uploaded and sent to the server.
[0018] According to a method for filling an input page provided by the present invention, assembling the second data into a key-value pair group to be uploaded includes:
[0019] determining an entry instance of an entry corresponding to the second data, wherein the entry instance includes a plurality of attributes;
[0020] updating attribute values of a plurality of attributes in the entry instance based on the second data;
[0021] The multiple attributes of the entry instance and the corresponding attribute values are formatted to generate the key-value pairs to be uploaded.
[0022] According to a method for filling an input page provided by the present invention, the step of obtaining second data input by a user into the input page includes:
[0023] Obtaining a first attribute value input by a user into a first entry item;
[0024] Matching the first entry item with the pre-stored linkage relationship of the entry page; wherein the linkage relationship includes a target attribute value of the target entry item;
[0025] If the match is successful, the target attribute value corresponding to the linkage relationship and the first attribute value are used as the second data;
[0026] If the match fails, the first attribute value is used as the second data.
[0027] According to a filling method of an input page provided by the present invention, the linkage relationship further includes a source input item and a target input item that are in a mapping relationship with each other, the source input item includes a source name, a source attribute and a source attribute value, and the target input item includes a target name and a target attribute;
[0028] Matching the first entry item with the pre-stored linkage relationship of the entry page includes:
[0029] Matching the name, first attribute and first attribute value of the first entry item with the source name, source attribute and source attribute value of the source entry item respectively;
[0030] The target attribute value corresponding to the linkage relationship and the first attribute value are used as second data, including:
[0031] A target entry item having a mapping relationship with the source entry item in the linkage relationship is determined, and a target attribute value of the target entry item and the first attribute value are used as second data.
[0032] The present invention also provides a device for filling an input page, comprising:
[0033] A first processing unit is configured to receive first data sent by a server for filling in an input page of a client, wherein the first data includes at least one key-value pair, wherein the input page includes at least one input item, and the key-value pair corresponds to the input item in a one-to-one manner;
[0034] A second processing unit is used to determine an entry item corresponding to the target key-value pair group, and update the attribute value of the entry item according to the keyword and value of the target key-value pair group;
[0035] The third processing unit is used to display the updated entry items.
[0036] According to a device for filling an entry page provided by the present invention, the target key-value pair group includes a tag key-value pair, and the second processing unit is further used for:
[0037] The value of the tag key-value pair in the target key-value pair group is matched with the entry item name to determine the entry item corresponding to the target key-value pair group, wherein the value of the tag key-value pair includes the entry item name.
[0038] According to a device for filling an entry page provided by the present invention, the second processing unit is further used for:
[0039] Convert the format of the keyword and value of each target key-value pair group to generate keywords and values after format conversion;
[0040] Determine an entry instance of an entry corresponding to the target key-value pair, wherein the entry instance includes a plurality of attributes;
[0041] The attribute values of the multiple attributes of the entry instance are updated based on the keywords and values after format conversion.
[0042] According to a device for filling an entry page provided by the present invention, the device further includes a fourth processing unit, which is used to:
[0043] Acquire second data input by a user into the entry page; the second data includes an attribute value of an entry item of the entry page;
[0044] The second data is assembled into a key-value pair to be uploaded and sent to the server.
[0045] According to a device for filling an entry page provided by the present invention, the fourth processing unit is further used for:
[0046] determining an entry instance of an entry corresponding to the second data, wherein the entry instance includes a plurality of attributes;
[0047] updating attribute values of a plurality of attributes in the entry instance based on the second data;
[0048] The multiple attributes of the entry instance and the corresponding attribute values are formatted to generate the key-value pairs to be uploaded.
[0049] According to a device for filling an entry page provided by the present invention, the fourth processing unit is further used for:
[0050] Obtaining a first attribute value input by a user into a first entry item;
[0051] Matching the first entry item with the pre-stored linkage relationship of the entry page; wherein the linkage relationship includes a target attribute value of the target entry item;
[0052] If the match is successful, the target attribute value corresponding to the linkage relationship and the first attribute value are used as the second data;
[0053] If the match fails, the first attribute value is used as the second data.
[0054] According to a filling device for an input page provided by the present invention, the linkage relationship further includes a source input item and a target input item that are in a mapping relationship with each other, the source input item includes a source name, a source attribute and a source attribute value, and the target input item includes a target name and a target attribute;
[0055] The fourth processing unit is further configured to:
[0056] Matching the name, first attribute and first attribute value of the first entry item with the source name, source attribute and source attribute value of the source entry item respectively;
[0057] The fourth processing unit is further configured to:
[0058] A target entry item having a mapping relationship with the source entry item in the linkage relationship is determined, and a target attribute value of the target entry item and the first attribute value are used as second data.
[0059] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned methods for filling in an entry page are implemented.
[0060] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for filling in an entry page as described above are implemented.
[0061] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for filling in an entry page as described in any one of the above are implemented.
[0062] The method and device for filling an entry page provided by the present invention receive multiple key-value pairs sent by a server for filling an entry page of a client, each key-value pair corresponds to an entry item in the entry page, updates the attribute value of the entry item according to the keyword and value of the key-value pair, and displays the updated entry item, thereby realizing automatic parsing and filling of data sent by the server, improving the efficiency of data filling, and the protocol data format based on the key-value pair can solve the problem of reuse between pages and resolve the strong coupling relationship between client code and server. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0064] Figure 1 It is one of the flow charts of the filling method of the input page provided by the present invention;
[0065] Figure 2 It is a schematic diagram of data sent by the server provided by the present invention and the corresponding display interface;
[0066] Figure 3This is the second flow chart of the method for filling in the input page provided by the present invention;
[0067] Figure 4 This is the third flow chart of the method for filling in the input page provided by the present invention;
[0068] Figure 5 This is a fourth flow chart of the method for filling in an input page provided by the present invention;
[0069] Figure 6 This is the fifth flow chart of the method for filling in the input page provided by the present invention;
[0070] Figure 7 It is a schematic diagram of the multi-level linkage relationship between input items provided by the present invention;
[0071] Figure 8 It is a schematic diagram of the page style and related linkage description provided by the present invention;
[0072] Fig. 9 It is a structural schematic diagram of the filling device of the input page provided by the present invention;
[0073] Fig.10 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0074] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0075] Figure 1 A flow chart of the method for filling in an input page provided by the present invention is shown as follows: Figure 1 As shown, the method includes:
[0076] Step 110, receiving first data sent by the server for filling in the client input page, wherein the first data includes at least one key-value pair, wherein the input page includes at least one input item, and the key-value pair corresponds to the input item one by one.
[0077] Specifically, the client receives page data sent by the server to update the initial value or historical value of the entry item. Figure 2 The following is a schematic diagram of the data sent by the server (a) and the corresponding display page (b). Figure 2 As shown, the entire entry page is described by json data, which contains multiple key-value pairs.<key:value>In the form of a key-value pair, each key-value pair describes an entry and contains a label key-value pair to associate with the entry. The key of the label key-value pair is label, and the value of the label key-value pair is the entry name. The name of each attribute of the entry is described by key, and the attribute value is described by value. It should be noted that <key:value>The key in the element is consistent with the attribute name in the entry. Some common entry attributes are shown in Table 1:
[0078] Table 1
[0079]
[0080] Step 120: determine the entry item corresponding to the target key-value pair, and update the attribute value of the entry item according to the key value of the target key-value pair.
[0081] Specifically, since each key-value pair group contains a label key-value pair with key label for associating with an entry item, the entry item corresponding to the target key-value pair group can be determined by matching the value of the label key-value pair of the target key-value pair group with the entry item name.
[0082] Step 130, display the updated entry.
[0083] The method for filling an entry page provided by the present invention receives multiple key-value pairs sent by a server for filling an entry page of a client, each key-value pair corresponds to an entry item in the entry page, updates the attribute value of the entry item according to the keyword and value of the key-value pair, and displays the updated entry item, thereby realizing automatic parsing and filling of data sent by the server, improving the efficiency of data filling, and the protocol data format based on the key-value pair can solve the problem of reuse between pages and resolve the strong coupling relationship between client code and server.
[0084] Based on the above embodiments, Figure 3 A schematic diagram of a process of updating the attribute value of the entry item according to the keyword and value of the target key-value pair, such as Figure 3 As shown, including:
[0085] Step 310: Convert the format of the key word and value of each target key-value pair group to generate the converted key word and value.
[0086] Specifically, the keywords and values of each target key-value pair group are format-converted and added to the corresponding Map object, wherein the Map object is a collection of key-value pairs, and one Map object corresponds to multiple key-value pairs describing one entry.
[0087] Step 320: Determine an entry instance of an entry corresponding to the target key-value pair, wherein the entry instance includes a plurality of attributes.
[0088] Among them, the entry item instance is created according to the entry item class. The entry item instance contains a label attribute and a set of functional attributes. The attributes are finite and have clear meanings and correspond one-to-one with the keys in the above data protocol. The entry item instance also provides a data update function for updating the attribute values of multiple attributes of the entry item instance.
[0089] Step 330: Update the attribute values of the multiple attributes of the entry instance based on the keywords and values after format conversion.
[0090] Specifically, a Map object containing key-value pairs is passed as a parameter to a data update function, and the data update function reassigns the attribute value of the functional attribute of the corresponding entry instance to cover the initial value or historical value of the attribute.
[0091] The present invention writes an entry item class and provides a data update function, a label attribute and a group of functional attributes, wherein the data update function is used to assign values to attributes in the entry item class, the label attribute is used to associate the entry item with a certain group of data issued, the functional attribute corresponds to multiple attributes of the entry item, and the entry item class is used to encapsulate related filling operations of the entry item to realize automatic filling of page data, thereby improving the development efficiency of client personnel.
[0092] Based on the above embodiment, the method for filling in the input page also includes uploading the page data input by the user to the server. The specific process is as follows: Figure 4 As shown:
[0093] Step 410, obtaining second data input by the user into the entry page; the second data includes attribute values of entry items of the entry page.
[0094] Step 420: assemble the second data into key-value pairs to be uploaded and send them to the server.
[0095] The data uploading method adopted by the present invention can obtain the page data input by the user, perform automatic format conversion and upload it to the server, avoiding the manual assembly of data by client personnel before uploading the data, thereby improving the efficiency of data uploading.
[0096] Based on the above embodiments, Figure 5 A schematic diagram of a process of assembling the second data into a key-value pair to be uploaded, such as Figure 5 As shown, including:
[0097] Step 510: Determine an entry item instance of an entry item corresponding to the second data, wherein the entry item instance includes a plurality of attributes.
[0098] Step 520: Update the attribute values of multiple attributes in the entry instance based on the second data.
[0099] Among them, the entry item instance is created according to the entry item class. The entry item instance contains a label attribute and a set of functional attributes. The attributes are finite and have clear meanings and correspond one-to-one with the keys in the above data protocol. The entry item instance also provides a data extraction function for obtaining the attribute values of multiple attributes of the entry item class.
[0100] Step 530 : Convert the format of the multiple attributes of the entry instance and the corresponding attribute values to generate the key-value pairs to be uploaded.
[0101] Specifically, the multiple attributes and the corresponding attribute values are added to the corresponding Map object in the form of key-value pairs, an array of Map objects corresponding to the entry page is generated, the array is converted into the corresponding json format, and interacts with the server.
[0102] The present invention writes an entry item class and provides a data extraction function, a label attribute and a group of functional attributes, wherein the data extraction function is used to obtain the attribute value in the entry item class, the label attribute is used to associate the entry item with a certain group of uploaded data, the functional attribute corresponds to multiple attributes of the entry item, and the entry item class is used to encapsulate the relevant filling operations of the entry item to realize the automatic uploading of the filled page data, thereby improving the development efficiency of the client personnel.
[0103] Based on the above embodiments, Figure 6 A schematic diagram of a process for obtaining the second data input by the user to the input page, such as Figure 6 As shown, specifically including:
[0104] Step 610: Obtain a first attribute value input by the user into a first entry item.
[0105] Step 620, matching the first entry item with the pre-stored linkage relationship of the entry page; wherein the linkage relationship includes a target attribute value of the target entry item.
[0106] Specifically, when the user enters the first attribute value of the first entry item on the entry page, since there may be a linkage relationship between different entry items (the change of the attribute value of a certain entry item will cause the attribute values of other entry items to change synchronously), it is necessary to predict the change of the attribute value corresponding to the linked target entry item based on the input data. In order to solve this type of problem, the present invention pre-stores the linkage relationship corresponding to the entry page, matches the linkage relationship of the first entry item with the entry page where it is located, wherein the linkage relationship includes the target attribute value of the target entry item, so as to realize the synchronous update of the attribute value of the target entry item based on the linkage relationship.
[0107] Step 630: If the match is successful, the target attribute value corresponding to the linkage relationship and the first attribute value are used as the second data.
[0108] Specifically, when the attribute value of the first entry item meets the linkage relationship, the corresponding attribute value of the target entry item in the linkage relationship is set as the target attribute value.
[0109] Step 640: If the match fails, use the first attribute value as the second data.
[0110] Specifically, a matching failure indicates that there is no target attribute value that has a linkage relationship with the first attribute value of the first entry item.
[0111] Based on the above embodiment, the linkage relationship further includes a source entry item and a target entry item that are in a mapping relationship with each other, the source entry item includes a source name, a source attribute and a source attribute value, and the target entry item includes a target name and a target attribute.
[0112] Based on the above embodiment, the linkage relationship further includes a source entry item and a target entry item that are mutually mapped, the source entry item includes a source name, a source attribute and a source attribute value, and the target entry item includes a target name and a target attribute. Step 620 specifically includes:
[0113] The name, first attribute and first attribute value of the first entry item are matched with the source name, source attribute and source attribute value of the source entry item respectively.
[0114] Step 630 specifically includes: determining a target entry item that has a mapping relationship with the source entry item in the linkage relationship, and using the target attribute value of the target entry item and the first attribute value as the second data.
[0115] Specifically, the present invention designs a data structure to describe the linkage relationship between entry items. First, the following triple form is defined:<label,key,value> , which means to specify an entry named label, which contains an attribute named key, and the attribute value corresponding to the attribute key is value. Then, the linkage relationship between the entry items is expressed in the following form [<A,km,vm> :<B,kn,vn> ],in,<A,km,vm> and<B,kn,vn> are source entry items and target entry items that are mapped to each other.<A,km,vm> It is the source entry item, including the source name A, source attribute km and source attribute value vm;<B,kn,vn> It is the target entry, including the target attribute kn and the target attribute value vn. It means that when the value of the km attribute in entry A changes to vm, the value of the kn attribute in entry B changes to vn. The attribute that triggers the linkage relationship is called the source attribute, and the attribute that changes with the linkage relationship is called the target attribute. Use a collection to save the linkage relationship in the page.
[0116] The first attribute value entered by the user into the first entry item is linked to the source entry item in the above linkage relationship.<A,km,vm> Matching is performed, that is, the name, the first attribute and the first attribute value of the first entry are matched with A, km and vm respectively.
[0117] Furthermore, if a change in a certain attribute of a certain entry item causes several attributes of other entry items to change in response, it is called a first-level linkage, and so on and so forth, multiple-level linkage can be formed. Figure 7 It is a schematic diagram of the multi-level linkage relationship between input items, such as Figure 7 As shown in the figure, there are five linkage relationships of entry item A, entry item B, entry item C, entry item D, and entry item E. The linkage relationship table corresponding to the linkage relationship is as follows:
[0118] [<A,Ka1,Va1> :<B,Kb2,Vb2> ]
[0119] [<A,Ka1,Va1> :<B,Kb3,Vb3> ]
[0120] [<A,Ka1,Va1> :<C,Kc1,Vc1> ]
[0121] [<B,Kb2,Vb2> :<D,Kd2,Vd2> ]
[0122] [<B,Kb3,Vb3> :<E,Ke1,Ve1> ]
[0123] The following describes the application of multi-level linkage between input items in actual scenarios. Figure 8 It is a page style and related linkage description. As shown in Figures (a) and (b), when the user switches between the option values of entry item A (seller type) "Individual / Enterprise", the title of entry item B will change with A between "Personal ID / Enterprise ID". At the same time, the option range of entry B will also change. When A is "Individual", the option range is "ID Card / Passport", and when A is "Enterprise", the option range is "Company Business License / Business Registration Certificate". When entry item B selects "ID Card", entry item D "Select Nationality" automatically corresponds to "China". When entry item A switches between "Individual / Enterprise", the title of entry item C switches between "Place of Household Registration / Place of Registration". When entry item A switches between "Individual / Enterprise", entry item D "Select Nationality" is displayed / hidden. When entry item A switches between "Individual / Enterprise", entry item E "Validity Period" is displayed / hidden. When entry item A switches between "Individual / Enterprise", entry item F "Document Number" is displayed / hidden.
[0124] The linkage relationship table corresponding to the above linkage relationship is as follows:
[0125] [<A, value, "Individual">: <B, title, "Individual Certificate">]
[0126] [<A, value, "Individual">: <B, options, "ID Card / Passport">]
[0127] [<A, value, "Enterprise">: <B, title, "Enterprise Certificate">]
[0128] [<A, value, "Enterprise">: <B, options, "Company Business License / Commercial Registration Certificate">]
[0129] [<A, value, "Individual">: <C, title, "Household Registration Location">]
[0130] [<A, value, "Enterprise">: <C, title, "Registration Location">]
[0131] [<B, value, "ID Card">: <C, value, "China">]
[0132] [<A, value, "Individual">: <D, isVisable, true>]
[0133] [<A, value, "Individual">: <E, isVisable, true>]
[0134] [<A, value, "Individual">: <F, isVisable, true>]
[0135] [<A, value, "Enterprise">: <D, isVisable, false>]
[0136] [<A, value, "Enterprise">: <E, isVisable, false>]
[0137] [<A, value, "Enterprise">: <F, isVisable, false>]
[0138] Among them, characters such as A, B, C, etc. are entry identifiers, and in actual use, they can be replaced by unique id identifiers. Strings such as "title / options / value / isVisable" are pre-defined reusable attribute names.
[0139] Most of the current linkage relationships are configured in the code logic of the page. If the demand changes, the code logic needs to be modified, resulting in coupling. The linkage relationship set provided by the present invention can be dynamically configured by the server. When the page is initialized or the attribute value of an entry item in the page changes, the linkage relationship is traversed and parsed to execute.
[0140] The following is a description of the filling device for the entry page provided by the present invention. The device described below and the discovery method described above can be referenced to each other.
[0141] Fig. 9 A schematic diagram of the structure of the filling device for the input page provided by the present invention, as shown in FIG. Figure 7 As shown, the device comprises:
[0142] The first processing unit 910 is configured to receive first data sent by the server for filling in an input page of a client, wherein the first data includes at least one key-value pair, wherein the input page includes at least one input item, and the key-value pair corresponds to the input item one by one;
[0143] The second processing unit 920 is used to determine the entry item corresponding to the target key-value pair group, and update the attribute value of the entry item according to the keyword and value of the target key-value pair group;
[0144] The third processing unit 930 is used to display the updated entry items.
[0145] The device for filling an entry page provided by the present invention receives multiple key-value pairs sent by a server for filling an entry page of a client, each key-value pair corresponds to an entry item in the entry page, updates the attribute value of the entry item according to the keyword and value of the key-value pair, and displays the updated entry item, thereby realizing automatic parsing and filling of data sent by the server, improving the efficiency of data filling, and the protocol data format based on the key-value pair can solve the problem of reuse between pages and resolve the strong coupling relationship between client code and server.
[0146] According to a device for filling an entry page provided by the present invention, the target key-value pair group includes a tag key-value pair, and the second processing unit 920 is further used for:
[0147] The value of the tag key-value pair in the target key-value pair group is matched with the entry item name to determine the entry item corresponding to the target key-value pair group, wherein the value of the tag key-value pair includes the entry item name.
[0148] According to a device for filling an entry page provided by the present invention, the second processing unit 920 is further used for:
[0149] Convert the format of the keyword and value of each target key-value pair group to generate keywords and values after format conversion;
[0150] Determine an entry instance of an entry corresponding to the target key-value pair, wherein the entry instance includes a plurality of attributes;
[0151] The attribute values of the multiple attributes of the entry instance are updated based on the keywords and values after format conversion.
[0152] According to a device for filling an entry page provided by the present invention, the device further includes a fourth processing unit, which is used to:
[0153] Acquire second data input by a user into the entry page; the second data includes an attribute value of an entry item of the entry page;
[0154] The second data is assembled into a key-value pair to be uploaded and sent to the server.
[0155] According to a device for filling an entry page provided by the present invention, the fourth processing unit is further used for:
[0156] determining an entry instance of an entry corresponding to the second data, wherein the entry instance includes a plurality of attributes;
[0157] updating attribute values of a plurality of attributes in the entry instance based on the second data;
[0158] The multiple attributes of the entry instance and the corresponding attribute values are formatted to generate the key-value pairs to be uploaded.
[0159] According to a device for filling an entry page provided by the present invention, the fourth processing unit is further used for:
[0160] Obtaining a first attribute value input by a user into a first entry item;
[0161] Matching the first entry item with the pre-stored linkage relationship of the entry page; wherein the linkage relationship includes a target attribute value of the target entry item;
[0162] If the match is successful, the target attribute value corresponding to the linkage relationship and the first attribute value are used as the second data;
[0163] If the match fails, the first attribute value is used as the second data.
[0164] According to a filling device for an input page provided by the present invention, the linkage relationship further includes a source input item and a target input item that are in a mapping relationship with each other, the source input item includes a source name, a source attribute and a source attribute value, and the target input item includes a target name and a target attribute;
[0165] The fourth processing unit is further configured to:
[0166] Matching the name, first attribute and first attribute value of the first entry item with the source name, source attribute and source attribute value of the source entry item respectively;
[0167] The fourth processing unit is further configured to:
[0168] A target entry item having a mapping relationship with the source entry item in the linkage relationship is determined, and a target attribute value of the target entry item and the first attribute value are used as second data.
[0169] Fig.10 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.10 As shown, the electronic device may include: a processor 1010, a communication interface 1020, a memory 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020 and the memory 1030 complete mutual communication through the communication bus 1040. The processor 1010 may call the logic instructions in the memory 1030 to execute the method for filling in the entry page, the method comprising: receiving first data sent by the server for filling in the client entry page, the first data comprising at least one key-value pair, wherein the entry page comprises at least one entry item, the key-value pair corresponding to the entry item one by one; determining the entry item corresponding to the target key-value pair, updating the attribute value of the entry item according to the key value of the target key-value pair; and displaying the updated entry item.
[0170] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0171] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the method for filling in the entry page provided in the above-mentioned embodiments, and the method includes: receiving first data sent by a server for filling in a client entry page, the first data including at least one key-value pair, wherein the entry page includes at least one entry item, and the key-value pair corresponds one-to-one to the entry item; determining the entry item corresponding to the target key-value pair, and updating the attribute value of the entry item according to the key value of the target key-value pair; and displaying the updated entry item.
[0172] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the method for filling in the entry page provided in the above-mentioned embodiments, the method comprising: receiving first data sent by a server for filling in a client entry page, the first data comprising at least one key-value pair, wherein the entry page comprises at least one entry item, and the key-value pair corresponds one-to-one to the entry item; determining the entry item corresponding to the target key-value pair, and updating the attribute value of the entry item according to the key value of the target key-value pair; and displaying the updated entry item.
[0173] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0174] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0175] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.< / key:value> < / key:value>
Claims
1. A method for filling an input page, characterized in that: include: Receiving first data sent by a server for filling in a client input page, wherein the first data includes at least one key-value pair, wherein the input page includes at least one input item, and the key-value pair corresponds to the input item one by one; Determine an entry item corresponding to a target key-value pair, and update an attribute value of the entry item according to a keyword and a value of the target key-value pair; Display updated entries; The method further comprises: Acquire second data input by a user into the entry page; the second data includes an attribute value of an entry item of the entry page; Assemble the second data into a key-value pair to be uploaded and send it to the server; The step of assembling the second data into a key-value pair to be uploaded includes: determining an entry instance of an entry corresponding to the second data, wherein the entry instance includes a plurality of attributes; updating attribute values of a plurality of attributes in the entry instance based on the second data; The multiple attributes of the entry instance and the corresponding attribute values are formatted to generate the key-value pairs to be uploaded.
2. The method for filling in an input page according to claim 1, characterized in that: The target key-value pair group includes a tag key-value pair, and the entry item corresponding to the target key-value pair group is determined to include: The value of the tag key-value pair in the target key-value pair group is matched with the entry item name to determine the entry item corresponding to the target key-value pair group, wherein the value of the tag key-value pair includes the entry item name.
3. The method for filling in an input page according to claim 1, characterized in that: Updating the attribute value of the entry item according to the keyword and the value of the target key-value pair, including: Convert the format of the keyword and value of each target key-value pair group to generate keywords and values after format conversion; Determine an entry instance of an entry corresponding to the target key-value pair, wherein the entry instance includes a plurality of attributes; The attribute values of the multiple attributes of the entry instance are updated based on the keywords and values after format conversion.
4. The method for filling in an input page according to claim 1, characterized in that: The obtaining of the second data input by the user to the input page includes: Obtaining a first attribute value input by a user into a first entry item; Matching the first entry item with the pre-stored linkage relationship of the entry page; wherein the linkage relationship includes a target attribute value of the target entry item; If the match is successful, the target attribute value corresponding to the linkage relationship and the first attribute value are used as the second data; If the match fails, the first attribute value is used as the second data.
5. The method for filling in an input page according to claim 4, characterized in that: The linkage relationship also includes a source entry item and a target entry item that are in a mapping relationship with each other, the source entry item includes a source name, a source attribute and a source attribute value, and the target entry item includes a target name and a target attribute; Matching the first entry item with the pre-stored linkage relationship of the entry page includes: Matching the name, first attribute and first attribute value of the first entry item with the source name, source attribute and source attribute value of the source entry item respectively; The target attribute value corresponding to the linkage relationship and the first attribute value are used as second data, including: A target entry item having a mapping relationship with the source entry item in the linkage relationship is determined, and a target attribute value of the target entry item and the first attribute value are used as second data.
6. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for filling in an entry page as claimed in any one of claims 1 to 5 are implemented.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method for filling in the entry page as described in any one of claims 1 to 5 are implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for filling in an entry page as claimed in any one of claims 1 to 5 are implemented.
