Add groups to custom tab from two addins

626
2
11-08-2020 10:31 PM
ModyBuchbinder
Esri Regular Contributor

Hi all

We try to create a new tab ("our project") and then add groups of buttons.

We have two different addins (two different solutions) that have the same new tab adding different groups with different buttons.

It does not work. When you register just one of the addins the tab and group are visible. When you add them both it looks like the last one just recreate the tab so only one group exists in it.

Is there a way to do it or you have to put all group in a new tab into the same addin.

Thanks

0 Kudos
2 Replies
by Anonymous User
Not applicable

Hi @ModyBuchbinder ,

Lets say you have two addin, same tab name, lots of groups, want all the groups into a tab only.

This is achievable even though you have two solutions, but you need to have different tab id. Make two captions to be the same.

 

For example: 

So if you look at both of your addin, config.daml

first addin config.daml

<modules>

<insertModule id='moduleA' ......>

<tabs>

<tab id="tab1" caption="our project">

<group refID="groupA" />

<group refID="groupB" />

....

 

second addin config.daml

<modules>

<insertModule id='moduleB' ......>

<tabs>

<tab id="tab2" caption="our project">

<group refID="groupC" />

<group refID="groupD" />

<!-- you can add group id from first addin here if you are going to add into pro together and in same tab -->

<group refID="groupA" /> 

<group refID="groupB" /> 

....

 

And you need to remove the tab from first addin, like this

At the end of insertModule tag.

</insertModule>

<updateModule refID="moduleA">

<tabs>

<deleteTab refID="tab1">

</tabs>

</updateModule>

 

That way, pro will remove tab1 from first addin, and combine the UI group in tab2 at second addin.

But all button actions will still call from relevant addin.

 

Try and let me know or please let share your two daml files.

 

 

by Anonymous User
Not applicable

Is that solution working for you  @ModyBuchbinder ?

0 Kudos