I'm attempting to build an interactive map that would be hosted in AGOL. It would be a network query, whereupon selecting a point feature from an "inlet" layer, the map would display the corresponding (down-tree) "outlet" point feature. The point features on the network are connected by poly-lines with "upstream" and "downstream" fields that correspond to ID fields in the "inlet" and "outlet" tables.
I've created a .gdb in ArcMap, and have published the layers to AGOL succesfully, but am now unsure how to approach the scripting necessary for functionality. Can I create a tool/addin in ArcMap using Python, and then publish to AGOL? Or can I create a tool within AGOL itself? I'm having trouble finding a clear answer in any of ESRI's documentation.