Skip to content
Snippets Groups Projects
Commit f1f0a813 authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

#1064320 Address search fix for street

parent 36af0f88
No related branches found
No related tags found
No related merge requests found
...@@ -130,6 +130,7 @@ ...@@ -130,6 +130,7 @@
</entityField> </entityField>
<entityField> <entityField>
<name>BUILDINGNO</name> <name>BUILDINGNO</name>
<title>Nr</title>
</entityField> </entityField>
<entityProvider> <entityProvider>
<name>StreetValidation</name> <name>StreetValidation</name>
...@@ -154,6 +155,10 @@ ...@@ -154,6 +155,10 @@
<name>City_param</name> <name>City_param</name>
<expose v="true" /> <expose v="true" />
</entityParameter> </entityParameter>
<entityField>
<name>STREET_AND_BUILDINGNO</name>
<title>Street</title>
</entityField>
</entityFields> </entityFields>
<recordContainers> <recordContainers>
<jDitoRecordContainer> <jDitoRecordContainer>
...@@ -206,6 +211,9 @@ ...@@ -206,6 +211,9 @@
<jDitoRecordFieldMapping> <jDitoRecordFieldMapping>
<name>VALUE.value</name> <name>VALUE.value</name>
</jDitoRecordFieldMapping> </jDitoRecordFieldMapping>
<jDitoRecordFieldMapping>
<name>STREET_AND_BUILDINGNO.value</name>
</jDitoRecordFieldMapping>
</recordFieldMappings> </recordFieldMappings>
</jDitoRecordContainer> </jDitoRecordContainer>
</recordContainers> </recordContainers>
......
...@@ -55,7 +55,8 @@ else ...@@ -55,7 +55,8 @@ else
row.buildingNo, row.buildingNo,
row.lat, row.lat,
row.lon, row.lon,
row.value row.value,
row.road && row.buildingNo ? row.road + " " + row.buildingNo : row.road
]; ];
})); }));
} }
import("system.vars"); import("system.vars");
import("WsValidation_lib"); import("WsValidation_lib");
if(!vars.get("$this.value")) WsValidationFieldUtils.wsValueProcess(WsValidationType.get().TYPE_STREET_NOMINATIM, "$field.ADDRESS");
WsValidationFieldUtils.wsValueProcess(WsValidationType.get().TYPE_STREET_NOMINATIM, "$field.ADDRESS"); \ No newline at end of file
\ No newline at end of file
...@@ -30,15 +30,7 @@ ...@@ -30,15 +30,7 @@
</neonTableColumn> </neonTableColumn>
<neonTableColumn> <neonTableColumn>
<name>a272c3cb-7bbf-41a4-9490-884c2f449b40</name> <name>a272c3cb-7bbf-41a4-9490-884c2f449b40</name>
<entityField>STREET</entityField> <entityField>STREET_AND_BUILDINGNO</entityField>
</neonTableColumn>
<neonTableColumn>
<name>e842bb68-96c6-4d1f-bf44-70a29c7c7d72</name>
<entityField>FROM_BN</entityField>
</neonTableColumn>
<neonTableColumn>
<name>59162b47-ec96-4076-8e57-929fccbf133d</name>
<entityField>TO_BN</entityField>
</neonTableColumn> </neonTableColumn>
<neonTableColumn> <neonTableColumn>
<name>d32d92bf-db7d-443f-b911-6731ea89cf3b</name> <name>d32d92bf-db7d-443f-b911-6731ea89cf3b</name>
......
...@@ -17,10 +17,6 @@ ...@@ -17,10 +17,6 @@
<entityField>ROLE</entityField> <entityField>ROLE</entityField>
<fullWidth v="true" /> <fullWidth v="true" />
</neonGenericMultipleTableColumn> </neonGenericMultipleTableColumn>
<neonGenericMultipleTableColumn>
<name>a67f3020-1438-483a-9897-647336002618</name>
<entityField>UID</entityField>
</neonGenericMultipleTableColumn>
</columns> </columns>
</genericMultipleViewTemplate> </genericMultipleViewTemplate>
</children> </children>
......
...@@ -354,16 +354,12 @@ WsValidationUtils.setAddressFields = function(pJSON) ...@@ -354,16 +354,12 @@ WsValidationUtils.setAddressFields = function(pJSON)
"$field.REGION": data.region, "$field.REGION": data.region,
"$field.STATE": data.state, "$field.STATE": data.state,
"$field.ADDRESS": data.road, "$field.ADDRESS": data.road,
"$field.LAT": data.lat, "$field.BUILDINGNO": data.buildingNo
"$field.LON": data.lon
} }
for (let field in toSet) for (let field in toSet)
{ {
let value = toSet[field]; let value = toSet[field] || "";
if (!value)
value = "";
neon.setFieldValue(field, value); neon.setFieldValue(field, value);
} }
......
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