• <legend id='Qjyhe'><style id='Qjyhe'><dir id='Qjyhe'><q id='Qjyhe'></q></dir></style></legend>

    <i id='Qjyhe'><tr id='Qjyhe'><dt id='Qjyhe'><q id='Qjyhe'><span id='Qjyhe'><b id='Qjyhe'><form id='Qjyhe'><ins id='Qjyhe'></ins><ul id='Qjyhe'></ul><sub id='Qjyhe'></sub></form><legend id='Qjyhe'></legend><bdo id='Qjyhe'><pre id='Qjyhe'><center id='Qjyhe'></center></pre></bdo></b><th id='Qjyhe'></th></span></q></dt></tr></i><div id='Qjyhe'><tfoot id='Qjyhe'></tfoot><dl id='Qjyhe'><fieldset id='Qjyhe'></fieldset></dl></div>
  • <small id='Qjyhe'></small><noframes id='Qjyhe'>

    <tfoot id='Qjyhe'></tfoot>

        • <bdo id='Qjyhe'></bdo><ul id='Qjyhe'></ul>

        在 Dynamics 2011 中调用对话框并将多个记录 ID 传递

        时间:2023-09-04
        <tfoot id='1StMN'></tfoot>

              <bdo id='1StMN'></bdo><ul id='1StMN'></ul>
              1. <legend id='1StMN'><style id='1StMN'><dir id='1StMN'><q id='1StMN'></q></dir></style></legend>

                <small id='1StMN'></small><noframes id='1StMN'>

                  <i id='1StMN'><tr id='1StMN'><dt id='1StMN'><q id='1StMN'><span id='1StMN'><b id='1StMN'><form id='1StMN'><ins id='1StMN'></ins><ul id='1StMN'></ul><sub id='1StMN'></sub></form><legend id='1StMN'></legend><bdo id='1StMN'><pre id='1StMN'><center id='1StMN'></center></pre></bdo></b><th id='1StMN'></th></span></q></dt></tr></i><div id='1StMN'><tfoot id='1StMN'></tfoot><dl id='1StMN'><fieldset id='1StMN'></fieldset></dl></div>
                    <tbody id='1StMN'></tbody>
                  本文介绍了在 Dynamics 2011 中调用对话框并将多个记录 ID 传递给它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我想让用户从联系人实体中选择一个或多个联系人,然后启动一个接受记录 ID 的对话框.这个想法是为联系人添加一些自定义配置.

                  I want to allow the user to select one or many contacts from the contact entity, and then launch a dialog that accepts the record IDs. The idea is to add some custom configuration to the contacts.

                  我目前在启动对话框的功能区按钮上有一个自定义操作,但它只接受一个记录 ID.我可以访问所选记录 ID 的列表,这不是问题,它使用 JavaScript 将列表传递给对话框.

                  I've currently got a custom action on a ribbon button that launches a dialog, but it only accepts one record Id. I can get access to the list of selected record Ids, thatisn't the problem, it is passing a list to the dialog using JavaScript.

                  我似乎在 SDK 或代码片段中找不到任何东西.我找到的最接近的东西是这样的:

                  I can't seem to find anything in the SDK or code snippets. The nearest thing I found was this:

                  http://crmmongrel.blogspot.com/2011/06/launch-dialog-from-ribbon-button-in-crm.html

                  有人知道这是否可能吗?我知道开箱即用的发送直接电子邮件允许将电子邮件发送到选定的项目,所以我需要类似的东西.

                  Anyone know if this is possible? I know the out of the box Send Direct E-Mail allows an email to be sent to the selected items, so I need something similar.

                  我应该使用对话框还是其他东西?

                  Should I be using dialogs or something else?

                  以下是单击功能区按钮时调用的 javascript 代码片段:

                  Here is a code snippet of the javascript that is called on the click of the ribbon button:

                  function LaunchModalDialog(SelectedControlSelectedItemReferences,dialogID, typeName)
                  {
                  
                  // Get selected objects
                  var allItems = new Array
                  var allItems = SelectedControlSelectedItemReferences
                  
                  // Just get first item for now as dialog only seems to accept one ID
                  var personId = allItems[0].Id;
                  personId = personId.replace(/{/g, "");
                  personId = personId.replace(
                  <tfoot id='2ow4O'></tfoot>

                • <i id='2ow4O'><tr id='2ow4O'><dt id='2ow4O'><q id='2ow4O'><span id='2ow4O'><b id='2ow4O'><form id='2ow4O'><ins id='2ow4O'></ins><ul id='2ow4O'></ul><sub id='2ow4O'></sub></form><legend id='2ow4O'></legend><bdo id='2ow4O'><pre id='2ow4O'><center id='2ow4O'></center></pre></bdo></b><th id='2ow4O'></th></span></q></dt></tr></i><div id='2ow4O'><tfoot id='2ow4O'></tfoot><dl id='2ow4O'><fieldset id='2ow4O'></fieldset></dl></div>

                      <bdo id='2ow4O'></bdo><ul id='2ow4O'></ul>
                        1. <small id='2ow4O'></small><noframes id='2ow4O'>

                          <legend id='2ow4O'><style id='2ow4O'><dir id='2ow4O'><q id='2ow4O'></q></dir></style></legend>