Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Unable to populate dynamic menu using FLyout Button

$
0
0

I am trying to get Menu Items Populate Dynamically using Flyout button and JS.

Issue: NO ACTION AVAILABLE on click of the Flyout Button.

JS:

function populateSocialMenu(commandProperties) {
var commandId = 'mypub.phonecall.Command.Social';

var menuXml = '<Menu Id="new.new_dslschema.Button18.Button.Menu">';
menuXml += '<MenuSection Id="new.new_dslschema.Section19.Section" Sequence="10" DisplayMode="Menu16">';
menuXml += '<Controls Id="new.new_dslschema.Section19.Section.Controls">';
menuXml += '<Button Alt="Facebook" Command="' + commandId + '" Id="vrp.vrp_customerproduct.Button.FacebookButton" LabelText="Facebook" Sequence="10" TemplateAlias="o1" ToolTipTitle="Facebook" ToolTipDescription="Facebook" />';
menuXml += '<Button Alt="Twitter" Command="' + commandId + '" Id="vrp.vrp_customerproduct.Button.TwitterButton" LabelText="Twitter" Sequence="20" TemplateAlias="o1" ToolTipTitle="Twitter" ToolTipDescription="Twitter" />';
menuXml += '</Controls>';
menuXml += '</MenuSection>';
menuXml += '</Menu>';

commandProperties["PopulationXML"] = menuXml;
}

function onSocialMenuItemClick(commandProperties) {
debugger;
alert(commandProperties.SourceControlId + ' clicked');

}

Reference: 

www.kashanahmed.com/.../08

http://develop1.net/public/post/2012/02/05/Add-Dynamic-Menu-to-Ribbon-Button


Viewing all articles
Browse latest Browse all 55831

Trending Articles