[Dhis2-devs] DHIS 2

2017-08-03 Thread Omer Butt
Aoa SIir,
Kindly tell me the procedure how data elements id is Created ?
Will i generate it dynamically ?
___
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


Re: [Dhis2-devs] DHIS 2

2017-08-03 Thread Jason Pickering
Hi Omer,
Have you had a look at our user manual?

https://docs.dhis2.org/master/en/developer/html/webapi_system_resource.html#d0e11013


You can also generate these your self. They are just 11 character codes,
which start with a letter, followed by a combination of letters and
numbers.

Regards,
Jason


On Thu, Aug 3, 2017 at 10:33 AM, Omer Butt  wrote:

> Aoa SIir,
> Kindly tell me the procedure how data elements id is Created ?
> Will i generate it dynamically ?
>
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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


[Dhis2-devs] async metadata import in 2.27

2017-08-03 Thread Vladimer Shioshvili
Hi everyone,

I am trying to import xml metadata (org units) into 2.27, and async=true
query parameter does not seem to make a difference - and it still goes in
synchronously. It is in the documentation for 2.27 (and 2.26 and 2.25 -
https://docs.dhis2.org/2.26/en/developer/html/dhis2_developer_manual_full.html#webapi_metadata_import),
and I am using api version 26. Is it something i am doing wrong?

This is the curl command i am using:

curl -X POST 'https://domain/api/26/metadata?atomicMode=NONE&async=true'
--data-binary @file.xml -H 'Content-Type:application/xml'


Thanks!

Vlad
___
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


Re: [Dhis2-devs] Cannot view data elements when creating left and right side components of a validation rule

2017-08-03 Thread Jason Pickering
You can see here


That the server is not reachable.
​

On Thu, Aug 3, 2017 at 11:29 AM, Timothy Kiyemba  wrote:

> Dear All,
>
> I am unable to view data elements when creating left and right side
> components of a validation rule. Any one faced this problem? Please
> support. I am using DHIS2 2.26. See screen shot attached.
>
> Timothy Kiyemba
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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


Re: [Dhis2-devs] Cannot view data elements when creating left and right side components of a validation rule

2017-08-03 Thread Jason Pickering
Maybe its down? Blocked by a firewall?

This is not really a DHIS2 problem per se,You are just attempting to
connect to the server and your browser cannot reach that address. Since its
a private IP address (192.168.X.X) , perhaps you are simply not connected
to the same local network?

On Thu, Aug 3, 2017 at 12:37 PM, Timothy Kiyemba  wrote:

> Could it be a memory issue? What could be the cause of the server not
> being reachable?
>
> On Thu, Aug 3, 2017 at 1:35 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> You can see here
>>
>>
>> That the server is not reachable.
>> ​
>>
>> On Thu, Aug 3, 2017 at 11:29 AM, Timothy Kiyemba 
>> wrote:
>>
>>> Dear All,
>>>
>>> I am unable to view data elements when creating left and right side
>>> components of a validation rule. Any one faced this problem? Please
>>> support. I am using DHIS2 2.26. See screen shot attached.
>>>
>>> Timothy Kiyemba
>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049 <+46%2076%20414%2070%2049>
>>
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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


[Dhis2-devs] Analytics: Selection of User org unit respond to "Data capture org unit"unsteady of "Data output and analytic" OrgUnits

2017-08-03 Thread Seleman Ally
Dear DHIS2 team, 
Favorite report which is assigned to "User Org Unit" is responding to assigned 
"Data capture Organisation Unit". It is my understanding that the primary goal 
of "User Org Unit" is for analysis purpose, if this is the case then it is my 
perception that would make a lot of sense if report results could respond to 
assigned "Data output and analytic" OrgUnits.
Based on current setup, there is some limitation in sharing information 
assigned based on "User Org Unit". Shared Dashboard can be vivid and practical 
example. If I share Dashboard to a User X whose "Data capture Organisation 
Unit" is health facility, and "Data output and analytic" OrgUnits is District, 
the user X will not be able to see how other peer health facilities are 
performing unless you assign his/her "Data capture Organisation Unit" at 
District level. 
I think this feature is very important especially for perfomance Dashboard. 
Regards
Sele

___
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


Re: [Dhis2-devs] [Dhis2-users] Cannot view data elements when creating left and right side components of a validation rule

2017-08-03 Thread Jim Grace
Dear Timothy,

My suggestions:

1. If you haven't already, I suggest you upgrade to the latest build of
2.26 from https://www.dhis2.org/downloads. I have tried to reproduce your
problem on the latest build of 2.26, and was unable to do so. I also tried
to reproduce the problem on a build of 2.26 that I was running from May
2017, but also was unable to do so. Perhaps you are running on a different
build from either of these.

2. If you are still getting this error in the latest build of 2.26, please
look at the server logs and let us know what you find. Your latest
screenshot shows an "internal server error", so hopefully the server has
logged more details in the error log.

Cheers,
Jim


On Thu, Aug 3, 2017 at 6:50 AM, Timothy Kiyemba  wrote:

> Dear Jason,
>
> Thanks for the feedback. I have tried to run this process afresh to view
> more clearer error messages. It looks like the previous ones included
> others that had been resolved. Please see attached. It seems to be pointing
> to something about data element operands. See screen shot attached.
>
> Timothy
>
> On Thu, Aug 3, 2017 at 1:40 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Maybe its down? Blocked by a firewall?
>>
>> This is not really a DHIS2 problem per se,You are just attempting to
>> connect to the server and your browser cannot reach that address. Since its
>> a private IP address (192.168.X.X) , perhaps you are simply not connected
>> to the same local network?
>>
>> On Thu, Aug 3, 2017 at 12:37 PM, Timothy Kiyemba 
>> wrote:
>>
>>> Could it be a memory issue? What could be the cause of the server not
>>> being reachable?
>>>
>>> On Thu, Aug 3, 2017 at 1:35 PM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
 You can see here


 That the server is not reachable.
 ​

 On Thu, Aug 3, 2017 at 11:29 AM, Timothy Kiyemba 
 wrote:

> Dear All,
>
> I am unable to view data elements when creating left and right side
> components of a validation rule. Any one faced this problem? Please
> support. I am using DHIS2 2.26. See screen shot attached.
>
> Timothy Kiyemba
>
>


 --
 Jason P. Pickering
 email: jason.p.picker...@gmail.com
 tel:+46764147049 <+46%2076%20414%2070%2049>

>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049 <+46%2076%20414%2070%2049>
>>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Jim Grace
Core developer, DHIS 2
HISP US Inc.
http://www.dhis2.org 
___
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


Re: [Dhis2-devs] Tracker data are not saving in the custom registration form after upgraded from 22 to 26.

2017-08-03 Thread Hannan Khan
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  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  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-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] DHIS 2

