Add button to homeTab Not visible

167
1
03-24-2024 01:37 PM
SigurdurGesr
New Contributor

 

Hi

I am try to add button to MAP tab I can not see the button

I can see the button if I add it to  insertTab but to if I add it to esri_core_homeTab


esri_core_module
esri_core_insertTab

 

	  <updateModule refID="esri_core_resourcesPane">
		  <tabs>
			  <updateTab refID="esri_core_homeTab">
				  <insertGroup refID="UpdatehomeTab_Group1"/>
			  </updateTab>
		  </tabs>
	  </updateModule>
	  
	  
	  	  <group id="UpdatehomeTab_Group1" caption="Group 30" appearsOnAddInTab="false">
		  <button refID="ProAppModule3_Button1" size="large" />
	  </group>
	  
	  
	  	  <button id="ProAppModule3_Button1" caption="Button 1" className="Button1" loadOnClick="true" smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonBlue16.png" largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonBlue32.png">
		  <tooltip heading="Tooltip Heading">
			  Tooltip text<disabledText />
		  </tooltip>
	  </button>

 

 

0 Kudos
1 Reply
GKmieliauskas
Esri Regular Contributor

Hi,

Your code UpdateModule refID is wrong. DAML below shows group in esri_core_homeTab.

  <modules>
    <insertModule id="ReportsSampleProject_Module" className="Module1" autoLoad="false" caption="Module1">
      <!-- uncomment to have the control hosted on a separate tab-->
      <tabs>
        <!--<tab id="ReportsSampleProject_Tab1" caption="New Tab">
          <group refID="ReportsSampleProject_Group1"/>
        </tab>-->
      </tabs>
      <groups>
        <!-- comment this out if you have no controls on the Addin tab to avoid
              an empty group-->
        <group id="ReportsSampleProject_Group1" caption="Group 1" appearsOnAddInTab="false">
          <!-- host controls within groups -->
          <button refID="ReportsSampleProject_Dockpane1_ShowButton" size="large" />
        </group>
      </groups>
      <controls>
        <!-- add your controls here -->
        <button id="ReportsSampleProject_Dockpane1_ShowButton" caption="Show Dockpane 1" className="Dockpane1_ShowButton" loadOnClick="true" smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonPurple16.png" largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonPurple32.png">
          <tooltip heading="Show Dockpane">Show Dockpane<disabledText /></tooltip>
        </button>
      </controls>
      <dockPanes>
        <dockPane id="ReportsSampleProject_Dockpane1" caption="Dockpane 1" className="Dockpane1ViewModel" dock="group" dockWith="esri_core_projectDockPane">
          <content className="Dockpane1View" />
        </dockPane>
      </dockPanes>
    </insertModule>
	  <updateModule refID="esri_core_module">
		  <tabs>
			  <updateTab refID="esri_core_homeTab">
				  <insertGroup refID="ReportsSampleProject_Group1"/>
			  </updateTab>
		  </tabs>
	  </updateModule>
  </modules>

My group  appearsOnAddInTab="false"

GKmieliauskas_0-1711355938053.png

 

0 Kudos