Select to view content in your preferred language

active content pane

675
2
Jump to solution
01-09-2023 02:26 AM
pspada_WT
New Contributor III

Hi,

I'm trying to activate the export table in code (So i select a layer and call the ICommand).

The problem is that I previously need to activate the content pane. How I active the Content pane in code. 
pspada_WT_0-1673259842499.png

I think i need this but, if so, I can't find the ID of the pane.

pspada_WT_1-1673259953457.png

 

0 Kudos
1 Solution

Accepted Solutions
pspada_WT
New Contributor III

Hi,

I've found the solution. You need to activate the TAB where that command is present. For some reason at first click it doesn't work so i create an eventhandler which is activated only in the case the button is in not execute state. This eventhandler is fired when the buttton state change from "not can execute" to "can execute".

pspada_WT_0-1673263587444.png

 

View solution in original post

0 Kudos
2 Replies
pspada_WT
New Contributor III

Hi,

I found the daml ID of the contenten pane (I've found in the DAML ID reference under Dockpane)

"esri_core_contentsDockPane"

I still cannot execute the ICommand. What I'm missing?

The actual workflow is this:

1) I activate the Content dockpane 

2)I execute The Command export table

What I'm missing?

0 Kudos
pspada_WT
New Contributor III

Hi,

I've found the solution. You need to activate the TAB where that command is present. For some reason at first click it doesn't work so i create an eventhandler which is activated only in the case the button is in not execute state. This eventhandler is fired when the buttton state change from "not can execute" to "can execute".

pspada_WT_0-1673263587444.png

 

0 Kudos