custom form in Tracker Capture

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 popup message what i did wrong. but when i look console. i saw error of jax to use “PUT” on 404 message.

thank you

channara

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 will need $watch to watch for changes.

Note uid is the dhis2 11 character identifier.

Alex

···

On Thu, Oct 6, 2016 at 12:47 PM, channara rin rin.channara@gmail.com wrote:

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 popup message what i did wrong. but when i look console. i saw error of jax to use “PUT” on 404 message.

thank you

channara


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET | HISP Uganda

Kampala

Uganda
+256 774149 775, + 256 759 800161

Skype ID: talexie

IT Consultant (Servers, Networks and Security, Health Information Systems - DHIS2, Disease Outbreak & Surveillance Systems) & Solar Consultant

"I don’t want to be anything other than what I have been - one tree hill "

Dear alex,
thank you alot… :slight_smile:

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 atumwesigye@gmail.com wrote:

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 will need $watch to watch for changes.

Note uid is the dhis2 11 character identifier.

Alex

On Thu, Oct 6, 2016 at 12:47 PM, channara rin rin.channara@gmail.com wrote:

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 popup message what i did wrong. but when i look console. i saw error of jax to use “PUT” on 404 message.

thank you

channara


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET | HISP Uganda

Kampala

Uganda
+256 774149 775, + 256 759 800161

Skype ID: talexie

IT Consultant (Servers, Networks and Security, Health Information Systems - DHIS2, Disease Outbreak & Surveillance Systems) & Solar Consultant

"I don’t want to be anything other than what I have been - one tree hill "

Dear Channara,

See an example of building a custom form.

Alex

···

On Sun, Oct 9, 2016 at 4:23 PM, channara rin rin.channara@gmail.com wrote:

Dear alex,
thank you alot… :slight_smile:

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 atumwesigye@gmail.com wrote:

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 will need $watch to watch for changes.

Note uid is the dhis2 11 character identifier.

Alex

On Thu, Oct 6, 2016 at 12:47 PM, channara rin rin.channara@gmail.com wrote:

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 popup message what i did wrong. but when i look console. i saw error of jax to use “PUT” on 404 message.

thank you

channara


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET | HISP Uganda

Kampala

Uganda
+256 774149 775, + 256 759 800161

Skype ID: talexie

IT Consultant (Servers, Networks and Security, Health Information Systems - DHIS2, Disease Outbreak & Surveillance Systems) & Solar Consultant

"I don’t want to be anything other than what I have been - one tree hill "

Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET | HISP Uganda

Kampala

Uganda
+256 774149 775, + 256 759 800161

Skype ID: talexie

IT Consultant (Servers, Networks and Security, Health Information Systems - DHIS2, Disease Outbreak & Surveillance Systems) & Solar Consultant

"I don’t want to be anything other than what I have been - one tree hill "

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 rin.channara@gmail.com wrote:

Dear alex,
thank you alot… :slight_smile:

But could you give example one attribute for me? i don’t know how to use that script…


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

On Thu, Oct 6, 2016 at 5:36 PM, Alex Tumwesigye atumwesigye@gmail.com wrote:

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 will need $watch to watch for changes.

Note uid is the dhis2 11 character identifier.

Alex

On Thu, Oct 6, 2016 at 12:47 PM, channara rin rin.channara@gmail.com wrote:

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 popup message what i did wrong. but when i look console. i saw error of jax to use “PUT” on 404 message.

thank you

channara


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET | HISP Uganda

Kampala

Uganda
+256 774149 775, + 256 759 800161

Skype ID: talexie

IT Consultant (Servers, Networks and Security, Health Information Systems - DHIS2, Disease Outbreak & Surveillance Systems) & Solar Consultant

"I don’t want to be anything other than what I have been - one tree hill "

Best Regards
Shyam Tayal
Department of Computer Science
Shri Mata Vaishnodevi University
Jammu & Kashmir

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

Knut

···

On Sun, Oct 9, 2016 at 3:39 PM, shyam tayal shyam2tayal@gmail.com wrote:

hello , i am new here, Want to contribure .Confused where to start ? any directions?
Any help will be appreciated .


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

On Sun, Oct 9, 2016 at 6:53 PM, channara rin rin.channara@gmail.com wrote:

Dear alex,
thank you alot… :slight_smile:

But could you give example one attribute for me? i don’t know how to use that script…


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Best Regards
Shyam Tayal
Department of Computer Science
Shri Mata Vaishnodevi University
Jammu & Kashmir

On Thu, Oct 6, 2016 at 5:36 PM, Alex Tumwesigye atumwesigye@gmail.com wrote:

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 will need $watch to watch for changes.

Note uid is the dhis2 11 character identifier.

Alex

On Thu, Oct 6, 2016 at 12:47 PM, channara rin rin.channara@gmail.com wrote:

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 popup message what i did wrong. but when i look console. i saw error of jax to use “PUT” on 404 message.

thank you

channara


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET | HISP Uganda

Kampala

Uganda
+256 774149 775, + 256 759 800161

Skype ID: talexie

IT Consultant (Servers, Networks and Security, Health Information Systems - DHIS2, Disease Outbreak & Surveillance Systems) & Solar Consultant

"I don’t want to be anything other than what I have been - one tree hill "

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org