Esearch Failure when lauching app in edit mode or in normal mode

145
1
01-13-2021 01:29 AM
Labels (1)
David_Caussin
New Contributor

Hi @RobertScheitlin__GISP ,

I’m working on a 10.6 Portal for Arcgis and I have a problem with the eSearch widget in my webappbuilder.

I can add the widget in a new app and configure it without problem. But, if I save the app and leave, next time I open it, in the builder or in the viewer, it doesn’t load correctly:

  1. “SCRIPT5007: SCRIPT5007: Unable to get property 'en' of undefined or null reference

main.js (1247,190)

  1. TypeError: Unable to get property 'en' of undefined or null reference TypeError: Unable to get property 'en' of undefined or null reference at Anonymous function (...../portal/apps/webappviewer/jimu.js/main.js?wab_dv=2.8:1247:190) at l.forEach (http://....../portal/jsapi/jsapi/init.js:70:484) at registerWidgetFeatureActions (http://...../portal/apps/webappviewer/jimu.js/main.js?wab_dv=2.8:1247:151) at Anonymous function (http://...../portal/apps/webappviewer/jimu.js/main.js?wab_dv=2.8:1248:44) at Anonymous function (http://...../portal/jsapi/jsapi/init.js:63:328) at r (http://....../portal/apps/webappviewer/jimu.js/main.js?wab_dv=2.8:184:294) at q (http://...../portal/apps/webappviewer/jimu.js/main.js?wab_dv=2.8:184:443) at a.visitElement (http://....../portal/apps/webappviewer/jimu.js/main.js?wab_dv=2.8:15:249) at registerAllWidgetFeatureAction

I already tried versions 2.17, 2.9 and 2.6. I only managed to make it work by deleting the feature actions in the manifest but then the zoom (which I really need) is lost.

Do you know where the problem comes from and how to fix it?

Thank you in advance for your help.

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

David,

  Try adding 

_widgetLabel: "Enhanced Search",

to the nls\strings.js file. For example:

...
    _widgetLabel: "Enhanced Search",
    _featureAction_eShowStatistics: "Statistics...",
    _featureAction_eZoomTo: "Zoom to",
    _featureAction_eExportToCSV: "Export to CSV file",
    _featureAction_eShowRelate: "Show Relates"
  }),
  "ar": 0,
  "cs": 0,
...
0 Kudos