Select to view content in your preferred language

Button does not work

265
1
12-16-2024 11:48 PM
ModyBuchbinder
Esri Regular Contributor

We created a very simple button in Pro sdk.

The button works on the developer machine and on other machines.

On some machines you can see the addon and the button when you open Pro but when you press it nothing happened and the button become gray (disable).

There is no error messages anywhere.

As far as we can tell the same framework is installed on all machines.

Pro 3.3 Framework 8.

It is impossible to install VS on the machines that show the problem

Any idea?

Thanks

0 Kudos
1 Reply
UmaHarano
Esri Regular Contributor

@ModyBuchbinder 

This happens mainly when the button's class (or code behind) is not found by the ArcGIS Pro add-in framework.

Hover over the button (while gray) with your mouse. In many cases you will see info on what class it is looking for. 

Then on a developer machine, check if the button class matches the definition in the config.daml.  The namespace of your button class should match the namespace defined in the DAML. That could be another thing to check.

0 Kudos