- Where Developers Learn, Share, & Build Careers
I am currently trying to disable bulk editing on some organizations, one of these is "Campaign Response" unit < / P>
I did the following to get this:
- Hide the OOTB editing button globally (as far as I know you can not edit the OTB ribbon button This way)
- Create a new custom edit button globally (section of the sub-section
- For each unit on which I need bulk editing:
- Hide custom editing ribbon button
- Create a new custom edit button with SelectioncountRule node Create
Until now I goto sub-grid activities on any unit. The way I contacted this problem, there are 2 editing buttons present in the form of activity (for a regular edit button and for the edit button of the campaign response).
I'm not sure how to fix it, but I have an idea for which I need some help:
- Click the "bulk edit" button
- At the global level, add JavaScript to the selection rule of the custom editing button
- JavaScript will retrieve the logical name of the selected entity (on all the subgroups)
- if the unit campaign If there is a response, then what to enable (or add?) Ribbon < / Li>
I'm not sure that this is possible. I'm primarily unsure what JavaScript is allowed to enable Ribbon rules
People Not worried,
Whatever I had to do, OTB Overrides the button (as shown here) with some simple XML:
& lt; EnableRule id = "sample.AllGrids.AllEntities.MainTab .Management.Edit.Command.EnableRule.CustomRule" & gt; & Lt; Customer Function Name = "canBulkEdit" library = "$ web resource: new_sample_generic_functions_javascript_library" & gt; & Lt; CrmParameter value = "Selected control selection selected" /> & lt; CrmParameter value = "SelectedEntityTypeName" /> & Lt; / CustomRule & gt; & Lt; / EnableRule & gt;
and some javascript:
canBulkEdit = function (oSelectedControlSelectedItemCount, oelectedEntityTypeName) {var canBulkEditEntity = false; If (OSAdited Controls Selected Eatmacant & lt; 2) OSActed Entity Type Name == "Campaign Response") canBulkEditEntity = true; Return canBulkEditEntity; }
In addition to this, there was a need to make some additional changes to the activity point "unit". ActivityPoint has a separate bulk edit button
Comments
Post a Comment