AnsweredAssumed Answered

WAB 1.1 - Download 4 Deploy; itemid old value; widget missing

Question asked by mravichandran on Sep 1, 2015
Latest reply on Sep 5, 2015 by junshan_liu-esristaff

dear Readers,

 

thank you for taking the time to read this post and contemplating potential solutions for the same:

 

Situation. We have a web app builder 1.1 - the application consumes a map on a portal 10.1.  We made changes in the past and used download button to get the latest code and publish to the servers.  It was working fine.

 

Recently, we made modifications to the portal server that contained the main map that resulted in modifying the itemId value in config.json -

http://myServerName.Domain.com/arcgis/home/webmap/viewer.html?layers=0a7d2f5a8cfe4babbe113ec5c9cd5462 - this value.

 

To start with, we had changed the itemId value of config.json file in the web app builder environment  to use the same underlying map from the portal - but with the new ItemId.

 

Now problems encountered are as follows:

 

1. when we download from a working WAB for deploy - downloaded code  remembers the old itemId and not the new one even though the code folder under the WAB folder structure has the new itemId in config.json.  So we had to manually change the itemId everytime before copying the contents from the download zip/unzip folder to the server location.

 

2. Any new widgets that were create after the 'itemId' change are not showing in the published app  on the server but not on the WAB launch menu.

2b. On the server version, we see WIDGET TEMPLATE where we had mad changes.  On doing a file search on the download 4 deploy zip/unzip folder, we could see the html / javascript changes that are working on WAB launch menu.  The code on the server contains the new html controls and javascript code - but they would not show up.

 

any input to resolve our current situation would be great.

 

regards

ravi

Outcomes