How to add a Files Uploader popup window to the Attributes Inspector

965
3
01-23-2017 11:32 AM
JoseSanchez
Occasional Contributor III

Hello everyone,

We have a polygon feature class that stores a link to the physical location of the attached documents as an hyperlink:  

FILE:///\\[server location]\[folder path for this specific feature]\*.PDF

To add or remove documents, the user drags and drops all the documents to this folder associated with the feature.

This solution has been implemented with ArcMap 2 or 3 years ago, and works as expected..

I want to implement the same functionality in AGOL Web Builder, so when the editor opens the Attribute Inspector window, a button "Upload Documents" allows to add or remove documents.

Something similar to:

http://ajaxuploader.com/drag-and-drop-files.htm 

How can I add a button on the Attribute Inspector?

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Jose,

   This sample shows how to add a save button to the attribute inspector:

Using the attribute inspector | ArcGIS API for JavaScript 3.19 

0 Kudos
JoseSanchez
Occasional Contributor III

Thanks,

Where do I add this code in the Edit Widget?

Any sample?

Thanks

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Jose,

  Hmm. Your question should have been posted to the Web AppBuilder for ArcGIS‌ space since if was specific to Web AppBuilder.

In the edit widget you will find the _addButtonToInspector method that shows how to add a button to the attribute inspector.

0 Kudos