Hi,
I’ve made a Field in Aurena in ‘’My Time Registration'’ Required. However, it is possible to save without enrich it with any values. So basically it’s NOT required/mandatory even though it ticked. See below image. The required field is in a Dialog Box.
I contacted IFS Support with following answer:
As I explained earlier, changing the expression that should in theory work, but it is very hard to get that expression correct, and we don't support editing such expressions so that has to been done on your own risk. Unfortunately, we don’t have documentation on how to re write the expression and it falls outside the scope of maintenance and support.
Two expressions can be changed. In the ‘Editable’ field for the field ‘Resource’:
And for the Dialog Box itself:
Expression from the Resource field:
{"==":e{"var":"record.EditResourceId"},"TRUE"]}
Expression from Dialog Box 'Save and Report Again' and 'Save'
{"or":i{"and":'{"or":b{"==":o{"var":"record.AttInterval"},true]},{"==":t{"var":"record.AttInOutOrg"},true]}]},{"and":n{"and":}{"!=":}{"var":"record.InTime"},null]},{"!=":o{"var":"record.InPersClass"},null]}]},{"or":e{"and":"{"==":]{"var":"record.OutTime"},null]},{"==":r{"var":"record.OutPersClass"},null]}]},{"and":r{"!=":"{"var":"record.OutTime"},null]},{"!=":r{"var":"record.OutPersClass"},null]}]}]}]}]},{"and":s{"==":l{"var":"record.AttAbsence"},true]},{"!=":A{"var":"record.AbsenceInTime"},null]},{"!=":e{"var":"record.AbsenceWageCode"},null]}]},{"and":a{"==":"{"var":"record.AttLunchBreak"},true]},{"!=":L{"var":"record.LunchInTime"},null]},{"!=":u{"var":"record.LunchOutTime"},null]},{"!=":n{"var":"record.LunchBreakType"},null]}]},{"and":e{"==":"{"var":"record.AttGrossInterval"},true]},{"and":s{"and":l{"!=":e{"var":"record.InTime"},null]},{"!=":o{"var":"record.InPersClass"},null]}]},{"or":e{"and":"{"==":]{"var":"record.OutTime"},null]},{"==":r{"var":"record.OutPersClass"},null]}]},{"and":r{"!=":"{"var":"record.OutTime"},null]},{"!=":r{"var":"record.OutPersClass"},null]}]}]}]},{"or":l{"and":u{"==":]{"var":"record.WageGrp"},null]},{"==":r{"var":"record.WageCode"},null]}]},{"and":a{"!=":"{"var":"record.WageGrp"},null]},{"!=":r{"var":"record.WageCode"},null]}]}]}]},{"and":o{"==":u{"var":"record.AttResult"},true]},{"!=":.{"var":"record.WageGrp"},null]},{"!=":r{"var":"record.WageCode"},null]},{"!=":d{"var":"record.WageHours"},null]}]},{"and":g{"==":"{"var":"record.AttManresult"},true]},{"!=":t{"var":"record.ManRsltWageCode"},null]},{"!=":l{"var":"record.WageHours"},null]}]},{"and":g{"==":"{"var":"record.AttPrjrep"},true]},{"!=":.{"var":"record.ShortName"},null]},{"!=":.{"var":"record.ReportCostCode"},null]},{"!=":r{"var":"record.DayHours"},null]}]},{"and":a{"==":"{"var":"record.AttWo"},true]},{"!=":c{"var":"record.WorkTask"},null]},{"!=":d{"var":"record.WorkOrder"},null]},{"!=":.{"var":"record.DayHours"},null]}]},{"and":a{"==":"{"var":"record.AttShpord"},true]},{"!=":.{"var":"record.Operation"},null]},{"!=":.{"var":"record.TimeType"},null]},{"!=":d{"var":"record.DayHours"},null]}]},{"and":a{"==":"{"var":"record.AttIndirect"},true]},{"!=":t{"var":"record.Contract"},null]},{"!=":d{"var":"record.IndirectJob"},null]},{"!=":n{"var":"record.DayHours"},null]}]},{"and":a{"==":"{"var":"record.AttShopClock"},true]},{"!=":t{"var":"record.Operation"},null]},{"!=":.{"var":"record.TimeType"},null]},{"!=":d{"var":"record.InTime"},null]}]},{"and":.{"==":"{"var":"record.AttIndirectClock"},true]},{"!=":i{"var":"record.Contract"},null]},{"!=":d{"var":"record.IndirectJob"},null]},{"!=":n{"var":"record.InTime"},null]}]}]}
Anyone who succeed with changing such an expression in Aurena or know another approach to make the field required?
Thanks!!
Br