Community
Showing results for 
Search instead for 
Do you mean 
Reply

Custom Control added to the Contact Opportunities Tab

Accepted Solution Solved
New Member
Posts: 11
Country: USA
Accepted Solution

Custom Control added to the Contact Opportunities Tab

I am trying to add a custom control we developed to the opportunities Tab on the Basic Contact layout.  This is on ACT Premium 2011.

 

However when I look in the layout designer I can move a custom control on to one of the tabs we have added but cannot to the existing tabs (like Opportunities).  The ACT tabs are pure white and when I bring the control over them the cursor changes to indicate that I cannot drop the control.

 

Is it not possible to do this in the layout designer?

 


Accepted Solutions
Solution
Accepted by topic author markbmcd
‎09-25-2015 03:20 AM
Employee
Posts: 1,163
Country: USA

Re: Custom Control added to the Contact Opportunities Tab

I don't believe custom controls can be added to the notes, history, activity or opportunities tabs on the contact layout through the layout designer. I do believe you can add them to the toolbars on these tabs programmatically.

Matthew Wood
Act! SDK Support
Community Moderator

View solution in original post


All Replies
Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: Custom Control added to the Contact Opportunities Tab

Which version of ACT! are you running? Only version 11 and above allowed custom Opportunity layouts.
Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog
New Member
Posts: 11
Country: USA

Re: Custom Control added to the Contact Opportunities Tab

Sage ACT! Premium (Web) 2011 Version 13.1.111.0, Hotfix 1
Solution
Accepted by topic author markbmcd
‎09-25-2015 03:20 AM
Employee
Posts: 1,163
Country: USA

Re: Custom Control added to the Contact Opportunities Tab

I don't believe custom controls can be added to the notes, history, activity or opportunities tabs on the contact layout through the layout designer. I do believe you can add them to the toolbars on these tabs programmatically.

Matthew Wood
Act! SDK Support
Community Moderator
New Member
Posts: 1
Country: India

Re: Custom Control added to the Contact Opportunities Tab

Hi,

 

Can you please share any sample which is showing that (adding tab programmatically to opportunity or other )?

 

Thanks

Copper Super Contributor
Posts: 52
Country: United_Kingdom

Re: Custom Control added to the Contact Opportunities Tab

Hi mohitkaushik,

 

Here's a quick method that should point you in the right direction.

 

public TabPage AddTab(ActApplication oApp, string displayText, string name)
{
    //CREATE A NEW TAB
    TabPage tp = new TabPage(displayText);
     tp.Name = name;

    //ADD TO THE CURRENT LAYOUT
    oApp.UILayoutDesignerManager.AddTabToCurrentLayout(tp);

    //RETURN THE TABPAGE FOR USER TO ADD CONTROLS
    return tp;
}

Just use it like this:

 

TabPage page = AddTab(ActApp, "My New Tab", "myNewTab");

 Then you're free to add any controls you want:

 

Button b = new Button();
b.Text = "Press Me";
b.Name = "pressMe";
b.Width = 80;
b.Height = 23;
tp.Controls.Add(b);

 I hope this helps.

 

Regardsm

 

 

Russell