Select to view content in your preferred language

Analysis widget - hoping for enabled = false support and Category support

133
1
05-22-2025 08:17 AM
DougBrowning
MVP Esteemed Contributor

I am seeing that hiding params using self.params[3].enabled = False works great as a regular toolbox but when I publish the tool as a service in both Pro and ExB this does not work and it just always shows the param.

def updateParameters(self):

if(self.params[2].value):
self.params[3].enabled = True
else:
self.params[3].enabled = False
return

Is this a known issue?  I am seeing a number of things that work in a toolbox but not as a service.

Another example is Category is not supported in ExB but does work in Pro.  This is making it hard to create a consistent user experience.

DougBrowning_0-1747926922611.png

DougBrowning_1-1747927018599.png

 

Is there any doc on what is and is not supported when publishing?

thanks a lot

0 Kudos
1 Reply
Wei_Ying
Esri Regular Contributor

Hi @DougBrowning , this is currently a limitation from analysis component, that it does not honor the parameter display rule or restriction. There is already issue logged and enhancement requested to the analysis component team. But we cannot guarantee when can they support this. Thanks for your patience.