Thanks Abyot. I solved the issue this morning. But find a new one. When we try to delete a tracked entity jut registered, there is an error message.
The event could not be deleted because it contains an audit log. ERROR: null value in column "programinstanceid" violates not-null constraint Detail: Failing row contains (185366337, null, 18, 2017-08-27 00:00:00, 2017-08-03 00:00:00, 60020752, ACTIVE, null, kfHSQMY4tx9, 2017-08-03 09:46:51.034, 2017-08-03 09:46:51.497, null, null, 1, null, null, f). Also a server log is also generated. Any idea how to fix? Regards Hannan On Thu, Aug 3, 2017 at 11:28 AM, Abyot Gizaw <aby...@gmail.com> wrote: > Hi Hannan, > > Not sure how your custom script look like... but it needs to access > angular scope... manipulate values and send back to angular scope. > > Can you share your script? > > Here is a sample to access/manipulate from custom registration form > > var appElement = document.querySelector('d2-custom-form'); // access > custom form > var $scope = angular.element(appElement).scope(); //get > scopes from custom form > > //get tei scope > var attValue = $scope.selectedTei[ATTRIBUTE_ID]; > > > //assign attribute value > $scope.$apply(function(){ > $scope.selectedTei[ATTRIBUTE_ID]= my_attribute_value; > }); > > > --- > Thank you, > Abyot. > > On Wed, Aug 2, 2017 at 12:53 PM, Hannan Khan <hann...@gmail.com> wrote: > >> Dear Experts >> >> Yesterday upgraded our tracker server from 22 to 26 and now fixing the >> scripting errors. After fixing the few issues the tracker data are not >> saving from the custom registration form. No log are being generated in the >> server end and no scripting error in the front end either. Please check the >> screenshots. >> >> We need urgent help. >> >> Regards >> >> Muhammad Abdul Hannan Khan >> Team Leader >> Support to the National HMIS >> MIS, Director General of Health Service >> Ministry of Health and Family Welfare >> >> T +880-2- 58816459 <+880%202-58816459>, 58816412 ext 118 >> <58%2081%2064%2012> >> F +88 02 58813 875 >> M+88 01819 239 241 >> M+88 01534 312 066 >> E hann...@gmail.com >> S hannan.khan.dhaka >> B hannan-tech.blogspot.com >> L https://bd.linkedin.com/in/hannankhan >> >> >> >> > -- Muhammad Abdul Hannan Khan Team Leader Support to the National HMIS MIS, Director General of Health Service Ministry of Health and Family Welfare T +880-2- 58816459, 58816412 ext 118 F +88 02 58813 875 M+88 01819 239 241 M+88 01534 312 066 E hann...@gmail.com S hannan.khan.dhaka B hannan-tech.blogspot.com L https://bd.linkedin.com/in/hannankhan
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-users Post to : dhis2-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-users More help : https://help.launchpad.net/ListHelp