diff --git a/entity/Address_entity/Address_entity.aod b/entity/Address_entity/Address_entity.aod index 6fb61c97658614e98c934301bbcf1f0b06d878d5..6d56e9450bf05c99ceead626e88b6cf47f566822 100644 --- a/entity/Address_entity/Address_entity.aod +++ b/entity/Address_entity/Address_entity.aod @@ -425,6 +425,7 @@ </entityField> <entityField> <name>Address_ws</name> + <title>dfg</title> <consumer>StreetValidation</consumer> <mandatoryProcess>%aditoprj%/entity/Address_entity/entityfields/address_ws/mandatoryProcess.js</mandatoryProcess> <textInputAllowed v="true" /> diff --git a/entity/Address_entity/entityfields/zip_ws/displayValueProcess.js b/entity/Address_entity/entityfields/zip_ws/displayValueProcess.js index 72a6e97c0afe6d7578f35ef3373e5abcfbdf5fce..3c1fea5790d67cb8180b615b525fd60dce99bef3 100644 --- a/entity/Address_entity/entityfields/zip_ws/displayValueProcess.js +++ b/entity/Address_entity/entityfields/zip_ws/displayValueProcess.js @@ -1,3 +1,3 @@ import("WsValidation_lib"); -WsValidationFieldUtils.wsDisplayValueProcess(WsValidationType.get().TYPE_ZIP_NOMINATIM, "$field.ZIP"); \ No newline at end of file +WsValidationFieldUtils.wsDisplayValueProcess(WsValidationType.get().TYPE_ZIP_NOMINATIM); \ No newline at end of file diff --git a/process/WsValidation_lib/process.js b/process/WsValidation_lib/process.js index ef1bf9a459298c4b5e429aa2ae499bc544ec8e9d..1343b1a29d3031b3b98a8c6d4fc0684e00889d5a 100644 --- a/process/WsValidation_lib/process.js +++ b/process/WsValidation_lib/process.js @@ -1,3 +1,4 @@ +import("system.result"); import("system.logging"); import("system.translate"); import("system.project"); @@ -490,8 +491,8 @@ WsValidationFieldUtils.mainFieldMandatoryProcess = function(pWsType, pMandatory) * @param {String} field-variable from the main field. e.g. "$field.ZIP" */ WsValidationFieldUtils.wsValueProcess = function(pWsType, pMainField) -{ - if (vars.get("$this.value") == null && WsValidationUtils.isWsEnabled(pWsType)) +{//vars.get("$this.value") == null && + if (WsValidationUtils.isWsEnabled(pWsType)) { result.string(vars.get(pMainField)); } @@ -507,8 +508,8 @@ WsValidationFieldUtils.wsDisplayValueProcess = function(pWsType, pMainField) { if (WsValidationUtils.isWsEnabled(pWsType)) { - // use the value from the corresponding field as display value - result.string(vars.get(pMainField)); + // use the value from the current field as display value (for instant refresh of display value + result.string(vars.get("$" + vars.get("$this.name"))) } }