Index: AXimpl/Admin/Common/ProductBepaler.cls.xml =================================================================== diff -u -r47656 -r47783 --- AXimpl/Admin/Common/ProductBepaler.cls.xml (.../ProductBepaler.cls.xml) (revision 47656) +++ AXimpl/Admin/Common/ProductBepaler.cls.xml (.../ProductBepaler.cls.xml) (revision 47783) @@ -35,20 +35,16 @@ -IdentNummer:%String,KlantId:%String +IdentNummer:%String %String 1) { - Do ##class(TECH.Exceptions.InvalidInputException).Throw("Er zijn meerdere producten gevonden voor IdentNummer " _IdentNummer _" en klant " _KlantId _"!") + #dim ProductId As %String + Try { + Set ProductId = ..ProductApi.GeefProductIdVoorIdentNummer(IdentNummer) + } Catch { + Do ##class(TECH.Exceptions.InvalidInputException).Throw("Er is geen product gevonden voor IdentNummer " _IdentNummer) } - Quit $LG(Producten) + Quit ProductId ]]>