Community
Showing results for 
Search instead for 
Do you mean 
Reply

Tab Control in WebPage

New Member
Posts: 2
Country: Belgium

Tab Control in WebPage

Hello,

 

I read the content of Url http://community.act.com/sage/board/message?board.id=Pub_Dev&message.id=2634&query.id=1804838#M2634

 

 

but my object is not added in the contact page (on the web page). Does it miss code? 

 

Thanks you

Laurent Dellacherie

 

CODE DLL :

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using Act.Web.Framework;

using Act.Web.Framework.Core.Layouts;

using System.IO;

 

namespace ActPlugin_TabTest

{

    publicclass ActPlugin_TabTest: Act.Web.Framework.IWebPlugin

    {

        CustomTabProvider customTab = null;

        Act.Web.Controls.Layouts.UILayoutManager layout = null;

 

        public void Init(ACTSessionManager session)

        {

           if (this.customTab== null)

               this.customTab = newCustomTabProvider(this.ServeCustomTab);

 

           this.layout = newAct.Web.Controls.Layouts.UILayoutManager();

           this.layout.AddCustomTabProvider(LayoutType.Contacts, this.customTab);

 

        }

 

        private boolServeCustomTab(Act.Web.Framework.ACTSessionManagersession, out stringtabName, out stringtabURL)

        {

           tabName = "sample plugin";

           

           tabURL = session.AppPath + "plugins/content/SamplePlugin/Default.aspx";

 

           return true;

 

        }

 

 

    }

}

 

 

 

CODEDefault.aspx

 

using System;

using System.Collections;

using System.Configuration;

using System.Data;

using System.Linq;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.HtmlControls;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Xml.Linq;

 

namespace SamplePlugin

{

    publicpartial class _Default : Act.Web.Framework.Page

    {

        protected voidPage_Load(object sender, EventArgs e)

        {

 

        }

    }

} 

Employee
Posts: 1,163
Country: USA

Re: Tab Control in WebPage

Is your plug-in listed in dependentdlls? If so it could be missing a dependency.

Matthew Wood
Act! SDK Support
Community Moderator
New Member
Posts: 2
Country: Belgium

Re: Tab Control in WebPage

Yes with adaptation. Because the line "Session.LayoutTabs.AddCustomTabProvider(Act.Web.Framework.Core.Layouts.LayoutType.Contacts, this.ServeCustomTab)" is missing

 

 

For the XML : 

 

<FILES>

<ASSEMBLY>

<![CDATA[C:\Program Files (x86)\ACT\Act for Web\APFW\Plugins\DataChartContent.dll]]>

<![CDATA[C:\Program Files (x86)\ACT\Act for Web\APFW\Plugins\ActPlugin_TabTest.dll]]>

</ASSEMBLY>

</FILES> 

 

But the tab is not displayed.

 

Thanks for your help.

Laurent