Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
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: Tab title reading 'SmartPartInfo'
Daniel
Posts: 12
 
Tab title reading 'SmartPartInfo'Your last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Nicolas Galler
Posts: 93
 
Re: Tab title reading 'SmartPartInfo'Your last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
Daniel
Posts: 12
 
Re: Tab title reading 'SmartPartInfo'Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Nov 07 11:11 AM
That's brilliant. Works perfectly. It's easy when you know how.

Thanks very much for your help. Much appreciated.
[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 © 2024 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): 11/22/2024 8:54:06 PM