Select to view content in your preferred language

Adding a group to an existing tab in DAML

481
2
Jump to solution
11-20-2023 02:57 PM
BinhLe
by
Occasional Contributor

Hello,

I am trying to add to a custom group to another custom group. I have only been successful adding a button to the existing custom group (tab). There a way to add a group to another group or do I have to add each button separately?

 

0 Kudos
1 Solution

Accepted Solutions
GKmieliauskas
Esri Regular Contributor

Hi,

First step is to manage modules dependencies. You need to add dependency to module where group (tab) exists. For ArcGIS Pro module it could look like that:

 

  <dependencies>
    <dependency name="ADMapping.daml" />
  </dependencies>

 

For custom module:

 

  <dependencies>
    <!-- id of "Add-in B" same as AddInInfo id="{00000000-0000-0000-0000-000000000000}"-->
    <dependency name="{00000000-0000-0000-0000-000000000000}" />
  </dependencies>

 

It will manage module loading order. At the time you want to insert button group/tab will be already created.

Second step is updating group/tab.

 

<updateModule refID="esri_mapping">
  <groups>
    <updateGroup refID="esri_mapping_navigateGroup">
      <insertButton refID="New_Menu_Item_Button" />
    </updateGroup>
  </groups>
</updateModule>

 

More info here

View solution in original post

2 Replies
GKmieliauskas
Esri Regular Contributor

Hi,

First step is to manage modules dependencies. You need to add dependency to module where group (tab) exists. For ArcGIS Pro module it could look like that:

 

  <dependencies>
    <dependency name="ADMapping.daml" />
  </dependencies>

 

For custom module:

 

  <dependencies>
    <!-- id of "Add-in B" same as AddInInfo id="{00000000-0000-0000-0000-000000000000}"-->
    <dependency name="{00000000-0000-0000-0000-000000000000}" />
  </dependencies>

 

It will manage module loading order. At the time you want to insert button group/tab will be already created.

Second step is updating group/tab.

 

<updateModule refID="esri_mapping">
  <groups>
    <updateGroup refID="esri_mapping_navigateGroup">
      <insertButton refID="New_Menu_Item_Button" />
    </updateGroup>
  </groups>
</updateModule>

 

More info here

BinhLe
by
Occasional Contributor

This works! thank you. I revisit other posts as well on dependencies and used the GUID ID for the existing addin. Thanks for your reply

0 Kudos