本文介绍了如何在模态对话框中打开HTML网页资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一些HTML网页资源。点击某个功能区按钮后,如何在模态对话框中打开?
I created some HTML web resource. How can I open it in modal dialog after clicking on some ribbon button?
谢谢!
推荐答案
我建议您使用修改功能区。在您的按钮上,将操作设置为网址并链接到您的Web资源。在赢模式设置中,选择模型对话框。
I would suggest to use http://crmvisualribbonedit.codeplex.com/ to edit your ribbon. On your button, set the action to url and link to your webresource. In the win mode setting choose Model Dialog.
这是我在地址栏中的操作:
This is what I have in the address field on the action:
http://server/organization/WebResources/new_htmlpage
new_htmlpage是web资源的名称。
new_htmlpage is the name of the webresource.
这是ribbondiff的CommandDefinitions部分
Here is the CommandDefinitions part of ribbondiff
<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>
这篇关于如何在模态对话框中打开HTML网页资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!