如何在模式对话框中打开HTML Web资源

laz*_*rus 1 dialog dynamics-crm-2011

我创建了一些HTML Web资源.单击某个功能区按钮后,如何在模态对话框中打开它?

谢谢!

Bas*_*sen 5

我建议使用http://crmvisualribbonedit.codeplex.com/编辑你的功能区.在您的按钮上,将操作设置为url并链接到您的webresource.在获胜模式设置中,选择模型对话框.

这就是我在动作的地址栏中所拥有的:

http://server/organization/WebResources/new_htmlpage
Run Code Online (Sandbox Code Playgroud)

new_htmlpage是webresource的名称.

这是ribbondiff的CommandDefinitions部分

<CommandDefinitions>
  <CommandDefinition Id="new.Form.account.MainTab.ExportData.modalPopup.Command">
    <EnableRules />
    <DisplayRules />
    <Actions>
      <Url WinMode="1" Address="http://server/organization/WebResources/new_htmlpage" PassParams="false" />
    </Actions>
  </CommandDefinition>
</CommandDefinitions>
Run Code Online (Sandbox Code Playgroud)