1,042
edits
| Line 183: | Line 183: | ||
</properties> | </properties> | ||
</libraryUserProperties> | </libraryUserProperties> | ||
====Structure of the ''userPropertyPolicies.xml'' file==== | |||
The properties policy are defined in this file. The 2 main fields are:<br> | |||
:*applyTo: nothing/project/measurement/model/hidden<br> | |||
:*presetPolicy: empty/sameAsPrevious/sameAsToday<br> | |||
The “sortWeight” field enables to change the order of the properties in the list. When using the policies “sameAsPrevious” and “sameAsToday”, NVGate saves the values typed by the user in the field “value” and the date in the field “date”.<br><br> | |||
The file structure is described below, with the example of the 3 properties listed in the ''userPropertiesLibrary.upl'' file. At the end of the file, the policy of the incoming properties (imported from projects/measurements/models) is defined.<br><br> | |||
File header<br> | |||
<nvgateUserPropertyPolicies version="1.0"> | |||
<list> | |||
Property 1<br> | |||
<userPropertyPolicy version="1.1" propertyId="user.'''username'''.'''Property1'''"> | |||
<applyTo>'''nothing'''</applyTo> | |||
<presetPolicy>'''empty'''</presetPolicy> | |||
<value></value> | |||
<date></date> | |||
<sortWeight>'''1'''</sortWeight> | |||
</userPropertyPolicy> | |||
Property 2<br> | |||
<userPropertyPolicy version="1.1" propertyId="user.'''username'''.'''Property2'''"> | |||
<applyTo>'''nothing'''</applyTo> | |||
<presetPolicy>'''empty'''</presetPolicy> | |||
<value></value> | |||
<date></date> | |||
<sortWeight>'''2'''</sortWeight> | |||
</userPropertyPolicy> | |||
Property 3<br> | |||
<userPropertyPolicy version="1.1" propertyId="user.'''username'''.'''Property3'''"> | |||
<applyTo>'''nothing'''</applyTo> | |||
<presetPolicy>'''empty'''</presetPolicy> | |||
<value></value> | |||
<date></date> | |||
<sortWeight>'''3'''</sortWeight> | |||
</userPropertyPolicy> | |||
</list> | |||
Policy of incoming properties<br> | |||
<default> | |||
<userPropertyPolicy version="1.1" propertyId="default"> | |||
<applyTo>'''hidden'''</applyTo> | |||
<presetPolicy>'''empty'''</presetPolicy> | |||
<value></value> | |||
<date></date> | |||
</userPropertyPolicy> | |||
</default> | |||
File footer<br> | |||
</nvgateUserPropertyPolicies> | |||