...
This is done to keep the data structure information separate from the user interface which keeps the code and configuration cleaner and this way the <subLocationStructure> configuration can be reused in the report export valuePropertiesTags without needing the user interface configuration. {
Code Block |
---|
...
| ||||
<valuePropertiesVariableId>MFDO_MainReport</valuePropertiesVariableId> |
...
<subLocationsStructure id="Locations_Level"> |
...
<variableId>Level_MFDO_Peak</variableId> |
...
<matchingSubLocationAttributeId>MFDOArea</matchingSubLocationAttributeId> |
...
<templateFile>Forecast_Summary_Report_Level_Location_Template.html</templateFile> |
...
</subLocationsStructure> |
...
<subLocationsStructure id="Locations_Flow"> |
...
<variableId>Flow_MFDO_Peak</variableId> |
...
<matchingSubLocationAttributeId>MFDOArea</matchingSubLocationAttributeId> |
...
<templateFile>Forecast_Summary_Report_Flow_Location_Template.html</templateFile> |
...
...
</subLocationsStructure> |
...
|
In the config above the <valuePropertiesVariableId> determines the main time series for which the properties can be entered.
The sub locations have their own time series set and are matched to the main time series via the <matchingSubLocationAttributeId> which has to refere to the location id present in the main variable.
Code Block | ||||
---|---|---|---|---|
| ||||
<variable>
<variableId>MFDO_MainReport</variableId>
<timeSeriesSet>
<moduleInstanceId>Process_MFDO_Report</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>H.obs</parameterId>
<locationSetId>MFDO_Areas_Reports</locationSetId>
<timeSeriesType>external forecasting</timeSeriesType>
<timeStep unit="nonequidistant"/>
<externalForecastMaxAge unit="day" multiplier="10"/>
<readWriteMode>read complete forecast</readWriteMode>
</timeSeriesSet>
</variable>
<variable>
<variableId>Level_MFDO_Peak</variableId>
<timeSeriesSet>
<moduleInstanceId>Process_MFDO_Report</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>H.fcast.merged</parameterId>
<qualifierId>Peak</qualifierId>
<locationSetId>UK_Forecast_Summary_Level</locationSetId>
<timeSeriesType>external forecasting</timeSeriesType>
<timeStep unit="nonequidistant"/>
<externalForecastMaxAge unit="day" multiplier="10"/>
<readWriteMode>read complete forecast</readWriteMode>
</timeSeriesSet>
</variable>
<variable>
<variableId>Flow_MFDO_Peak</variableId>
<timeSeriesSet>
<moduleInstanceId>Process_MFDO_Report</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>Q.fcast.merged</parameterId>
<qualifierId>Peak</qualifierId>
<locationSetId>UK_Forecast_Summary_Flow</locationSetId>
<timeSeriesType>external forecasting</timeSeriesType>
<timeStep unit="nonequidistant"/>
<externalForecastMaxAge unit="day" multiplier="10"/>
<readWriteMode>read complete forecast</readWriteMode>
</timeSeriesSet>
</variable>
|
...