Skip to content

Commit accdb36

Browse files
authored
Merge pull request #7327 from MicrosoftDocs/JimDaly-patch-2
Update override-default-open-behavior-grids.md
2 parents 2c407eb + 9c0e145 commit accdb36

File tree

1 file changed

+28
-18
lines changed

1 file changed

+28
-18
lines changed

powerapps-docs/developer/model-driven-apps/override-default-open-behavior-grids.md

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -120,27 +120,37 @@ Create a custom button on the form where you want to change the default behavior
120120
1. Open the customization.xml file, copy the code below, replace the code inside the `RibbonDiffXml`:
121121

122122
```XML
123-
<RibbonDiffXml>
124-
<CustomActions>
125-
<CustomAction Id="cr5c1.Mscrm.OpenRecordItem.CustomAction" Location="Mscrm.SubGrid.contact.MainTab.Management.Controls._children" Sequence="28">
126-
<CommandUIDefinition>
127-
<Button Alt="$LocLabels:Mscrm.OpenRecordItem.Alt" Command="Mscrm.OpenRecordItem" Id="Mscrm.OpenRecordItem" LabelText="$LocLabels:Mscrm.OpenRecordItem.LabelText" Sequence="28" TemplateAlias="o1" ToolTipTitle="$LocLabels:Mscrm.OpenRecordItem.ToolTipTitle" ToolTipDescription="$LocLabels:Mscrm.OpenRecordItem.ToolTipDescription" />
128-
</CommandUIDefinition>
129-
</CustomAction>
130-
</CustomActions>
123+
<RibbonDiffXml>
124+
<CustomActions>
125+
<CustomAction Id="cr5c1.Mscrm.OpenRecordItem.CustomAction"
126+
Location="Mscrm.SubGrid.contact.MainTab.Management.Controls._children"
127+
Sequence="28">
128+
<CommandUIDefinition>
129+
<Button Alt="$LocLabels:Mscrm.OpenRecordItem.Alt"
130+
Command="Mscrm.OpenRecordItem"
131+
Id="Mscrm.OpenRecordItem"
132+
LabelText="$LocLabels:Mscrm.OpenRecordItem.LabelText"
133+
Sequence="28"
134+
TemplateAlias="o1"
135+
ToolTipTitle="$LocLabels:Mscrm.OpenRecordItem.ToolTipTitle"
136+
ToolTipDescription="$LocLabels:Mscrm.OpenRecordItem.ToolTipDescription" />
137+
</CommandUIDefinition>
138+
</CustomAction>
139+
</CustomActions>
131140
<Templates>
132-
<RibbonTemplates Id="Mscrm.Templates" />
133-
</Templates>
134-
<CommandDefinitions>
141+
<RibbonTemplates Id="Mscrm.Templates" />
142+
</Templates>
143+
<CommandDefinitions>
135144
<CommandDefinition Id="Mscrm.OpenRecordItem">
136-
<EnableRules />
137-
<DisplayRules />
138-
<Actions>
139-
<JavaScriptFunction FunctionName="ChangeBehavior" Library="$webresource:cr5c1_samplescript" />
140-
</Actions>
141-
</CommandDefinition>
145+
<EnableRules />
146+
<DisplayRules />
147+
<Actions>
148+
<JavaScriptFunction FunctionName="ChangeBehavior"
149+
Library="$webresource:cr5c1_samplescript" />
150+
</Actions>
151+
</CommandDefinition>
142152
</CommandDefinitions>
143-
</RibbonDiffXml>
153+
</RibbonDiffXml>
144154
```
145155

146156
> [!NOTE]

0 commit comments

Comments
 (0)