CN112988142A - Attribute table generation method and device - Google Patents
Attribute table generation method and device Download PDFInfo
- Publication number
- CN112988142A CN112988142A CN202110419452.3A CN202110419452A CN112988142A CN 112988142 A CN112988142 A CN 112988142A CN 202110419452 A CN202110419452 A CN 202110419452A CN 112988142 A CN112988142 A CN 112988142A
- Authority
- CN
- China
- Prior art keywords
- attribute
- target
- key
- generating
- attribute table
- 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
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000010276 construction Methods 0.000 claims abstract description 14
- 238000012423 maintenance Methods 0.000 abstract description 10
- 230000000875 corresponding effect Effects 0.000 description 47
- 238000010586 diagram Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 239000011800 void material Substances 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000007667 floating Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000001276 controlling effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000005436 troposphere Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/37—Compiler construction; Parser generation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method and a device for generating an attribute table, which comprise the following steps: responding to a received attribute table control construction instruction, and creating a target configuration file; generating a property list control according to the target configuration file and a preset content dictionary; when a click instruction for any target object is received, the attribute table control is called to generate the attribute table corresponding to the target object, so that the coding workload is reduced, and control multiplexing and expansion maintenance are more effectively realized.
Description
Technical Field
The invention relates to the technical field of attribute table control updating, in particular to an attribute table generation method and device.
Background
In the fields of GIS (Geographic Information System), mapping, and the like, a plurality of constructed mapping scenes or models usually include a variety of surface features, and for convenience of viewing and operation by a user, the attributes of the mapping scenes or models can be displayed through an attribute table control. A common property sheet control typically includes two columns and a plurality of rows, with the first column representing the name of the property, the second column representing the value of the property, and each row representing an attribute.
And the properties displayed by the property sheet control can include a variety of types, such as integers, strings, drop-down selection boxes, and the like. In the prior art, writing of a property list control is usually completed in a hard coding manner, that is, what information needs to be displayed is added by writing codes to generate a corresponding property list control, which includes specific data display items and fixed display items, that is, one property list control can only display specific surface feature properties.
When the amount of encoded data used for generating the attribute table increases exponentially with the information to be displayed, the workload of encoding personnel is large, and multiplexing cannot be performed and the expansion and maintenance are not easy.
Disclosure of Invention
The invention provides a method and a device for generating an attribute list, which solve the technical problems that in the prior art, due to the fact that the coding workload is large, the multiplexing of controls cannot be carried out and the expansion and maintenance are difficult to realize, because the coding data size written by the controls of the attribute list is large.
The invention provides an attribute table generation method, which comprises the following steps:
responding to a received attribute table control construction instruction, and creating a target configuration file;
generating a property list control according to the target configuration file and a preset content dictionary;
and when a click instruction for any target object is received, calling the attribute table control to generate an attribute table corresponding to the target object.
Optionally, the content dictionary includes a plurality of attribute key-value pairs, where the attribute key-value pair includes an attribute key; the step of generating a property list control according to the target configuration file and a preset content dictionary comprises the following steps:
analyzing the target configuration file to obtain a plurality of attribute formats;
determining a connection attribute key corresponding to the attribute format from a plurality of attribute keys;
and establishing the connection between the connection attribute key and the attribute format to generate an attribute table control.
Optionally, the attribute key-value pair further includes an attribute value, and the step of invoking the attribute table control to generate an attribute table corresponding to any target object when a click instruction for the target object is received includes:
when a click instruction for any target object is received, calling the attribute table control to retrieve the content dictionary by taking the name of the target object as a keyword, and determining a target attribute key corresponding to the keyword;
determining a target attribute value corresponding to the target attribute key from the plurality of attribute values;
determining a target attribute format linked with the target attribute key from a plurality of the attribute formats;
and generating an attribute table according to the target attribute format by adopting the target attribute key and the target attribute value.
Optionally, the method further includes:
and when receiving an attribute changing instruction, updating the attribute table control according to the attribute changing instruction.
Optionally, the target configuration file includes a first layer tag, a plurality of second layer tags, and a plurality of third layer tags;
the second layer label is a sub-label of the first layer label, and the third layer label is a sub-label of the second layer label.
The invention also provides an attribute table generating device, comprising:
the configuration file construction module is used for responding to the received attribute list control construction instruction and creating a target configuration file;
the attribute table control generating module is used for generating an attribute table control according to the target configuration file and a preset content dictionary;
and the attribute table generating module is used for calling the attribute table control to generate an attribute table corresponding to any target object when a click instruction of the target object is received.
Optionally, the content dictionary includes a plurality of attribute key-value pairs, where the attribute key-value pair includes an attribute key; the attribute table control generating module comprises:
the analysis submodule is used for analyzing the target configuration file to obtain a plurality of attribute formats;
a connection attribute key determination submodule for determining a connection attribute key corresponding to the attribute format from among the plurality of attribute keys;
and the attribute table control generating submodule is used for establishing the connection between the connection attribute key and the attribute format and generating the attribute table control.
Optionally, the attribute key-value pair further includes an attribute value, and the attribute table generating module includes:
the target attribute key determining submodule is used for calling the attribute table control to retrieve the content dictionary by taking the name of the target object as a keyword when a click instruction of any target object is received, and determining a target attribute key corresponding to the keyword;
a target attribute value determination submodule for determining a target attribute value corresponding to the target attribute key from the plurality of attribute values;
a target attribute format determination submodule for determining a target attribute format linked with the target attribute key from a plurality of the attribute formats;
and the attribute table generation submodule is used for generating an attribute table according to the target attribute format by adopting the target attribute key and the target attribute value.
Optionally, the apparatus further comprises:
and the attribute list control updating module is used for updating the attribute list control according to the attribute changing instruction when the attribute changing instruction is received.
Optionally, the target configuration file includes a first layer tag, a plurality of second layer tags, and a plurality of third layer tags;
the second layer label is a sub-label of the first layer label, and the third layer label is a sub-label of the second layer label.
According to the technical scheme, the invention has the following advantages:
the method comprises the steps of responding to a received attribute table control construction instruction, and creating a target configuration file; and generating a property table control according to the target configuration file and the content dictionary, and when a click instruction for any target object is received, determining a specific property format and a property value of the target object from the content dictionary and the target configuration file by calling the property table control to generate a property table corresponding to the target object. Therefore, the technical problems that in the prior art, due to the fact that the coding workload is large, the control multiplexing cannot be carried out and the expansion and maintenance are not easy to achieve due to the fact that the coding data written by the attribute table control is large are solved, the coding workload is reduced, and the control multiplexing and the expansion and maintenance are achieved more effectively.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating steps of a method for generating an attribute table according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a method for generating an attribute table according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a display of an attribute table according to a second embodiment of the present invention;
fig. 4 is a block diagram of an attribute table generating apparatus according to a third embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method and a device for generating an attribute table, which are used for solving the technical problems that in the prior art, due to the fact that the coding workload is large, control multiplexing cannot be carried out and expansion and maintenance are difficult to carry out, because the coding data amount written by a control of the attribute table is large.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for generating an attribute table according to an embodiment of the present invention.
The invention provides an attribute table generation method, which comprises the following steps:
the attribute list control building instruction refers to a selection instruction for selecting the attribute to be displayed before the user builds the required attribute list control, or a new instruction for newly building the attribute of the display attribute.
In the embodiment of the invention, when the attribute table control construction instruction input by the user is received, the attribute format which can be displayed by the attribute table control can be determined based on the attribute table control construction instruction, and the corresponding target configuration file is created.
102, generating a property list control according to a target configuration file and a preset content dictionary;
after the target configuration file is obtained, only the attribute format of the attribute table control is obtained, namely what the attribute can be displayed, but the specific value of the attribute is not supplemented. At this time, a data source basis can be provided for the attribute format according to the connection between the preset content dictionary and the target configuration file, and the attribute table control is generated.
The attribute table control refers to a control capable of performing specific attribute description presentation on the selected target object in an attribute format and an attribute key value pair.
In the embodiment of the present invention, when a click instruction of a user on any target object is received, it is described that the user needs to display a specific attribute of the target object at this time. At this time, based on the position specified by the click command, the object corresponding to the position may be further determined as the target object.
In a specific implementation, after a target object specified by a click instruction is determined, a property table control may be called, a target key value corresponding to the target object is obtained from a content dictionary, and a property table corresponding to the target object is generated based on a property value represented by the target key value and in combination with a property format connected to the target key value.
In the embodiment of the invention, a target configuration file is created in response to a received attribute table control construction instruction; and generating a property table control according to the target configuration file and the content dictionary, and when a click instruction for any target object is received, determining a specific property format and a property value of the target object from the content dictionary and the target configuration file by calling the property table control to generate a property table corresponding to the target object. Therefore, the technical problems that in the prior art, due to the fact that the coding workload is large, the control multiplexing cannot be carried out and the expansion and maintenance are not easy to achieve due to the fact that the coding data written by the attribute table control is large are solved, the coding workload is reduced, and the control multiplexing and the expansion and maintenance are achieved more effectively.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps of an attribute table generating method according to a second embodiment of the present invention.
The invention provides an attribute table generation method, which comprises the following steps:
in the embodiment of the invention, the target configuration file comprises a first-layer label, a plurality of second-layer labels and a plurality of third-layer labels; the second layer of labels are sub-labels of the first layer of labels, and the third layer of labels are sub-labels of the second layer of labels.
In the embodiment of the present invention, the first layer tag Attribute has the following attributes, and the influence range is the first column Attribute name and the group name:
the ROOT _ KEY _ COLOR format is "# 0130 fc" indicating the COLOR of the attribute name.
The ROOT _ KEY _ BOLD format is 0 or 1, 1 represents BOLD, and 0 represents no BOLD.
The second layer tag GROUP is a sub-tag of the Attribute tag. Each GROUP represents a set of attributes, the GROUP has the following attributes, wherein the GROUP _ KEY _ COLOR and the GROUP _ KEY _ hold priority are higher than the ROOT _ KEY _ COLOR and the ROOT _ KEY _ hold, i.e. if the GROUP _ KEY _ COLOR and the ROOT _ KEY _ COLOR are both defined, the GROUP _ KEY _ COLOR is taken as the standard:
the NAME format is a character string that represents the display NAME of the packet.
The GROUP _ KEY _ COLOR format is "# 0130 fc", indicating the COLOR of the display name of the packet.
The GROUP _ KEY _ BOLD format is 0 or 1, 1 represents an emboldened value, and 0 represents an uncracked value.
The VISIBLE _ LINK _ KEY format is a character string representing a KEY name in the content dictionary, and is used together with VISIBLE _ LINK _ VALUE.
The VISIBLE _ LINK _ VALUE format is a CSV character string and represents a set of a series of VALUEs, when a VALUE corresponding to a KEY name VISIBLE _ LINK _ KEY in a content dictionary is in the VISIBLE _ LINK _ VALUE set, the current attribute is displayed, and otherwise, the current attribute is hidden. Such as: VISIBLE _ LINK _ VALUE ═ 1,2, 3.
The third layer of tag ITEM is a sub-tag of the GROUP tag. Representing a specific attribute, ITEM has the following attributes:
the NAME format is a character string, and indicates the display NAME of the attribute.
TYPE represents attribute element TYPE, and takes on an integer of 1 to 12. 1 for a text edit box, 2 for a drop-down combo box (content is customizable), 3 for a double precision floating point number trim box, 4 for a yes/no drop-down box, 5 for a date time box, 6 for a drop-down combo box of fixed content, 7 for a fixed picture drop-down combo box, 8 for a text display label, 9 for a color display box, 10 for a point coordinate (X, Y, Z) box, 11 for a boolean box, and 12 for an integer box.
DATA _ DIC _ KEY _ NAME represents the corresponding KEY NAME of the value of the attribute in the content dictionary.
The KEY _ COLOR format is "# 0130 fc" indicating that the COLOR of the attribute name is preferably larger than the KEY _ COLOR, i.e., KEY _ COLOR is used if both the KEY _ COLOR and the KEY _ COLOR are defined.
The KEY _ BOLD format is 0 or 1, 1 represents BOLD, 0 represents no BOLD, and is preferably larger than the ROOT _ KEY _ BOLD, that is, if the ROOT _ KEY _ BOLD and the KEY _ BOLD are both defined, the KEY _ BOLD is taken as the standard.
DEFAULT _ VALUE.
The VISIBLE _ LINK _ KEY format is a character string representing a KEY name in the content dictionary, and is used together with VISIBLE _ LINK _ VALUE.
The VISIBLE _ LINK _ VALUE format is a CSV character string and represents a set of a series of VALUEs, when a VALUE corresponding to a KEY name VISIBLE _ LINK _ KEY in a content dictionary is in the VISIBLE _ LINK _ VALUE set, the current attribute is displayed, and otherwise, the current attribute is hidden. Such as: VISIBLE _ LINK _ VALUE ═ 1,2, 3.
The EDIT format is 0 or 1, 1 represents editable, and 0 represents read-only.
The DESC format is a character string, which represents the description information of the attribute, and when a specific attribute is clicked, the description information of the attribute is displayed in the lower margin area.
MINIMUM integer box and double precision fine tuning box are dedicated, range MINIMUM.
MAXIMUM range values are specified for the MAXIMUM integer box and the double precision fine tuning box.
Decimal place number of the DECIMALS _ VALUE double precision fine tuning frame.
DEFAULT _ LIST fixed content drop-down combo box specific, DEFAULT initialization content, CSV format strings, such as: beijing 54, Xian 80, national 2000.
The DATA _ DIC _ DEFAULT _ LIST _ KEY _ NAME pulldown box specific indicates a KEY NAME corresponding to the initialized content of the pulldown LIST box in the content dictionary.
The DATA _ DIC _ KEY _ TYPE drop-down list box specific is used to specify whether the value corresponding to the DATA _ DIC _ KEY _ NAME in the content dictionary is an index (0) or text (1) of the drop-down box, and is an index by default.
DATA _ REGEXP represents a regular expression, text box specific, for controlling the format of the input information.
The file format of the target configuration file may be XML.
further, the content dictionary comprises a plurality of attribute key value pairs, and the attribute key value pairs comprise attribute keys and attribute values; step 202 may include the following sub-steps:
analyzing the target configuration file to obtain a plurality of attribute formats;
determining a connection attribute key corresponding to the attribute format from the plurality of attribute keys;
and establishing connection between the connection attribute key and the attribute format to generate an attribute table control.
In the embodiment of the present invention, the target configuration file may be parsed to obtain a plurality of attribute formats therein, and which attribute formats the attribute table control can display are determined. And determining a connection attribute key corresponding to the attribute format from a plurality of attribute key value pairs stored in the content dictionary, and establishing connection between the connection attribute key and the attribute format to provide a display data basis of the attribute format and generate an attribute table control.
It is worth mentioning that the attribute table control can be used in mapping software such as GIS.
In a specific implementation, the initialization operation on the attribute table control can be completed by adopting a void init (con _ char _ cXmlPath, con _ identify _ dirvalue) method instance, and the specific steps are as follows:
1. emptying the existing control elements;
2. reading and saving the content of the cXmlPath configuration file and the attributes ROOT _ KEY _ COLOR and ROOT _ KEY _ BOLD of the Attribute top-level tag;
3. reading the content of the cXmlPath configuration file, the sub-label Group label and the Attribute of the Attribute and generating a corresponding Attribute Group control;
4. reading the content of the cXmlPath configuration file, the item label of the sub-label of the Group and the attribute thereof, generating a corresponding attribute control, realizing the class by matching the value of the TYPE attribute with the corresponding attribute control, and acquiring the corresponding content from the dicValue as the value of the attribute control by the value of the DATA _ DIC _ KEY _ NAME. And binding the property control with the value of ATA _ DIC _ KEY _ NAME. Setting other properties of the property control, such as color, whether to thicken, and the like;
5. and repeating the steps 3 and 4 until all the attribute controls are generated, and finishing the initialization work of the whole attribute table.
in the embodiment of the invention, when a click instruction of a user on any target object is received, the clicked target object is determined, the attribute table control is called to search the content dictionary by taking the name of the target object as a keyword, and the target attribute key corresponding to the keyword is determined.
after determining the target attribute key, to determine a specific value corresponding to the target attribute key, a target attribute value corresponding to the target attribute key may be determined from the plurality of attribute values.
in the embodiment of the present invention, the target attribute format connected to the target attribute key may be determined from a plurality of attribute formats of the target configuration file.
And step 206, generating an attribute table according to the target attribute format by adopting the target attribute key and the target attribute value.
In the specific implementation, a target attribute format and a target attribute value are adopted, and a corresponding attribute table is generated according to the attribute format corresponding to the target object.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a display of an attribute table according to a second embodiment of the present invention.
The attribute table includes items such as population, start point information, end point information, solution parameters, and baseline results.
Wherein, the general item can include four sub items of processing state, start time, end time and duration, wherein the information of date and time is displayed in different formats;
the starting point information item and the end point information item comprise point IDs and enemy file paths;
bold display is adopted in the parameter resolving item, and optional frames are added in the steps of 'using GPS', 'using GLONASS', 'using Beidou' and 'whether to estimate troposphere' so as to increase the flexibility of attribute display;
in the item of the baseline result, in order to improve the precision of the solution, the attribute display is carried out in the form of floating point solution.
In another example of the present invention, the method further comprises:
and when the attribute changing instruction is received, updating the attribute table control according to the attribute changing instruction.
In a specific implementation, after receiving the attribute change instruction, the change content to be changed in the attribute table control can be determined according to the attribute change instruction.
If the modified content is the target configuration file, the corresponding tag in the target configuration file can be directly modified; if the modified content is the content dictionary, the corresponding attribute key and attribute value can be determined according to the modified content, and the modified content is further modified.
It should be noted that, in the process of updating the data of the content dictionary, a void init (const identification & dicValue) method may be adopted to update the key value pairs in the content dictionary, and the specific steps are as follows:
1. traversing all key-value pairs of the dicValue;
2. the system already stores the corresponding relation between each attribute control and the key value pair of the content dictionary, so that the corresponding attribute controls are sequentially obtained according to the key names of the attribute controls to update the attribute contents;
3. and completing updating of all the property controls corresponding to the dicValue.
Optionally, a single specific attribute value may be updated by a void setDataByKey (const char × cvale) method, and the specific steps are as follows:
1. acquiring the property control bound with the cKey through the cKey;
2. the value of the property control is updated to cValue.
In the embodiment of the invention, a target configuration file is created in response to a received attribute table control construction instruction; and generating a property table control according to the target configuration file and the content dictionary, and when a click instruction for any target object is received, determining a specific property format and a property value of the target object from the content dictionary and the target configuration file by calling the property table control to generate a property table corresponding to the target object. Therefore, the technical problems that in the prior art, due to the fact that the coding workload is large, the control multiplexing cannot be carried out and the expansion and maintenance are not easy to achieve due to the fact that the coding data written by the attribute table control is large are solved, the coding workload is reduced, and the control multiplexing and the expansion and maintenance are achieved more effectively.
Referring to fig. 4, fig. 4 is a block diagram illustrating an attribute table generating apparatus according to a third embodiment of the present invention.
The invention also provides an attribute table generating device, comprising:
a configuration file constructing module 401, configured to respond to the received attribute table control constructing instruction and create a target configuration file;
a property list control generating module 402, configured to generate a property list control according to the target configuration file and a preset content dictionary;
the attribute table generating module 403 is configured to, when a click instruction for any target object is received, invoke the attribute table control to generate the attribute table corresponding to the target object.
Optionally, the content dictionary includes a plurality of attribute key-value pairs, where an attribute key-value pair includes an attribute key; the attribute table control generating module 402 includes:
the analysis submodule is used for analyzing the target configuration file to obtain a plurality of attribute formats;
a connection attribute key determination submodule for determining a connection attribute key corresponding to the attribute format from among the plurality of attribute keys;
and the attribute table control generating submodule is used for establishing connection between the connection attribute keys and the attribute formats and generating the attribute table control.
Optionally, the attribute key-value pair further includes an attribute value, and the attribute table generating module 403 includes:
the target attribute key determining submodule is used for calling the attribute table control to retrieve the content dictionary by taking the name of the target object as a keyword when a click instruction of any target object is received, and determining a target attribute key corresponding to the keyword;
the target attribute value determining submodule is used for determining a target attribute value corresponding to the target attribute key from the plurality of attribute values;
the target attribute format determining submodule is used for determining a target attribute format connected with a target attribute key from a plurality of attribute formats;
and the attribute table generation submodule is used for generating an attribute table according to the target attribute format by adopting the target attribute key and the target attribute value.
Optionally, the apparatus further comprises:
and the attribute list control updating module is used for updating the attribute list control according to the attribute changing instruction when the attribute changing instruction is received.
Optionally, the target configuration file includes a first layer tag, a plurality of second layer tags, and a plurality of third layer tags;
the second layer of labels are sub-labels of the first layer of labels, and the third layer of labels are sub-labels of the second layer of labels.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A method for generating an attribute table, comprising:
responding to a received attribute table control construction instruction, and creating a target configuration file;
generating a property list control according to the target configuration file and a preset content dictionary;
and when a click instruction for any target object is received, calling the attribute table control to generate an attribute table corresponding to the target object.
2. The method according to claim 1, wherein the content dictionary includes therein a plurality of attribute key-value pairs, the attribute key-value pairs including attribute keys; the step of generating a property list control according to the target configuration file and a preset content dictionary comprises the following steps:
analyzing the target configuration file to obtain a plurality of attribute formats;
determining a connection attribute key corresponding to the attribute format from a plurality of attribute keys;
and establishing the connection between the connection attribute key and the attribute format to generate an attribute table control.
3. The method according to claim 2, wherein the attribute key-value pairs further include attribute values, and the step of invoking the attribute table control to generate the attribute table corresponding to any target object when receiving a click instruction for the target object includes:
when a click instruction for any target object is received, calling the attribute table control to retrieve the content dictionary by taking the name of the target object as a keyword, and determining a target attribute key corresponding to the keyword;
determining a target attribute value corresponding to the target attribute key from the plurality of attribute values;
determining a target attribute format linked with the target attribute key from a plurality of the attribute formats;
and generating an attribute table according to the target attribute format by adopting the target attribute key and the target attribute value.
4. The method of generating a property table according to claim 1, further comprising:
and when receiving an attribute changing instruction, updating the attribute table control according to the attribute changing instruction.
5. The method for generating a property sheet according to any one of claims 1 to 4, wherein the object profile includes a first layer tag, a plurality of second layer tags, and a plurality of third layer tags;
the second layer label is a sub-label of the first layer label, and the third layer label is a sub-label of the second layer label.
6. An attribute table generation device, comprising:
the configuration file construction module is used for responding to the received attribute list control construction instruction and creating a target configuration file;
the attribute table control generating module is used for generating an attribute table control according to the target configuration file and a preset content dictionary;
and the attribute table generating module is used for calling the attribute table control to generate an attribute table corresponding to any target object when a click instruction of the target object is received.
7. The apparatus according to claim 6, wherein the content dictionary includes therein a plurality of attribute key-value pairs, the attribute key-value pairs including an attribute key; the attribute table control generating module comprises:
the analysis submodule is used for analyzing the target configuration file to obtain a plurality of attribute formats;
a connection attribute key determination submodule for determining a connection attribute key corresponding to the attribute format from among the plurality of attribute keys;
and the attribute table control generating submodule is used for establishing the connection between the connection attribute key and the attribute format and generating the attribute table control.
8. The apparatus of claim 7, wherein the attribute key-value pairs further comprise attribute values, and wherein the attribute table generation module comprises:
the target attribute key determining submodule is used for calling the attribute table control to retrieve the content dictionary by taking the name of the target object as a keyword when a click instruction of any target object is received, and determining a target attribute key corresponding to the keyword;
a target attribute value determination submodule for determining a target attribute value corresponding to the target attribute key from the plurality of attribute values;
a target attribute format determination submodule for determining a target attribute format linked with the target attribute key from a plurality of the attribute formats;
and the attribute table generation submodule is used for generating an attribute table according to the target attribute format by adopting the target attribute key and the target attribute value.
9. The attribute table generating apparatus according to claim 6, further comprising:
and the attribute list control updating module is used for updating the attribute list control according to the attribute changing instruction when the attribute changing instruction is received.
10. The apparatus according to any one of claims 6 to 9, wherein the target profile includes a first layer tag, a plurality of second layer tags, and a plurality of third layer tags;
the second layer label is a sub-label of the first layer label, and the third layer label is a sub-label of the second layer label.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110419452.3A CN112988142B (en) | 2021-04-19 | Attribute table generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110419452.3A CN112988142B (en) | 2021-04-19 | Attribute table generation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112988142A true CN112988142A (en) | 2021-06-18 |
CN112988142B CN112988142B (en) | 2024-09-27 |
Family
ID=
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114168133A (en) * | 2021-11-12 | 2022-03-11 | 苏州万店掌网络科技有限公司 | Form packaging method and system |
CN114371901A (en) * | 2022-01-11 | 2022-04-19 | 福建天晴在线互动科技有限公司 | Method and system for self-defining attribute adaptation format of interface control |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110218982A1 (en) * | 2010-03-08 | 2011-09-08 | Fujitsu Limited | Configuration information management apparatus and dictionary generation method of configuration information management apparatus |
CN105868297A (en) * | 2016-03-24 | 2016-08-17 | 国家基础地理信息中心 | Online map based remote sensing interpretation sample calling method, apparatus and system |
CN106371825A (en) * | 2016-08-23 | 2017-02-01 | 武大吉奥信息技术有限公司 | Dynamic form generation method and apparatus for mobile end application interface |
CN109542878A (en) * | 2018-11-21 | 2019-03-29 | 广州华多网络科技有限公司 | A kind of list creation techniques and device |
US20200151201A1 (en) * | 2020-01-10 | 2020-05-14 | Semantics3 Inc. | Automated Extraction, Inference and Normalization of Structured Attributes for Product Data |
CN111274225A (en) * | 2020-01-14 | 2020-06-12 | 湖南科技学院 | ArcGIS-based rapid assignment method for homeland third-tone attribute |
CN112130860A (en) * | 2020-09-23 | 2020-12-25 | 北京奇艺世纪科技有限公司 | JSON object analysis method and device, electronic device and storage medium |
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110218982A1 (en) * | 2010-03-08 | 2011-09-08 | Fujitsu Limited | Configuration information management apparatus and dictionary generation method of configuration information management apparatus |
CN105868297A (en) * | 2016-03-24 | 2016-08-17 | 国家基础地理信息中心 | Online map based remote sensing interpretation sample calling method, apparatus and system |
CN106371825A (en) * | 2016-08-23 | 2017-02-01 | 武大吉奥信息技术有限公司 | Dynamic form generation method and apparatus for mobile end application interface |
CN109542878A (en) * | 2018-11-21 | 2019-03-29 | 广州华多网络科技有限公司 | A kind of list creation techniques and device |
US20200151201A1 (en) * | 2020-01-10 | 2020-05-14 | Semantics3 Inc. | Automated Extraction, Inference and Normalization of Structured Attributes for Product Data |
CN111274225A (en) * | 2020-01-14 | 2020-06-12 | 湖南科技学院 | ArcGIS-based rapid assignment method for homeland third-tone attribute |
CN112130860A (en) * | 2020-09-23 | 2020-12-25 | 北京奇艺世纪科技有限公司 | JSON object analysis method and device, electronic device and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114168133A (en) * | 2021-11-12 | 2022-03-11 | 苏州万店掌网络科技有限公司 | Form packaging method and system |
CN114371901A (en) * | 2022-01-11 | 2022-04-19 | 福建天晴在线互动科技有限公司 | Method and system for self-defining attribute adaptation format of interface control |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111259303B (en) | System and method for automatically generating front-end page of WEB information system | |
CN106528129B (en) | A kind of Web application interface generation system and method | |
US6263347B1 (en) | System for linking data between computer and portable remote terminal and data linking method therefor | |
CN109408764B (en) | Page area dividing method, device, computing equipment and medium | |
US20020111933A1 (en) | Multilingual system having dynamic language selection | |
US9953331B2 (en) | Extensibility for sales predictor (SPE) | |
US7856428B2 (en) | Method, computer program product and device for importing a plurality of data sets into a system | |
US20150278190A1 (en) | Web server system, dictionary system, dictionary call method, screen control display method, and demonstration application generation method | |
CN113535165A (en) | Interface generation method and device, electronic equipment and computer readable storage medium | |
CN112558967A (en) | Page automatic generation method and device, electronic equipment and storage medium | |
CN104239067B (en) | The preparation method and device of miniature client | |
CN113535177A (en) | Form generation method, device and equipment | |
CN116401407A (en) | Node attribute configuration method, device, equipment and storage medium of mind map | |
CN110929494A (en) | Method for generating report drop-down box based on hierarchical tree | |
US7743079B1 (en) | Managing data across a semantic data view and a presentation data view | |
CN108304291B (en) | Test input information retrieval apparatus and method | |
CN111880813B (en) | Method for realizing android card UI (user interface) and storage medium | |
CN113687827A (en) | Data list generation method, device and equipment based on widget and storage medium | |
CN103440272A (en) | Database maintenance method and device | |
CN110929100B (en) | Method and device for acquiring value taking path, storage medium and electronic equipment | |
JP2006510961A (en) | System, method and computer program product for changing the graphical representation of data entities and relational database structures | |
CN112988142A (en) | Attribute table generation method and device | |
CN112988142B (en) | Attribute table generation method and device | |
US20080270985A1 (en) | Database application assembly and preparation | |
US7617221B2 (en) | Rendering database queries with blank space |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |