Select to view content in your preferred language

Widget for bulk downloading hyperlinked documents

684
2
04-11-2018 09:29 PM
ChaimSchwartz3
Occasional Contributor

Hi, 

I have a point layer with stored hyperlinks that point to online hosted documents.

I am looking for a way to allow users to select multiple points and batch download the associated documents.

Has anybody developed a similar widget? If not, what would be the best approach to achieve this (customize the select widget?), I'm not experienced with this...

Thank you

Chaim

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Chaim,

  A download of an object from the web to the client requires a user click for each item downloaded for security reasons, so there is not a good way to do this but to have a list displayed with links to each of the selected features stored documents. I have not seen any widget available for this. The select widget might be a starting point to get the users selected points then you would have to get the selected features from the Layer

https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#getselectedfeatures

and then get the hyperlink field attribute from the each of the selected features and create a html anchor (hyperlink) element in a window/popup for those selected feature documents that the user can click on individually and download. Due to the fact that the user will still have to click each link there is not a lot of benefit to this approach over have the user click the link in the popup for each feature they are interested in.

ChaimSchwartz3
Occasional Contributor

Thank you Robert,

I hope to find the time to work on it. If anybody does find something similar I'd love to hear. Basically what I want is simmilar to this application: http://www.urisa.org/clientuploads/directory/Documents/ESIG/2016%20Winners/Nomination_URISA_ESIG_Awa... , maybe with a small enhancement like this: https://plnkr.co/edit/XynXRS7c742JPfCA3IpE?p=preview .

Thanks

Chaim

 
0 Kudos