8/17/2025 11:29:16 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
Playing with TabControl
Posted: 14 Dec 08 1:47 PM
|
Hi, I'm actually working with some customizations on SLX 7.5 Web platform, I have created a Portal Page with a SmartPart in Target Workspace "MainContent", and I have some Smartparts on "TabControl" target Workspace. What I need is to Enable/disable dynamically tabs depending of some custom columns on a custom table. In the aspx of the portal page I created, in the LoadSmartParts method I could load or not dynamically what smartpart is enable to be shown by this table, but as you know every time I do deploy puff I lost every customization on this file. Using Reflector I take a look at Sage.Platform.WebPortal.Workspaces.Tab.TabWorkspace, and with my surprise I found the Hide/Close method completely empty! So the Sage_SalesLogix_72_Web_Client_Programming_FAQ in the section "How do I access/control the tab workspace at runtime?" it's not completely good, I have no idea how show/hide tabs with SLX 7.5 [except with Roles given to users, that does not fit into my situation]. Looking how works the AddSmartpart method of TabWorkspace, I see that there is the Tabs IList, the TabElement and the TabElementView to be created. My idea is when I will be able to Add/Destroy [correctly] a Smartpart dynamically, I will put in Page_Load of the SmartPart in MainContent the code to Hide the not needed tabs. Thank you
|
|
|
|
Re: Playing with TabControl
Posted: 15 Dec 08 12:22 AM
|
This is an easy one: Place your code on the Master Page.
Under SupportFiles, open the "Masters" folder and edit the appropriate Master file. Most likely, you will need to modfiy the Base.Master file for your Page.
|
|
|
|
Re: Playing with TabControl
Posted: 09 Jan 09 4:47 AM
|
I had no luck modifying the Master template file, I have no idea how manipulate tabs from there. Looking how To-Do and Personal Activities works scheduling a new activity, I got that the Page Portal of Activity Details use the module Sage.SalesLogix.Web.UI.Activity.ActivityDetailModule. This class is the one that makes disappear tabs and refresh them, you can see the
public class ActivityDetailModule : IModule
In the method Load, it does:
TabWorkspace workspace = this.PageWorkItemLocator.GetPageWorkItem().Workspaces["TabControl"] as TabWorkspace; if (flag && (workspace != null)) { for (int i = workspace.Tabs.Count - 1; i >= 0; i--) { TabInfo item = workspace.Tabs[i]; if ((item.ID == "AddMembers") || (item.ID == "AddResources")) { workspace.Tabs.Remove(item); } } }
I try to put this for inside a Load Action, but obviously with no luck. Does anyone know how I can create a new Module with this code inside, and then compile and insert to the portal?
Thank you again, Bye!
|
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|