Re: [Dhis2-devs] custom form in Tracker Capture

2016-10-12 Thread Knut Staring
Hi Shyam, I'm afraid our developers are super busy trying to wrap up version 2.25, and there are not many people with free time to guide you. I think a good place to start would be to peruse the developer manual on the API: https://dhis2.github.io/dhis2-docs/master/en/developer/html/webapi.html

Re: [Dhis2-devs] custom form in Tracker Capture

2016-10-12 Thread Alex Tumwesigye
Dear Channara, See an example of building a custom form. ** * $(document).ready(function(){* * var scope = getScope('RegistrationController'); //Get scope from registration controller* * var orgUnitName = angular.element($("#orgUnitTree .selected")).text(); * * if(scope.registrationMode ===

Re: [Dhis2-devs] custom form in Tracker Capture

2016-10-09 Thread shyam tayal
hello , i am new here, Want to contribure .Confused where to start ? any directions? Any help will be appreciated . On Sun, Oct 9, 2016 at 6:53 PM, channara rin wrote: > Dear alex, > thank you alot :-) > But could you give example one attribute for me? i don't know

Re: [Dhis2-devs] custom form in Tracker Capture

2016-10-09 Thread channara rin
Dear alex, thank you alot :-) But could you give example one attribute for me? i don't know how to use that script... On Thu, Oct 6, 2016 at 5:36 PM, Alex Tumwesigye wrote: > Dear Channara, > > Use angular $watch to watch the models changes. > > > Attribute model is

Re: [Dhis2-devs] custom form in Tracker Capture

2016-10-06 Thread Alex Tumwesigye
Dear Channara, Use angular $watch to watch the models changes. Attribute model is $scope.selectedTei.uid event model is $scope.currentEvent.uid For Jquery, use $(selectedTei.uid).val("Your value").trigger('input'); For angular, This $scope.selectedTei.uid will pick your value, however, you

[Dhis2-devs] custom form in Tracker Capture

2016-10-06 Thread channara rin
Dear all, do you know any jquery script for tracker capture custom form to catch require attributes fields and unique attribute field? for example, when i edit client's profile in tracker capture. if i do some things wrong format of attribute fields, when i click update/save. i didn't see any