diff --git a/entity/Forecast_entity/Forecast_entity.aod b/entity/Forecast_entity/Forecast_entity.aod index d8b6f1c7fe8094323f828a1e133cfa91704bf158..9182cdc2c8fcf6e928dc89de0a768396901706ed 100644 --- a/entity/Forecast_entity/Forecast_entity.aod +++ b/entity/Forecast_entity/Forecast_entity.aod @@ -126,6 +126,10 @@ <name>#PROVIDER_AGGREGATES</name> <useAggregates v="true" /> </entityProvider> + <entityField> + <name>KIND</name> + <valueProcess>%aditoprj%/entity/Forecast_entity/entityfields/kind/valueProcess.js</valueProcess> + </entityField> </entityFields> <recordContainers> <dbRecordContainer> @@ -173,6 +177,10 @@ <name>FORECASTID.value</name> <recordfield>FORECAST.FORECASTID</recordfield> </dbRecordFieldMapping> + <dbRecordFieldMapping> + <name>KIND.value</name> + <recordfield>FORECAST.KIND</recordfield> + </dbRecordFieldMapping> </recordFieldMappings> <linkInformation> <linkInformation> diff --git a/entity/Forecast_entity/entityfields/kind/valueProcess.js b/entity/Forecast_entity/entityfields/kind/valueProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..0c435ef9c8d8c55358dcec3248633382dde57b30 --- /dev/null +++ b/entity/Forecast_entity/entityfields/kind/valueProcess.js @@ -0,0 +1,9 @@ +import("system.vars"); +import("system.result"); +import("KeywordRegistry_basic"); + +if(vars.get("$this.value") == null) +{ + result.string($KeywordRegistry.forecastKind$forecast()); +} +