Shortlist App in Portal

4120
6
Jump to solution
09-04-2014 09:35 AM
TrentReeder
Occasional Contributor

Can I use Portal for the Shortlist App?  I've seen other Story Map apps ReadMe files discuss about deploying an app on Portal, but I have not located any information yet regarding how to deploy a Shortlist app.  Since I am not seeing too much documentation regarding deploying this app to Portal, I am thinking that I might have to add code relevant to Portal web template development.  Kind of thinking out lout here...

If anyone has deployed their Shortlist app to their Portal, I would really appreciate to learn how it was done.  Thanks!

0 Kudos
1 Solution

Accepted Solutions
GregoryL_Azou
Occasional Contributor III

Shortlist doesn't implement the full Portal/ArcGIS Online pattern like other template yet, so you can't reploy it as a template to be present in the Web Application gallery yet.

But you can to configure it to be able to use a webmap served by your Portal.

Edit main.js and add the following line before the call to esri.arcgis.utils.createMap (around line 150)

esri.arcgis.utils.arcgisUrl = "http://myportal/arcgis/sharing/content/items";

View solution in original post

0 Kudos
6 Replies
AnthonyGiles
Frequent Contributor

The help says:

To successfully publish your shortlist you’ll need to be able to host the application template and the photos you will use on a publicly accessible server, and you’ll also need an ArcGIS Online account (public or subscription) to author and save the map used in the shortlist.

I guess the fact that that it says you need an Online account would suggest you can not yet run it on Portal. This maybe just that it relies of the latest version of the javascript API which portal has not caught up with yet. I'm sure in future releases you will be able too.

I cannot see why you could not use your webmap id from portal in the template have you tried it? I would be interested to know if your are successful. Even online the shortlist app is not one you can choose from the share option.

0 Kudos
TrentReeder
Occasional Contributor

Yes, I have tried our production public Shortlist app against our portal and I receive a "Map creation failed" from the console.  By app default, www.arcgis.com arcgisUrl is being called by the esri.arcgis.utils class instead of our url.  So I need to do some more reading regarding configuring templates to work with content from Portal and not ArcGIS.com.

0 Kudos
GregoryL_Azou
Occasional Contributor III

Shortlist doesn't implement the full Portal/ArcGIS Online pattern like other template yet, so you can't reploy it as a template to be present in the Web Application gallery yet.

But you can to configure it to be able to use a webmap served by your Portal.

Edit main.js and add the following line before the call to esri.arcgis.utils.createMap (around line 150)

esri.arcgis.utils.arcgisUrl = "http://myportal/arcgis/sharing/content/items";

0 Kudos
TrentReeder
Occasional Contributor

That's it!  I had just added that line to my code and was able to get things working when I saw your reply come through.  Thanks!

0 Kudos
AdamRepsher
Occasional Contributor III

Can you also use the commented line 84 in the index.html?

// Uncomment and edit to use Portal for ArcGIS

// var DEFAULT_SHARING_URL = "http://www.example.com/arcgis/sharing/content/items";

//var DEFAULT_PROXY_URL = "http://www.example.com/arcgis/sharing/proxy";

...or is this something different?

0 Kudos
GregoryL_Azou
Occasional Contributor III

Thanks Adam, I forgot that a configuration was possible through these two lines in index.html.

That's more simple that my previous solution so best to use it.

0 Kudos