7/4/2025 2:32:44 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.
|
|
|
|
Calling a custom smart part into dialog from a toolbar button
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?  |
|
|
|
Re: Calling a custom smart part into dialog from a toolbar button
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. |
|
|
|
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!
|
|
|
|
|
|
|
|