Select to view content in your preferred language

Experience Builder - Notebooks as a WebTool

569
2
09-27-2024 01:33 PM
YS2388
by
Regular Contributor

Hello,

I am attempting to achieve the following workflow:

1) There is a polygon layer in EXP application.

2) Select a group of polygons using the select widget.

3) Click the "Set as Analysis Input" button.

4) Select the custom web tool. (This web tool was created by publishing an AGOL notebook as a webtool). 

5) After running the webtool in EXB, the output is a list of the objectID values of the selected polygons.

I have been able to publish a webtool and open it in EXB, but I am struggling to figure out how to create the desired output. Any help would be greatly appreciated.

Thank you

0 Kudos
2 Replies
Alex_Rodriguez
Emerging Contributor

So let's assume I have a tool that selects some records from a table and I want to export that list of records to a PDF file.   I know I can do that with PYTHON.  Let's also assume I created that tool and published it from a notebook.  From your post I understand I can include that published tool in my experience builder app.  Am I correct in that assumption?

I need to add a tool to my Experience Builder app that allows the exporting of a set of records to a PDF file.  The export options "out of the box" don't include PDF file.  I'm going to have to create a custom tool that will allow that option.
My question is, how do I create a tool that I can then include in the Experience Builder app?

0 Kudos
LisaT
by
Frequent Contributor

Hi, I am looking for a few answers on Developing a custom web tool and came across your post.  Im not sure if you have made any progress, but wanted to provide an answer here.  To create a custom tool you have to use Notebooks in ArcGIS Online and write it with Python code.  Once the tool has been built, publish it.  Then, add an Analysis widget to your ExB app and click to use a custom tool and configure it. 

As a note, the Python functions in AGOL are different than using arcpy functions.  They are similar but not the same.  Your code will probably not work in the AGOL notebook without some tweaking.  There are some examples if you search for "Custom web tool", but since it is a newer functionality there isn't a lot out there.

0 Kudos