Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Launch a Dialog from an ISV Ribbon Button

$
0
0

Can you launch a Dialog in CRM 2011 using a ribbon button?

I tried to modify the XML code for the entity and I get an error message when trying to import it back into CRM. Thoughts?

Error Message:

This solution package cannot be imported because it contains invalid XML. You can attempt to repair the file by manually editing the XML contents using the information found in the schema validation errors, or you can contact your solution provider.

XML Code:

<CommandDefinition Id="Mscrm.Isv.quote.Form.Group1.Control6"><EnableRules><EnableRule Id="Mscrm.Isv.quote.Form.Group1.Control6.EnableRule" /></EnableRules><DisplayRules><DisplayRule Id="Mscrm.Isv.quote.Form.Group1.Control6" /></DisplayRules><Actions><JavaScriptFunction FunctionName="Mscrm_Isv_quote_Form_Group1_Control6_0" Library="$Webresource:quote_ribbon.js" /></Actions><Actions><JavaScriptFunction FunctionName="launchModalDialog" Library="$Websource:new_launchDialog:"><StringParameter Value="incident" /><CrmParameter Value="FirstPrimaryItemId" /><StringPrameter Value="AD558662-B9F7-4748-9C4F-9BFCCCDBDA4C"/></JavaScriptFunction></Actions></CommandDefinition>


And....

<Workflows><Workflow WorkflowId="{AD558662-B9F7-4748-9C4F-9BFCCCDBDA4C}" Name="Test"><XamlFileName>/Workflows/Test-AD558662-B9F7-4748-9C4F-9BFCCCDBDA4C.xaml</XamlFileName><Type>1</Type><Subprocess>0</Subprocess><Category>1</Category><LanguageCode>1033</LanguageCode><Scope>1</Scope><OnDemand>1</OnDemand><TriggerOnCreate>0</TriggerOnCreate><TriggerOnDelete>0</TriggerOnDelete><AsyncAutodelete>0</AsyncAutodelete><IsCustomizable>1</IsCustomizable><PrimaryEntity>Quote</PrimaryEntity></Workflow></Workflows>

My code could be very wrong. Thoughts? Suggestions ?

Thank you


newjeep


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>