Hi All,
I have created an experience builder application in developer 1.15 (due to a custom widget I am using for another purpose) for deployment to internal web application servers. I have added the Analysis widget to my app, configured it to use a Custom Web Tool utility service in our enterprise environment. The Map associated to the widget is a web map with one polygon feature layer. When I run the app in developer version locally, I am able to select this feature layer as the Area of Interest. However, when I deploy the app to our web servers, the analysis widget displays "The map contains no compatible layers..." when the Area of Interest Layer button is selected. In devtools, I can see that the widget is trying to access the layer through proxy and receives a 403 forbidden.
I am told the service it is trying to access is an open service and should not be requiring authentication. Any ideas?
https://developers.arcgis.com/experience-builder/guide/deployment-topics/#deploy-the-experience
Have you created a Client ID on your Portal and added the App ID to the config.json?
Yes, I have the portalUrl and the clientId under the 'attributes' in the config.json. We are using the same id that is used as the appId for the same portal in the WAB version of this application.
Since my last post, I discovered that although in local developer version the Analysis widget Layer button does display the available layers, and if they have a selected set of features it does display that number of features in the Analysis widget once the layer is chosen, the analysis (in this case our custom web tool to extract data) does not honor this selection. It only honors the selected features if I use the Select widget Data Action to "Set As Analysis Input" and select the Analysis widget and "Area of Interest" parameter.
Interestingly, although when deployed to server the same application does not recognize any valid layers in the web map when the Analysis widget Area of Interest Layer add button is clicked, using the Select widget "Set as Analysis Input" does populate the Layer into the Analysis widget Area of Interest with the correct number of features selected and the extract data task uses these feature to extract the data successfully.
Is there any existing or planned capability to have a message action that could be configured to automatically make selected features analysis widget input rather than requiring the user to do it manually through Data action?
I've attached screen shots of the network request that Analysis widget makes when only choosing the Area of Interest layer through the Layer+ button (uses a url to the feature layer with a filter specifying the selection set - this doesn't seem to work) vs. using the "Set As Analysis Input" data action from select widget (uses a features array with polygon rings specified).