Technically, this is in relation to Robert Scheitlin, GISP and his eSearch widget. But I assume it would work for any.
Here is my scenario.
1) I have a working and deployed WAB App.
2) App uses Widget 123
3) Widget 123 gets an Update from version X.1 to X.2
4) App needs some functionality of X.2 version
Now up till now, I add the new version to my WAB and then recreate the entire WAB App. Then the new version goes directly in. Problem solved.
As the complexity of my WAB Apps are growing this is becoming a tedious process and I am hoping to update my procedures here. So I am asking. What is the preferred way to update a WAB App with a new version of Widget 123 once an update comes out?
Solved! Go to Solution.
Brain,
If the new features in the widget do not require any configuration then technically you can just overwrite the widget in the widgets folder of the deployed app. But for example the new eSearch has the CSV export capability if you where to use the above mentioned method then you would still not see this new capability as this feature has to be turned on for the desired layers in the config_Enhanced Search.json (i.e. "export2Csv": true,).
Brain,
If the new features in the widget do not require any configuration then technically you can just overwrite the widget in the widgets folder of the deployed app. But for example the new eSearch has the CSV export capability if you where to use the above mentioned method then you would still not see this new capability as this feature has to be turned on for the desired layers in the config_Enhanced Search.json (i.e. "export2Csv": true,).
I downloaded eSearch latest: V 2.0.1.4 and copied over existing eSearch folder in client\stemapp\widgets.
Stopped and restarted node.js, but I still see V 2.0.1.3 in actual WAB builder (not deployed version).
What step am I missing?
Cob,
You have to update the particular apps widgets folder as well:
[install dir]\server\apps\[app#]\widgets\eSearch
That did it, thanks
I will make note of that step.
As another option, Esri posted a Yeoman workflow on their GitHub that greatly simplifies WAB widget development:
GitHub - Esri/generator-esri-appbuilder-js: Yeoman generator to help customize Esri's WebAppBuilder