Hello, I am looking to add a new button to the right-click context menu of a geoprocessing (GP) tool to implement a custom GP batch processing feature.
I have already implemented the UI-level button creation and the pop-up window upon clicking. Below is the content of the daml file.
<insertModule id="BatchGeoprocessingClassic_Module" className="Module1" autoLoad="false" caption="Module1">
<controls>
<button id="WWW_GP_Batch_Classic_Button" caption="Batch Process (Classic)" className="GP_Batch_Classic_Button" loadOnClick="true" keytip="z1">
<tooltip heading="Batch Process (Classic)">
</tooltip>
</button>
</controls>
</insertModule>
<updateModule refID="esri_geoprocessing_module">
<menus>
<updateMenu refID="esri_geoprocessing_SystemToolMenu">
<insertButton refID="WWW_GP_Batch_Classic_Button" placeWith="esri_geoprocessing_BatchTool" />
</updateMenu>
</menus>
</updateModule>
Now, I have encountered a problem where I am unable to retrieve the GP tool that was right-clicked, as well as the parameters of the tool. I would like to ask if there is a way in the Pro SDK to obtain the name and parameters of the GP tool when a user right-clicks on it?