2017-08-03 Thread Omer Butt
Aoa Sir,
How can i access the Database data in Custom Design form for data entry.
I have to populate values in drop down from db.
IS there a way to do that ??
for Example:
province in drop downs:
Districts: in drop downs. etc

[image: Inline image 1]
___
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


Re: [Dhis2-devs] DHIS 2

2017-08-03 Thread Omer Butt
Will i use your api to manipulate data in Custom Form ??

On Fri, Aug 4, 2017 at 9:34 AM, Omer Butt  wrote:

> Aoa Sir,
> How can i access the Database data in Custom Design form for data entry.
> I have to populate values in drop down from db.
> IS there a way to do that ??
> for Example:
> province in drop downs:
> Districts: in drop downs. etc
>
> [image: Inline image 1]
>
>
___
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


Re: [Dhis2-devs] DHIS 2

2017-08-03 Thread Omer Butt
will i use a Ajax call to access data from db ???
Kindly inform me about all these questions .
So that i start work on that to achieve my goal.

Thanks

On Fri, Aug 4, 2017 at 10:19 AM, Omer Butt  wrote:

> Will i use your api to manipulate data in Custom Form ??
>
> On Fri, Aug 4, 2017 at 9:34 AM, Omer Butt  wrote:
>
>> Aoa Sir,
>> How can i access the Database data in Custom Design form for data entry.
>> I have to populate values in drop down from db.
>> IS there a way to do that ??
>> for Example:
>> province in drop downs:
>> Districts: in drop downs. etc
>>
>> [image: Inline image 1]
>>
>>
>
___
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