Is there a way to customise the add data widget so that it doesn't take you to the AGOL or portal page for the metadata?
It would be ideal if the description etc appeared in the widget or in a pop-up box.
Many thanks
Gareth
Robert Scheitlin, GISP Adri2c Pérez Beneito
Thanks Robert for having a look
Gareth,
This widgets code in from back in WAB 2.1 and needs some serious work to get it up to date for the latter versions of WAB.
Robert Scheitlin, GISP
Thanks Robert. I've added the attachment.
I believe it lets you search more than one group as curated content and displays the information as part of the widget itself.
However, when I deploy it, I get error messages to say it can't find the portal/agol.
Robert,
Thanks for coming back to me so promptly. I think that is beyond the skills I currently have.
Thanks again for all your assistance. It's much appreciated
That would involve changing the detailsClicked function in the AddData/search/ItemCard.js to instead make an esriRequest to the REST service endpoint to get the json back and then use something like the jimu.js/dijit/message.js to present the info to the user in a message popup.
Sorry,
I forgot the name of the item
I really appreciate all the assistance you have given me these last few days. I'm still only learning javascript so struggle with the customisation. I can customise the css no problem.
It would be:
Description
Terms of Use
Credits
And if possible a button to open the metadata that's stored with the item like if you click here in agol:
Its just a query to see if its possible and how you would go about it
Thanks
That is a fairly large ask. What portion of the Service details that are displayed on that page would you have go to a popup instead (there are quite a few)?
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.