Crm 2011 : Refresh associated Grid View

后端 未结 3 1705
轻奢々
轻奢々 2021-01-24 05:04

Is there a way to refresh associated Grid View ? I have a Sales Order View on the Account Form, on this Form I have a button (New Order) that open a new Sales Order Form, in th

3条回答
  •  隐瞒了意图╮
    2021-01-24 05:36

    This is a javascript function I wrote to force Subgrid loading if the form contained more than 4 subgrids. I believe a recent rollup has made the purpose of the code obsolete, but it might be helpful for you to find your subgrids:

    /*
    By default, CRM only loads the first 4 subgrids on a form.  This will load
    up all subgrids on the form, or only the number (over the default 4) if specified
    */
    forceSubgridLoad: function (countOver4) {
        $(document).ready(function () {
    
            var links = $("a.ms-crm-List-LoadOnDemand");
            for (i = 0; i < links.length && (countOver4 == null || i < countOver4); i++) {
                links[i].click();
            }
        });
    },
    

提交回复
热议问题