Select to view content in your preferred language

Button does not work

390
2
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
2 Replies
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
nadja
by
Frequent Contributor

Hi @UmaHarano and @ModyBuchbinder - thank you guys for this questions. I've got a similar issue and maybe you could help me? I created a dockpane which is opened by a simple button. This button displays usually our logo and works fine. However, eratically it doesn't work properly and doesn't show the logo,but rather a blue circle but with the text of our AddIn. If the blue button is clicked it turns grey. In none of these cases there is an error message. And the issues appear on various computers, all having ArcGIS Pro 3.5.2 installed under which the AddIn was scripted. do you have any ideas where I should start looking? 

0 Kudos