Community
Showing results for 
Search instead for 
Do you mean 
Reply

Integrate a custom Tab into the GroupDetailView

Copper Contributor
Posts: 32
Country: Germany

Integrate a custom Tab into the GroupDetailView

Hi,

 

how is it possible to integrate a custom Tab into the GroupDetailView via Plugin?

Any suggestions?

Copper Contributor
Posts: 42
Country: Germany

Re: Integrate a custom Tab into the GroupDetailView

There's an example for a custom sub-entity tab for the contact layout, maybe this can help you to achieve similar for groups:

 

http://community.act.com/t5/Act-Developer-Downloads/Custom-Sub-Entity-Visual-Studio-Template/td-p/11...

Copper Contributor
Posts: 32
Country: Germany

Re: Integrate a custom Tab into the GroupDetailView

[ Edited ]

For me, this solution worked:

 

namespace NamespaceName
{
    public class IPlugin_ClassName : IPlugin
    {
        private bool IntegratedTabInGroupDetailView = false;
        internal ActApplication HostApplication;
public void OnLoad(ActApplication ActApplication) {             this.HostApplication = ActApplication; ActApplication.CurrentViewChanged += ActApplication_ViewChanged; } private void ActApplication_ViewChanged(object sender, EventArgs e) { // You have to integrade the Tab only ones when you change to GroupDetailView if (!this.IntegratedTabInGroupDetailView) { if (ACT_app.ActAppl.CurrentViewName == "Act.UI.IGroupDetailView") { // IntegratedTabInGroupDetailView changes after one Tab is realised this.IntegratedTabInGroupDetailView = true; AddTab(); } } }          private void AddTab()
         {              TabPage MyTabPage = new TabPage("TabName");
             UserControl UserControlName = new UserControl(); // UserControl-Unit VSTO: Menupoint: Projekt
             MyTabPage.Controls.Add(UserControlName);
             HostApplication.UILayoutDesignerManager.AddTabToCurrentLayout(MyTabPage); }
} }

 

 

I hope i didnt miss something.