Index: APPS/Halux/PPS/impl/Aansturing/AansturingActieDataProvider.cls.xml =================================================================== diff -u -r60681 -r60686 --- APPS/Halux/PPS/impl/Aansturing/AansturingActieDataProvider.cls.xml (.../AansturingActieDataProvider.cls.xml) (revision 60681) +++ APPS/Halux/PPS/impl/Aansturing/AansturingActieDataProvider.cls.xml (.../AansturingActieDataProvider.cls.xml) (revision 60686) @@ -18,12 +18,14 @@ Set AansturingActieData.Parameters = AansturingActie.GeefParameters(BatchID) #dim Batch As APPS.Halux.common.Batch = ##class(APPS.ApplicatieContext).Instance().GeefProductieAPI().GeefBatchService().GeefBatch(BatchID) - #dim BatchCategorie As APPS.Halux.common.enu.Categorie = Batch.GeefCategorie() - - If $$$Not(BatchCategorie = ##class(APPS.Halux.common.enu.Categorie).TAORbox()) { - #dim AantalRelevanteProducten As %String = AansturingActie.GeefAantalRelevanteProducten(BatchID) ; bij Timeout in het Actieve Batches-scherm kan deze method uitgeschakeld worden (i.e. ... = "") om het process te versnellen. - If $$$HasLength(AantalRelevanteProducten) { - set AansturingActieData.Omschrijving = AansturingActieData.Omschrijving _ " (" _ AantalRelevanteProducten _ ")" + If ($isObject(Batch)) { + #dim BatchCategorie As APPS.Halux.common.enu.Categorie = Batch.GeefCategorie() + + If $$$Not(BatchCategorie = ##class(APPS.Halux.common.enu.Categorie).TAORbox()) { + #dim AantalRelevanteProducten As %String = AansturingActie.GeefAantalRelevanteProducten(BatchID) ; bij Timeout in het Actieve Batches-scherm kan deze method uitgeschakeld worden (i.e. ... = "") om het process te versnellen. + If $$$HasLength(AantalRelevanteProducten) { + set AansturingActieData.Omschrijving = AansturingActieData.Omschrijving _ " (" _ AantalRelevanteProducten _ ")" + } } } }