Skip to content

Commit a7df910

Browse files
a-panizza_globantBeta Bot
authored andcommitted
Cherry pick branch 'genexuslabs:feature/msgcoll-find' into beta
1 parent 7e96e9b commit a7df910

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dotnet/src/dotnetframework/GxClasses/Domain/GxMessages.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
using GeneXus.Utils;
1+
using GeneXus.Utils;
22
using System;
3+
using System.Linq;
34

45

56
namespace GeneXus.Application
@@ -42,6 +43,10 @@ public short AnyError()
4243
}
4344
return MESSAGE_TYPE_WARNING;
4445
}
46+
public bool HasAny(string messageId)
47+
{
48+
return this.Any(item => item.gxTpr_Id == messageId);
49+
}
4550
public void addItem(string s)
4651
{
4752
Add(new msglistItem("", s, 0, "", false));

0 commit comments

Comments
 (0)