Skip to content

Commit 6ec03df

Browse files
committed
Included Rappen.XTB.Helper submodule
1 parent 53f21ec commit 6ec03df

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "Rappen.XTB.Helper"]
2+
path = Rappen.XTB.Helper
3+
url = https://github.com/rappen/Rappen.XTB.Helper.git

CustomActionTester.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CAT", "CAT\CAT.csproj", "{2
99
EndProject
1010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CAPIT", "CAPIT\CAPIT.csproj", "{6D35426D-F1AD-477F-BDAC-705DF5CFBCB0}"
1111
EndProject
12+
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Rappen.XTB.Helpers", "Rappen.XTB.Helper\Rappen.XTB.Helpers.shproj", "{0B88B381-EE9D-41E8-A62C-90152C42DE90}"
13+
EndProject
1214
Global
15+
GlobalSection(SharedMSBuildProjectFiles) = preSolution
16+
Rappen.XTB.Helper\Rappen.XTB.Helpers.projitems*{0b88b381-ee9d-41e8-a62c-90152c42de90}*SharedItemsImports = 13
17+
Rappen.XTB.Helper\Rappen.XTB.Helpers.projitems*{e9792802-a064-4941-885d-cf9328186b51}*SharedItemsImports = 4
18+
EndGlobalSection
1319
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1420
Debug|Any CPU = Debug|Any CPU
1521
Release|Any CPU = Release|Any CPU

CustomActionTester/CAT.Common.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
<DependentUpon>InputValue.cs</DependentUpon>
220220
</EmbeddedResource>
221221
</ItemGroup>
222+
<Import Project="..\Rappen.XTB.Helper\Rappen.XTB.Helpers.projitems" Label="Shared" />
222223
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
223224
<PropertyGroup>
224225
<PostBuildEvent>

CustomActionTester/CATcode.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using Microsoft.Xrm.Sdk.Messages;
33
using Microsoft.Xrm.Sdk.Query;
44
using Newtonsoft.Json.Linq;
5+
using Rappen.XTB.Helpers.Extensions;
56
using System;
67
using System.Collections.Generic;
78
using System.Diagnostics;
@@ -272,11 +273,7 @@ private void FormatResultDetailDefault()
272273

273274
private string GetApiMessage()
274275
{
275-
if (cmbCustomActions.SelectedEntity==null||!cmbCustomActions.SelectedEntity.TryGetAttributeValue(catTool.Columns.APIMessageName, out string message))
276-
{
277-
return string.Empty;
278-
}
279-
return message;
276+
return cmbCustomActions.SelectedEntity.PropertyAsBaseType(catTool.Columns.APIMessageName, string.Empty, true) as string;
280277
}
281278

282279
private string GetBoundEntity()

Rappen.XTB.Helper

Submodule Rappen.XTB.Helper added at 8d38ae0

0 commit comments

Comments
 (0)