10/14/2025 4:45:48 PM
|
|
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.
|
|
|
|
Tab title reading 'SmartPartInfo'
Posted: 09 Nov 07 10:43 AM
|
Hi,
I'm wondering if anyone has come across this really really annoying problem I'm having. I've got a custom SmartPart which is displayed in a tab.
My tab is set up as follows: Smart Part ID: AcountHierarchy Smart Part:SmartParts\Account\AccountHierarchy.ascx Title: Account Hierarchy Description: Account Hierarchy Target Workspace: TabControl ShowInMode: Detail
All seems fine, but the 'Title' is being ignored and the tab appears as 'SmartPartInfo'. My custom page 'AccountHierarchy.ascx' has a code behind file. This is declared as follows:
<% @ Control Language="C#" AutoEventWireup="true" CodeFile="AccountHierarchy.ascx.cs" Inherits="SmartParts_AccountHierarchy" %>
My code behind page has a partial class of:
public partial class SmartParts_AccountHierarchy : EntityBoundSmartPartInfoProvider
My page works perfectly with no issues, however the tab displays as SmartPartInfo. I've tried removing the tab from the page and adding it back in. I've tried removing the custom smart part from the VFS and putting it back in. The only thing I can do to get the tab to display 'Account Hierarchy' is to remove Inherits="SmartParts_AccountHierarchy" from my ascx page, in which case I get an error saying that a page referencing a code behind file must have an Inherits statement BUT, BUT, the tab then appears correctly with 'Account Hierarchy', although the tab just shows the error message.
I'm tearing my hair out here!
Any help would be very gratefully received.
Cheers
Daniel |
|
|
|
Re: Tab title reading 'SmartPartInfo'
Posted: 09 Nov 07 2:31 PM
|
Did you set the title in the GetSmartPartInfo override? Something like:
public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType) { ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo(); tinfo.Description = "Edit Sales Order"; tinfo.Title = "Edit Sales Order"; tinfo.RightTools.Add(btnSave); return tinfo; }
There are a few ways to set the title but some of them get ignored in certain cases. Sometimes. |
|
|
| |
|
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!
|
|
|
|
|
|
|
|