Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, June 28, 2025 
 
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!
 Web Forums - SalesLogix Web Platform & Application Architect
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Issue Hiding a tab
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Issue Hiding a tabYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Jul 08 5:05 AM
Hi,

I am trying to hide a tab in the page_load event of form, but am getting an error, as the below method expects a SmartPart as an object not a string reference.

How do you declare a SmartPart as an Object? From the FAQ dev thing I have it is supposed to be:

• Hide() - use this method to remove a Smart Part from the workspace.

But does not explain how you actually get an object handle to the smartpart.

Many thanks,
Nick
[Reply][Quote]
Bill
Posts: 10
 
Re: Issue Hiding a tabYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Feb 12 7:48 AM
fiogf49gjkf0d

Nick:


Did you ever get this worked out?  I tried


smrtPrt = objTab.GetSmartPartByID("GDCGProjectExtendedDetails");


but that gives an error saying that the implicit conversion from UI.Control to SmartParts.Smartparts doesn't exist.  There claims to be an explicit conversion but I can't find it.  I've also tried hiding the tab using Sage.Platform.WebPortal.Workspaces.Tab.TabInfo and System.Web.UI.Control but those didn't work.  This is what I've tried.


Sage.Platform.WebPortal.Workspaces.Tab.TabWorkspace objTab = new Sage.Platform.WebPortal.Workspaces.Tab.TabWorkspace();
Sage.Platform.WebPortal.Workspaces.Tab.TabInfo infoTab = objTab.GetTabByID("Smart_Part_ID");
System.Web.UI.Control ctrlTab = objTab.GetSmartPartByID("Smart_Part_ID");


objTab.Hide(infoTab);


objTab.Hide(ctrlTab);


 


Thanks:


Bill

[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Issue Hiding a tabYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Feb 12 8:15 AM
fiogf49gjkf0d

Bill,


Ron Fisher has kindly written an article to do just this:


http://www.profilingsolutions.com/archive/saleslogix-web-hide-tabs-at-runtime/


 


Thanks,


Nick

[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/28/2025 4:07:24 AM