Skip to content
Snippets Groups Projects
Commit a42bfae3 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

addres ws fix mandatory fields not working

parent cc1b5190
No related branches found
No related tags found
No related merge requests found
......@@ -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" />
......
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
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")))
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment