Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, July 4, 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: Calling a custom smart part into dialog from a toolbar button
Alec Denholm
Posts: 34
 
Calling a custom smart part into dialog from a toolbar buttonYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 09 6:11 AM
I'm wondering if there's a better way to achieve the following scenario (which does work).

A toolbar button on OpportunityDetails.ascx invokes a custom smartpart into the DialogWorkspace. However, when creating the toolbar button, the 'Dialog Action' option does not permit selection of the custom smartpart, because the smartpart dropdown is filtered by the EntityType dropdown. AppArchitect understandably doesn't know my custom smartpart is an Opportunity-based smartpart, so no possible selection from this EntityType dropdown will expose my custom smartpart in the sub-dropdown (i.e. the smartpart chooser).
The way I found to get around this was to make a blank smartpart against Opportunity (in the VFS) with the same name as my custom smartpart, and select that as the smartpart the Dialog Action should invoke. At runtime, the custom smartpart is shown instead because the blank smartpart was deliberately not added to the Opportunity portal page, the custom one (with the same name) being in it's place.

As I mentioned, this method does work; but surely there's a better way to get a toolbar button to invoke a Dialog Action and be able to directly select my custom smartpart?
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Calling a custom smart part into dialog from a toolbar buttonYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Sep 09 11:21 AM
What if you inherit your custom part from EntityBoundSmartPartInfoProvider and set the Entity Type to Opportunity?

Inherits="Sage.Platform.WebPortal.SmartParts.EntityBoundSmartPartInfoProvider" %>
public override Type EntityType
{
get { return typeof(Sage.Entity.Interfaces.IOpportunity); }
}

If that doesn't work, then you could then use a Code Snippet action and invoke the dialog yourself, but I truly like your method vs. this one.
[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): 7/4/2025 5:50:29 PM