As follow up to my earlier question/comment. We did further testing and I believe we have discovered that the problem is not in WAB, but is actually possible BUG in ArcGIS Server when returning results for spatial layer that is coming from a non-ArcSDE geography type that is in different projection than the rest of the layers. In our case problem is actually happening on ArcGIS Server side of things and strongly looks like is a bug in how it is handling returning the geometry coordinates for queries against a feature class which is not an ArcSDE feature but is a SQL Spatial geometry object. ArcGIS Server is asked to return the coordinates for the feature in Web Mercator (e.g. meters), but it is incorrectly returning the lat long values of the coordinates and then attempting to go there in Web Mercator system which is close to 0,0, and sends us off to west coast of Africa.
We tested out the map request directly from the ArcGIS Server Rest endpoint and this is how we isolated problem:
This is example of the query that WAB was running when we clicked on attribute table:
WAB sends request to zoom to feature which is in WGS84 SQL Spatial geometry (and should should be returning geometry in Web Mercator wkid=102100 coordinates):
Response - appears that ArcGIS Server returns Long/Lat values for coordinates instead of the requested Web Mercator:
{"displayFieldName":"wo_no","fieldAliases":{........:"edited_by","edit_dt":"edit_dt","ESRI_OID":"ESRI_OID"},
"geometryType":"esriGeometryPoint","spatialReference":{"wkid":102100,"latestWkid":3857},"fields":
....
"approved_by":null,"approved_by_desc":null,"problem":"Needs desilting","wo_comments":null,"insp":0,"inspection_type":null,"insp_By":null,"insp_By_desc":null,
"insp_By_user":null,"rating":0,"edited_by":"APPADMPASCUAL","edit_dt":1456250125000,"ESRI_OID":5},"geometry":{"x":-122.06906986999996,"y":37.699190387000044}}]}
We are using ArcGIS Server 10.3.1. We are going to be opening support ticket with ESRI.