@@ -199,6 +199,11 @@ public void DisplayOrEditEntityReferable(
199
199
this . AddHintBubble (
200
200
stack , hintMode ,
201
201
new [ ] {
202
+ new HintCheck (
203
+ ( ) => referable . DisplayName != null && referable . DisplayName . IsValid ( ) != true ,
204
+ "According to the specification, an existing list of elements shall contain " +
205
+ "at least one element and for each element all mandatory fields shall be " +
206
+ "not empty." ) ,
202
207
new HintCheck (
203
208
( ) => referable . DisplayName ? . IsValid ( ) != true ,
204
209
"The use of a display name is recommended to express a human readable name " +
@@ -212,7 +217,8 @@ public void DisplayOrEditEntityReferable(
212
217
} ) ;
213
218
if ( this . SafeguardAccess ( stack , repo , referable . DisplayName , "displayName:" , "Create data element!" , v =>
214
219
{
215
- referable . DisplayName = new List < Aas . ILangStringNameType > ( new List < Aas . LangStringNameType > ( ) ) ;
220
+ referable . DisplayName = ExtendILangStringNameType . CreateFrom (
221
+ lang : AdminShellUtil . GetDefaultLngIso639 ( ) , text : "" ) ;
216
222
this . AddDiaryEntry ( referable , new DiaryEntryStructChange ( ) ) ;
217
223
return new AnyUiLambdaActionRedrawEntity ( ) ;
218
224
} ) )
@@ -265,7 +271,7 @@ public void DisplayOrEditEntityReferable(
265
271
if ( this . SafeguardAccess ( stack , repo , referable . Description , "description:" , "Create data element!" , v =>
266
272
{
267
273
referable . Description = ExtendILangStringTextType . CreateFrom (
268
- lang : ExtendLangString . LANG_DEFAULT , text : "" ) ;
274
+ lang : AdminShellUtil . GetDefaultLngIso639 ( ) , text : "" ) ;
269
275
return new AnyUiLambdaActionRedrawEntity ( ) ;
270
276
} ) )
271
277
{
0 commit comments