Re: [Dhis2-devs] GIS Google Maps Error

2016-07-28 Thread Sourabh Bhardwaj
Hi all,

I am also getting some errors while using GIS Plugin. Following is the
console and screenshot of generated map.

[image: Inline image 2]

[image: Inline image 1]

I have test it on 2.24 as well , same error is coming there!

If I setup the browser key for *Missingkeymap *using 
"text/javascript">

Then I have to remove the plugin source otherwise duplicate map library
error came.

Anyone faced similar issue with Plugins?

Thanks & Regards,
Sourabh Bhardwaj.


On Wed, Jul 27, 2016 at 11:34 PM, Bjørn Sandvik  wrote:

>
> Hi Lorill,
>
> GIS questions for DHIS 2.22 and earlier are best answered by Jan, who will
> be back in office next week.
>
> Bjørn
>
> On Wed, Jul 27, 2016 at 6:22 PM, Lorill Crees  wrote:
>
>> Hi Bjørn,
>>
>> These instances will eventually be upgraded, perhaps in the next 3-6
>> months, but not immediately.
>>
>> Do you have any ideas with how we can address this specific issue in
>> version 2.22?
>>
>> Thanks,
>>
>> Lorill
>>
>> On Wed, Jul 27, 2016 at 4:03 AM, Bjørn Sandvik  wrote:
>>
>>> Hi Lorill,
>>>
>>> Do you have the chance to upgrade to a new version of DHIS 2?
>>>
>>> There is a lot of GIS improvements in DHIS 2.23 and 2.24.
>>>
>>> Bjørn
>>>
>>> --
>>> Bjørn Sandvik
>>> GIS developer, DHIS 2
>>> University of Oslo
>>> www.dhis2.org
>>>
>>>
>>>
>>> On Tue, Jul 26, 2016 at 10:15 PM, Lorill Crees 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> When attempting to load up the GIS app in DHIS 2 in some of our
>>>> instances, we are getting the following error popup:
>>>>
>>>> "This page was unable to display a Google Maps element. Please contact
>>>> the site administrator. If you are the administrator of this site, please
>>>> check the JavaScript console or check the following page for
>>>> troubleshooting: http://g.co/mapsJSApiErrors";
>>>>
>>>> URL:
>>>>
>>>> https://[server]/dhis-web-mapping/index.html
>>>>
>>>> Please see the attached screenshot of the javascript console, which
>>>> shows this error:
>>>>
>>>> "Google Maps API error: Google Maps API error: MissingKeyMapError
>>>> https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error
>>>> "
>>>>
>>>> When closing the popover, the world map does not render.
>>>>
>>>> We are using 2.22 R 22026.
>>>>
>>>> How can we fix this?
>>>>
>>>> Thanks,
>>>>
>>>> Lorill
>>>>
>>>>
>>>> ___
>>>> 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
>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>
>
> --
> Bjørn Sandvik
> GIS developer, DHIS 2
> University of Oslo
> 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
>
>
___
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] GIS Google Maps Error

2016-08-01 Thread Sourabh Bhardwaj
Hi Jan&Bjørn*,*

Currently I am using 2.21 with revision 20876 and this error is coming with
the Plugin only.  Demo version or even 2.21 GIS is running fine!

Regards,
Sourabh

On Mon, Aug 1, 2016 at 3:04 PM, Jan Henrik Øverland  wrote:

> Hi Sourabh,
>
> Which version and revision?
>
> Jan
>
> On 28 July 2016 at 12:42, Sourabh Bhardwaj  wrote:
>
>> Hi all,
>>
>> I am also getting some errors while using GIS Plugin. Following is the
>> console and screenshot of generated map.
>>
>> [image: Inline image 2]
>>
>> [image: Inline image 1]
>>
>> I have test it on 2.24 as well , same error is coming there!
>>
>> If I setup the browser key for *Missingkeymap *using > src="<a  rel="nofollow" href="https://maps.googleapis.com/maps/api/js?key=*#*"type">https://maps.googleapis.com/maps/api/js?key=*#*"type</a>
>> ="text/javascript">
>>
>> Then I have to remove the plugin source otherwise duplicate map library
>> error came.
>>
>> Anyone faced similar issue with Plugins?
>>
>> Thanks & Regards,
>> Sourabh Bhardwaj.
>>
>>
>> On Wed, Jul 27, 2016 at 11:34 PM, Bjørn Sandvik  wrote:
>>
>>>
>>> Hi Lorill,
>>>
>>> GIS questions for DHIS 2.22 and earlier are best answered by Jan, who
>>> will be back in office next week.
>>>
>>> Bjørn
>>>
>>> On Wed, Jul 27, 2016 at 6:22 PM, Lorill Crees  wrote:
>>>
>>>> Hi Bjørn,
>>>>
>>>> These instances will eventually be upgraded, perhaps in the next 3-6
>>>> months, but not immediately.
>>>>
>>>> Do you have any ideas with how we can address this specific issue in
>>>> version 2.22?
>>>>
>>>> Thanks,
>>>>
>>>> Lorill
>>>>
>>>> On Wed, Jul 27, 2016 at 4:03 AM, Bjørn Sandvik  wrote:
>>>>
>>>>> Hi Lorill,
>>>>>
>>>>> Do you have the chance to upgrade to a new version of DHIS 2?
>>>>>
>>>>> There is a lot of GIS improvements in DHIS 2.23 and 2.24.
>>>>>
>>>>> Bjørn
>>>>>
>>>>> --
>>>>> Bjørn Sandvik
>>>>> GIS developer, DHIS 2
>>>>> University of Oslo
>>>>> www.dhis2.org
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Jul 26, 2016 at 10:15 PM, Lorill Crees 
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> When attempting to load up the GIS app in DHIS 2 in some of our
>>>>>> instances, we are getting the following error popup:
>>>>>>
>>>>>> "This page was unable to display a Google Maps element. Please
>>>>>> contact the site administrator. If you are the administrator of this 
>>>>>> site,
>>>>>> please check the JavaScript console or check the following page for
>>>>>> troubleshooting: http://g.co/mapsJSApiErrors";
>>>>>>
>>>>>> URL:
>>>>>>
>>>>>> https://[server]/dhis-web-mapping/index.html
>>>>>>
>>>>>> Please see the attached screenshot of the javascript console, which
>>>>>> shows this error:
>>>>>>
>>>>>> "Google Maps API error: Google Maps API error: MissingKeyMapError
>>>>>> https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error
>>>>>> "
>>>>>>
>>>>>> When closing the popover, the world map does not render.
>>>>>>
>>>>>> We are using 2.22 R 22026.
>>>>>>
>>>>>> How can we fix this?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Lorill
>>>>>>
>>>>>>
>>>>>> ___
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Bjørn Sandvik
>>> GIS developer, DHIS 2
>>> University of Oslo
>>> 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
>>>
>>>
>>
>
>
> --
> Jan Henrik Øverland
> Software developer, DHIS 2
> University of Oslo
> http://www.dhis2.org <https://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


[Dhis2-devs] GIS Plugin Issue with Legend Set!

2016-09-29 Thread Sourabh Bhardwaj
Hi all,

I am using the GIS Plugin to generate Maps. Maps are generating fine but
there is one issue coming up with the legend set. On top of the legend set
Indicator id is coming instead of the name. Following is the screenshot for
same: [image: Inline image 2]

I have tried with predefined legend Set also. Have checked on the
documentation for plugins
http://dhis2.github.io/dhis2-docs/2.21/en/developer/html/ch01s24.html  but
didn't found anything related to filters for indicators/dataelements.

But if I generate same map from GIS Module then name is coming fine in the
legend set.

Anybody faced similar issue before with plugins?


Thanks & Regards,
Sourabh Bhardwaj.
___
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] Point map is not coming while getting map from a favourite!

2016-11-21 Thread Sourabh Bhardwaj
Dear all devs/users,

I am trying to get a map from saved favourite , but point layer is not
coming at the output , only boundary is coming :

Following is the mapViews:

DHIS.getMap({

"mapViews": [
{
"columns": null,
"rows": [
{
"dimension": "ou",
"items": [
{
"id": "OU_GROUP-YnlGtIdGeCH"
}
]
}
],
"filters": null,
"layer": "boundary",
"opacity": 10,
"labels": true
}
],
"baseLayer": "none",
"url": "http://localhost:8080/dhis/";,
"el": "mapA1"
});

Saved favourite is as follows:

[image: Inline image 1]

The real output coming is as:

[image: Inline image 2]

Have tried by passing favourite uid (mentioned below)also but nothing
changed:

*DHIS.getMap({*
*url: "https://localhost:8080/dhis/
<https://localhost:8080/dhis/>",*
*el: "mapA1",*
*    id: "t4d9qK0qv4D"*
*});*

Can anybody help ,I am following Dhis2 plugins(
https://dhis2.github.io/dhis2-docs/2.22/en/developer/html/ch01s27.html)
Thanks in advance!

Regards,
Sourabh Bhardwaj
___
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] Test Email in Email Settings is not Working.

2016-12-06 Thread Sourabh Bhardwaj
Hi all,

I have setup the email settings as:

*Hostname: s...@gmail.com *
*Port: 587*
*username: @gmail.com <http://gmail.com>*
*password: ***(gmail password)*
*sender: ***@gmail.com <http://gmail.com>*


But test mail never receives to the user. Following error is  coming:

*Sending email to user: admin with email address:***@gmail.com
<http://gmail.com> to host: smtp.gmail.com:587 <http://smtp.gmail.com:587>
(EmailMessageSender.java [taskScheduler-8])*
*   * WARN  2016-12-06 17:51:15,540 Could not send email: Sending
the email to the following server failed : smtp.gmail.com:587
<http://smtp.gmail.com:587>, org.apache.commons.mail.EmailException:
Sending the email to the following server failed : smtp.gmail.com:587
<http://smtp.gmail.com:587>*


Has anyone used the Email Settings before?

Thanks & Regards,
Sourabh Bhardwaj
___
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] Test Email in Email Settings is not Working.

2016-12-06 Thread Sourabh Bhardwaj
Thanks Stian & Sam,

I have followed your instructions and now it is working fine after enabling
IMAP and less securing apps.



On Tue, Dec 6, 2016 at 6:41 PM, Sam Kasozi  wrote:

> Also enabling the 'less secure apps to access your account' option in the
> Gmail account configured in the DHIS 2.
>
> If this is the case, then when you log into the same account, you will
> find a blocked sign-in attempt notification email with the option for
> allowing the access.
>
> https://www.google.com/settings/security/lesssecureapps
>
> regards,
>
> Sam Kasozi
> +256 788-993-565
> Skype: sam.kasoziug
>
> On Tue, Dec 6, 2016 at 5:16 PM, Stian Sandvold  wrote:
>
>> Hi,
>>
>> first, did you enable TLS as well?
>>
>> I followed the steps listed here: https://support.google.c
>> om/mail/answer/7126229?hl=en
>>
>> This works fine for me. Is there any way you misspelled your email or
>> password?
>>
>> Seemed to work without enabling POP/IMAP in my gmail account as well, but
>> if you can’t get it to work, you should try to enable it as well I guess.
>>
>> Let me know how it goes.
>>
>> ——
>> Stian Sandvold
>> Software developer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>>
>>
>>
>> On 6 Dec 2016, at 13:36, Sourabh Bhardwaj  wrote:
>>
>> Hi all,
>>
>> I have setup the email settings as:
>>
>> *Hostname: s...@gmail.com *
>> *Port: 587*
>> *username: @gmail.com <http://gmail.com/>*
>> *password: ***(gmail password)*
>> *sender: ***@gmail.com <http://gmail.com/>*
>>
>>
>> But test mail never receives to the user. Following error is  coming:
>>
>> *Sending email to user: admin with email address:***@gmail.com
>> <http://gmail.com/> to host: smtp.gmail.com:587
>> <http://smtp.gmail.com:587/> (EmailMessageSender.java [taskScheduler-8])*
>> *   * WARN  2016-12-06 17:51:15,540 Could not send email: Sending
>> the email to the following server failed : smtp.gmail.com:587
>> <http://smtp.gmail.com:587/>, org.apache.commons.mail.EmailException:
>> Sending the email to the following server failed : smtp.gmail.com:587
>> <http://smtp.gmail.com:587/>*
>>
>>
>> Has anyone used the Email Settings before?
>>
>> Thanks & Regards,
>> Sourabh Bhardwaj
>>
>>
>>
>> ___
>> 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
>>
>>
>>
>> ___
>> 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
>>
>>
>
___
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] Error while creating a new user.

2016-12-29 Thread Sourabh Bhardwaj
Hi all,

I am getting an error while creating a new user through web api(using 2.25
Build revision: edc697d)

Following is the error:

*attempted to assign id from null one-to-one property
[org.hisp.dhis.user.UserCredentials.userInfo]"*


Following is the payload i am referring to:

{
  "firstName": "John",
  "surname": "Doe",
  "email": "john...@mail.com",
  "userCredentials": {
"username": "johndoe",
"password": "your-password-123",
"userRoles": [ {
  "id": "Euq3XfEIEbx"
} ]
  },
  "organisationUnits": [ {
"id": "ImspTQPwCqd"
  } ],
  "userGroups": [ {
"id": "vAvEltyXGbD"
  } ]
}

Complete Logcat:

*org.hibernate.id.IdentifierGenerationException: attempted to assign id
from null one-to-one property [org.hisp.dhis.user.UserCredentials.userInfo]*
*at
org.hibernate.id.ForeignGenerator.generate(ForeignGenerator.java:83)*
*at
org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:105)*
*at
org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:192)*
*at
org.hibernate.event.internal.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:38)*
*at
org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:177)*
*at
org.hibernate.event.internal.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:32)*
*at
org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:73)*
*at
org.hibernate.internal.SessionImpl.fireSave(SessionImpl.java:682)*
*at org.hibernate.internal.SessionImpl.save(SessionImpl.java:674)*
*at org.hibernate.internal.SessionImpl.save(SessionImpl.java:669)*
*at
org.hisp.dhis.dxf2.metadata.objectbundle.hooks.UserObjectBundleHook.postCreate(UserObjectBundleHook.java:76)*
*at
org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.lambda$handleCreates$4(DefaultObjectBundleService.java:217)*
*at java.util.ArrayList.forEach(ArrayList.java:1249)*
*at
org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.handleCreates(DefaultObjectBundleService.java:217)*
*at
org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.commit(DefaultObjectBundleService.java:149)*
*at sun.reflect.GeneratedMethodAccessor1007.invoke(Unknown Source)*
*at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
*at java.lang.reflect.Method.invoke(Method.java:497)*
*at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)*
*at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)*
*at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)*
*at
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)*
*at
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)*
*at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)*
*at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)*
*at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)*
*at com.sun.proxy.$Proxy186.commit(Unknown Source)*
*at
org.hisp.dhis.dxf2.metadata.DefaultMetadataImportService.importMetadata(DefaultMetadataImportService.java:116)*
*at sun.reflect.GeneratedMethodAccessor935.invoke(Unknown Source)*
*at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
*at java.lang.reflect.Method.invoke(Method.java:497)*
*at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)*
*at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)*
*at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)*
*at
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)*
*at
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)*
*at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)*
*at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)*
*at
org.springframework.aop.fr

Re: [Dhis2-devs] Error while creating a new user.

2016-12-29 Thread Sourabh Bhardwaj
Hi Morten,

Thanks for the reply. I have tried as per your suggestion and now getting
following error:

Internal server error: 500
Can not deserialize instance of java.lang.String out of START_ARRAY token↵
at [Source: org.apache.catalina.connector.CoyoteInputStream@3b6c6ca3; line:
1, column: 22] (through reference chain: org.hisp.dhis.user.User["id"])

On Thu, Dec 29, 2016 at 4:59 PM, Morten Olav Hansen 
wrote:

> Hi
>
> Our user model is a bit weird at times (will try to fix for 226). As a
> workaround you should be able to get this working if you use /api/system/id
> to get a new uid, then add that to the main user model "id": "your-uid",
> then inside the userCredentials you would put "userInfo": {"id": "your-id"
> }
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Thu, Dec 29, 2016 at 9:16 AM, Sourabh Bhardwaj 
> wrote:
>
>> Hi all,
>>
>> I am getting an error while creating a new user through web api(using
>> 2.25 Build revision: edc697d)
>>
>> Following is the error:
>>
>> *attempted to assign id from null one-to-one property
>> [org.hisp.dhis.user.UserCredentials.userInfo]"*
>>
>>
>> Following is the payload i am referring to:
>>
>> {
>>   "firstName": "John",
>>   "surname": "Doe",
>>   "email": "john...@mail.com",
>>   "userCredentials": {
>> "username": "johndoe",
>> "password": "your-password-123",
>> "userRoles": [ {
>>   "id": "Euq3XfEIEbx"
>> } ]
>>   },
>>   "organisationUnits": [ {
>> "id": "ImspTQPwCqd"
>>   } ],
>>   "userGroups": [ {
>> "id": "vAvEltyXGbD"
>>   } ]
>> }
>>
>> Complete Logcat:
>>
>> *org.hibernate.id
>> <http://org.hibernate.id>.IdentifierGenerationException: attempted to
>> assign id from null one-to-one property
>> [org.hisp.dhis.user.UserCredentials.userInfo]*
>> *at org.hibernate.id
>> <http://org.hibernate.id>.ForeignGenerator.generate(ForeignGenerator.java:83)*
>> *at
>> org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:105)*
>> *at
>> org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:192)*
>> *at
>> org.hibernate.event.internal.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:38)*
>> *at
>> org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:177)*
>> *at
>> org.hibernate.event.internal.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:32)*
>> *at
>> org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:73)*
>> *at
>> org.hibernate.internal.SessionImpl.fireSave(SessionImpl.java:682)*
>> *at org.hibernate.internal.SessionImpl.save(SessionImpl.java:674)*
>> *at org.hibernate.internal.SessionImpl.save(SessionImpl.java:669)*
>> *at
>> org.hisp.dhis.dxf2.metadata.objectbundle.hooks.UserObjectBundleHook.postCreate(UserObjectBundleHook.java:76)*
>> *at
>> org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.lambda$handleCreates$4(DefaultObjectBundleService.java:217)*
>> *at java.util.ArrayList.forEach(ArrayList.java:1249)*
>> *at
>> org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.handleCreates(DefaultObjectBundleService.java:217)*
>> *at
>> org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.commit(DefaultObjectBundleService.java:149)*
>> *at sun.reflect.GeneratedMethodAccessor1007.invoke(Unknown
>> Source)*
>> *at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
>> *at java.lang.reflect.Method.invoke(Method.java:497)*
>> *at
>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)*
>> *at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)*
>> *at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodIn

Re: [Dhis2-devs] Error while creating a new user.

2016-12-29 Thread Sourabh Bhardwaj
I have recheck the payload again and now its working fine. Thanks for your
time.

On Thu, Dec 29, 2016 at 6:06 PM, Morten Olav Hansen 
wrote:

> Hm that means something is wrong with your payload. Could you give the
> full payload again?
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Thu, Dec 29, 2016 at 1:04 PM, Sourabh Bhardwaj 
> wrote:
>
>> Hi Morten,
>>
>> Thanks for the reply. I have tried as per your suggestion and now getting
>> following error:
>>
>> Internal server error: 500
>> Can not deserialize instance of java.lang.String out of START_ARRAY
>> token↵ at [Source: org.apache.catalina.connector.
>> CoyoteInputStream@3b6c6ca3; line: 1, column: 22] (through reference
>> chain: org.hisp.dhis.user.User["id"])
>>
>> On Thu, Dec 29, 2016 at 4:59 PM, Morten Olav Hansen 
>> wrote:
>>
>>> Hi
>>>
>>> Our user model is a bit weird at times (will try to fix for 226). As a
>>> workaround you should be able to get this working if you use /api/system/id
>>> to get a new uid, then add that to the main user model "id": "your-uid",
>>> then inside the userCredentials you would put "userInfo": {"id": "your-id"
>>> }
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Thu, Dec 29, 2016 at 9:16 AM, Sourabh Bhardwaj >> > wrote:
>>>
>>>> Hi all,
>>>>
>>>> I am getting an error while creating a new user through web api(using
>>>> 2.25 Build revision: edc697d)
>>>>
>>>> Following is the error:
>>>>
>>>> *attempted to assign id from null one-to-one property
>>>> [org.hisp.dhis.user.UserCredentials.userInfo]"*
>>>>
>>>>
>>>> Following is the payload i am referring to:
>>>>
>>>> {
>>>>   "firstName": "John",
>>>>   "surname": "Doe",
>>>>   "email": "john...@mail.com",
>>>>   "userCredentials": {
>>>> "username": "johndoe",
>>>> "password": "your-password-123",
>>>> "userRoles": [ {
>>>>   "id": "Euq3XfEIEbx"
>>>> } ]
>>>>   },
>>>>   "organisationUnits": [ {
>>>> "id": "ImspTQPwCqd"
>>>>   } ],
>>>>   "userGroups": [ {
>>>> "id": "vAvEltyXGbD"
>>>>   } ]
>>>> }
>>>>
>>>> Complete Logcat:
>>>>
>>>> *org.hibernate.id
>>>> <http://org.hibernate.id>.IdentifierGenerationException: attempted to
>>>> assign id from null one-to-one property
>>>> [org.hisp.dhis.user.UserCredentials.userInfo]*
>>>> *at org.hibernate.id
>>>> <http://org.hibernate.id>.ForeignGenerator.generate(ForeignGenerator.java:83)*
>>>> *at
>>>> org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:105)*
>>>> *at
>>>> org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:192)*
>>>> *at
>>>> org.hibernate.event.internal.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:38)*
>>>> *at
>>>> org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:177)*
>>>> *at
>>>> org.hibernate.event.internal.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:32)*
>>>> *at
>>>> org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:73)*
>>>> *at
>>>> org.hibernate.internal.SessionImpl.fireSave(SessionImpl.java:682)*
>>>> *at
>>>> org.hibernate.internal.SessionImpl.save(SessionImpl.java:674)*
>>>> *at
>>>> org.hibernate.internal.SessionImpl.save(SessionImpl.java:669)*
>>>> *at
>>>> org.hisp.dhis.dxf2.metadata.objectbundle.hooks.UserObjectBundleHook.postCreate(UserObject

[Dhis2-devs] Comment Field issue in Event capture.

2015-11-27 Thread Sourabh Bhardwaj
Hi,

I am facing a following issue:

Application doesn’t wrap-up the entered text value in ‘Comment’ field, when
optional ‘Comment’ field values passed with more than 100 character
values.Application should limit the 'comment' field input range.
Application should be able to wrap text for the comment field.


Here when we made following changes in  comments-section.html it does not
reflect anything.

**
*{{'recorded_comments'| translate}}*
**
[image: Inline image 2]


Here is the screenshot:
When user clicks on update then text coming up in Recorded comments is not
wrapped.

[image: Inline image 1]

Regards,
Sourabh Bhardwaj.
___
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] Program Rules are not working on Dropdowns(Event/Tracker )

2015-11-27 Thread Sourabh Bhardwaj
Hi,

Can anybody tell how to create program rules for dropdowns. As i am doing
it in following way:

If

#{bcg} == 'No' || #{bcg} == 'Yes'  then Hide some field.

No/Yes are values from dropdown.

I am using https://play.dhis2.org/demo link.
[image: Inline image 1]

But this expression is not working. I have tried on other dropdowns also
but doesn't get the output.

Thanks & Regrads,
Sourabh Bhardwaj.
___
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] Program Rules are not working on Dropdowns(Event/Tracker )

2015-11-27 Thread Sourabh Bhardwaj
Thanks for the reply markus,

I have tried using true/false also but did not get the result and for
option sets I am using single quotes for the Codes.  Can you make a simple
rule on demo instance for any dropdown.

Thanks again.


On Fri, Nov 27, 2015 at 4:55 PM,  wrote:

> Hi Shourab!
>
> Is your dropdown defined using a 'yes/no' data type, or in fact an option
> set?
>
> For yes/no data types, the syntax would be:
>
> #{bcg} == false || #{bcg} == true
>
> Or shorthand:
>
> !#{bcg} || #{bcg}
>
>
> If it is an option set, the rule seems correct(but did you mean to hide
> the fields both when the dropdown is 'yes' and 'no'? In that case the
> dropdown also specifies other options than yes and no, your rule makes
> sense.
>
> Markus
>
> Den 27. nov. 2015 kl. 12.17 skrev Sourabh Bhardwaj  >:
>
> Hi,
>
> Can anybody tell how to create program rules for dropdowns. As i am doing
> it in following way:
>
> If
>
> #{bcg} == 'No' || #{bcg} == 'Yes'  then Hide some field.
>
> No/Yes are values from dropdown.
>
> I am using https://play.dhis2.org/demo link.
> [image: Inline image 1]
>
> But this expression is not working. I have tried on other dropdowns also
> but doesn't get the output.
>
> Thanks & Regrads,
> Sourabh Bhardwaj.
>
>
>
> ___
> 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
>
>
___
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] Regarding Data sort through an APi

2016-02-29 Thread Sourabh Bhardwaj
Hi all,

Can we sort data getting through an Api, I am trying using sortOrder but it
did not helped.

Following is the complete url:

https://play.dhis2.org/demo/api/dataElementGroups?fields=dataElements[id,name]&sortOrder=ASC

OR

https://play.dhis2.org/demo/api/dataElementGroups?fields=dataElements[id,name]&sortOrder=DESC

Want to sort all the dataelements alphabetically or in some random required
order which we can define in Api only(say sort by dataelement or sort by
name etc.)

Thanks & Reagrds,
Sourabh Bhardwaj.
___
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] Regarding Data sort through an APi

2016-02-29 Thread Sourabh Bhardwaj
Thanks for the reply Morten,

I have tried with order parameter also but still getting the same order.
Here suppose I want to sort all the dataelements under Anaemia(KmwPVkjp7yl)
group like:

https://play.dhis2.org/demo/api/dataElementGroups/KmwPVkjp7yl?fields=dataElements[id,name]&order=name:asc

Here output should be:

Admission Date
Albendazole given at ANC (2nd trimester)
Anaemia follow-up
Anaemia new
Anaemia new


But actually it is coming in different order.

Thanks.




On Mon, Feb 29, 2016 at 3:08 PM, Morten Olav Hansen 
wrote:

> I assume you mean metadata (from your examples). Yes, you can use the
> order parameter, please have a look at [1].
>
> [1]
> http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s06.html
>
> On Mon, Feb 29, 2016 at 3:48 PM, Sourabh Bhardwaj 
> wrote:
>
>> Hi all,
>>
>> Can we sort data getting through an Api, I am trying using sortOrder but
>> it did not helped.
>>
>> Following is the complete url:
>>
>>
>> https://play.dhis2.org/demo/api/dataElementGroups?fields=dataElements[id,name]&sortOrder=ASC
>>
>> OR
>>
>>
>> https://play.dhis2.org/demo/api/dataElementGroups?fields=dataElements[id,name]&sortOrder=DESC
>>
>> Want to sort all the dataelements alphabetically or in some random
>> required order which we can define in Api only(say sort by dataelement or
>> sort by name etc.)
>>
>> Thanks & Reagrds,
>> Sourabh Bhardwaj.
>>
>>
>>
>> ___
>> 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
>>
>>
>
>
> --
> Morten
>
___
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] Regarding Data sort through an APi

2016-02-29 Thread Sourabh Bhardwaj
Yes exactly, I  want to do collection sorting directly through the Api.

Thanks for your time!

On Mon, Feb 29, 2016 at 3:45 PM, Morten Olav Hansen 
wrote:

> Yes, the query you are giving there is different from what you gave
> before. You can't do collection sorting, which I assume is what you want?
>
>
> https://play.dhis2.org/demo/api/dataElementGroups.json?fields=id,displayName&order=displayName:desc
>
> These kinds of sorts works.
>
> On Mon, Feb 29, 2016 at 5:08 PM, Sourabh Bhardwaj 
> wrote:
>
>> Thanks for the reply Morten,
>>
>> I have tried with order parameter also but still getting the same order.
>> Here suppose I want to sort all the dataelements under Anaemia(KmwPVkjp7yl)
>> group like:
>>
>>
>> https://play.dhis2.org/demo/api/dataElementGroups/KmwPVkjp7yl?fields=dataElements[id,name]&order=name:asc
>>
>> Here output should be:
>>
>> Admission Date
>> Albendazole given at ANC (2nd trimester)
>> Anaemia follow-up
>> Anaemia new
>> Anaemia new
>>
>>
>> But actually it is coming in different order.
>>
>> Thanks.
>>
>>
>>
>>
>> On Mon, Feb 29, 2016 at 3:08 PM, Morten Olav Hansen 
>> wrote:
>>
>>> I assume you mean metadata (from your examples). Yes, you can use the
>>> order parameter, please have a look at [1].
>>>
>>> [1]
>>> http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s06.html
>>>
>>> On Mon, Feb 29, 2016 at 3:48 PM, Sourabh Bhardwaj >> > wrote:
>>>
>>>> Hi all,
>>>>
>>>> Can we sort data getting through an Api, I am trying using sortOrder
>>>> but it did not helped.
>>>>
>>>> Following is the complete url:
>>>>
>>>>
>>>> https://play.dhis2.org/demo/api/dataElementGroups?fields=dataElements[id,name]&sortOrder=ASC
>>>>
>>>> OR
>>>>
>>>>
>>>> https://play.dhis2.org/demo/api/dataElementGroups?fields=dataElements[id,name]&sortOrder=DESC
>>>>
>>>> Want to sort all the dataelements alphabetically or in some random
>>>> required order which we can define in Api only(say sort by dataelement or
>>>> sort by name etc.)
>>>>
>>>> Thanks & Reagrds,
>>>> Sourabh Bhardwaj.
>>>>
>>>>
>>>>
>>>> ___
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Morten
>>>
>>
>>
>
>
> --
> Morten
>
___
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] Unicode Message Support in Dhis2.

2017-08-09 Thread Sourabh Bhardwaj
Hi,

I am trying to send an Unicode message like below using default sms
configuration in Dhis2. Normal text messages coming fine.

Unicode for नमस्ते:

%26%232344%3B%26%232350%3B%26%232360%3B%26%232381%3B%26%232340%3B%26%232375%3B


Using following gateway api(same I have setup in SMS gateway
Configuration):

If i call it in a browser it is working fine.

*http://msdgweb.mgov.gov.in/esms/sendsmsrequest?username=*&password=&smsservicetype=unicodemsg&content=%26%232344%3B%26%232350%3B%26%232360%3B%26%232381%3B%26%232340%3B%26%232375%3B&mobileno=*&senderid=
*

Same I have setup in Default Sms Configuration but there it is sending the
whole Unicode string as a text message.

Can anybody tell Unicode is supported in Dhis2 Default Send SMS/Program
Notifications.

Thanks in advance!
___
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] Regarding Program Notifications in Language other than English.

2017-08-29 Thread Sourabh Bhardwaj
Hi All,

Has anyone used the Program Notifications for any regional language.

We have a Use case to send program notifications in Hindi , The gateway we
are using supports Unicode sms service. But if we are trying to send same
Text from Dhis2 it converts it to special characters.

i.e: Unicode for नमस्ते:  %26%232344%3B%26%232350%3B%26%
232360%3B%26%232381%3B%26%232340%3B%26%232375%3B

Have tried with both normal Hindi text and Unicode Text. Both are not
currently supported. Using version 2.26 , build revision 44ec074.

Please share your experience.

Thanks in advance.
Sourabh Bhardwaj
Hisp India
___
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] Regarding Program Notifications in Language other than English.

2017-08-30 Thread Sourabh Bhardwaj
Hi Gaurav,

Gateway Actually supports Unicode format , If we are sending message
directly using http request provides by gateway  , it is working fine
there.

Thanks for the reply.

On 30-Aug-2017 1:51 PM, "Gaurav Kumar" 
wrote:

Hi Sourabh,



I don’t think DHIS2 is at fault here, it should be the SMS gateway that
should handle the decoding of the message string. You will also need to
consider the charset of the outgoing text and parameterize it to the
gateway (most gateways will default to UTF-8 encoding, unless specified
otherwise).



I would advise you to refer the SMS gateway documentation to sort out the
details.



Hope this helps.



Regards,

GAURAV





*From:* Dhis2-devs [mailto:dhis2-devs-bounces+gkumar=internationalmedicalcor
ps@lists.launchpad.net] *On Behalf Of *Sourabh Bhardwaj
*Sent:* Wednesday, August 30, 2017 11:26 AM
*To:* dhis2-devs 
*Cc:* dhis2-users 
*Subject:* [Dhis2-devs] Regarding Program Notifications in Language other
than English.



Hi All,



Has anyone used the Program Notifications for any regional language.



We have a Use case to send program notifications in Hindi , The gateway we
are using supports Unicode sms service. But if we are trying to send same
Text from Dhis2 it converts it to special characters.



i.e: Unicode for नमस्ते:  %26%232344%3B%26%232350%3B%
26%232360%3B%26%232381%3B%26%232340%3B%26%232375%3B



Have tried with both normal Hindi text and Unicode Text. Both are not
currently supported. Using version 2.26 , build revision 44ec074.



Please share your experience.



Thanks in advance.

Sourabh Bhardwaj

Hisp India
___
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] Regarding Program Notifications in Language other than English.

2017-08-30 Thread Sourabh Bhardwaj
Thanks for the reply Dan & Alex,

If possible can you please share the link for Jira issue also ?



On Wed, Aug 30, 2017 at 9:35 PM, Alex Tumwesigye 
wrote:

> Hi Sourabh,
> We reported this issue of adding % to text.Its not a sms gateway issue.
>
> Hope it will be fixed soon.
>
> Alex
>
>
> On Wednesday, August 30, 2017, Sourabh Bhardwaj 
> wrote:
>
>> Hi Gaurav,
>>
>> Gateway Actually supports Unicode format , If we are sending message
>> directly using http request provides by gateway  , it is working fine
>> there.
>>
>> Thanks for the reply.
>>
>> On 30-Aug-2017 1:51 PM, "Gaurav Kumar" > rps.org> wrote:
>>
>> Hi Sourabh,
>>
>>
>>
>> I don’t think DHIS2 is at fault here, it should be the SMS gateway that
>> should handle the decoding of the message string. You will also need to
>> consider the charset of the outgoing text and parameterize it to the
>> gateway (most gateways will default to UTF-8 encoding, unless specified
>> otherwise).
>>
>>
>>
>> I would advise you to refer the SMS gateway documentation to sort out the
>> details.
>>
>>
>>
>> Hope this helps.
>>
>>
>>
>> Regards,
>>
>> GAURAV
>>
>>
>>
>>
>>
>> *From:* Dhis2-devs [mailto:dhis2-devs-bounces+gkumar=
>> internationalmedicalcorps@lists.launchpad.net] *On Behalf Of *Sourabh
>> Bhardwaj
>> *Sent:* Wednesday, August 30, 2017 11:26 AM
>> *To:* dhis2-devs 
>> *Cc:* dhis2-users 
>> *Subject:* [Dhis2-devs] Regarding Program Notifications in Language
>> other than English.
>>
>>
>>
>> Hi All,
>>
>>
>>
>> Has anyone used the Program Notifications for any regional language.
>>
>>
>>
>> We have a Use case to send program notifications in Hindi , The gateway
>> we are using supports Unicode sms service. But if we are trying to send
>> same Text from Dhis2 it converts it to special characters.
>>
>>
>>
>> i.e: Unicode for नमस्ते:  %26%232344%3B%26%232350%3B%26
>> %232360%3B%26%232381%3B%26%232340%3B%26%232375%3B
>>
>>
>>
>> Have tried with both normal Hindi text and Unicode Text. Both are not
>> currently supported. Using version 2.26 , build revision 44ec074.
>>
>>
>>
>> Please share your experience.
>>
>>
>>
>> Thanks in advance.
>>
>> Sourabh Bhardwaj
>>
>> Hisp India
>>
>>
>>
>>
>>
>>
>>
>
> --
> 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 "
>
>
___
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] SMS Service Configuration Not Working on 2.27 & 2.28

2017-10-21 Thread Sourabh Bhardwaj
t
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at
org.springframework.orm.hibernate5.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:151)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
* INFO  2017-10-21 21:28:51,696 Response status code: 403 (SmsGateway.java
[http-nio-8080-exec-4])
* ERROR 2017-10-21 21:28:51,697 failed (SmsMessageSender.java
[http-nio-8080-exec-4])


Have tried with 2 different gateways.
Build revision: 4045811
Version : 2.27

Thanks & Regards,
Sourabh Bhardwaj
___
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] SMS Service Configuration Not Working on 2.27 & 2.28

2017-10-21 Thread Sourabh Bhardwaj
Hi Zubair,

Its a HTTP Gateway , it works if we call following API directly in the
browser:

http://api.sparrowsms.com/v2/sms/?token=###&from=###&to=###&text=test

Following is the screenshot of Gateway configuration :

[image: Inline image 2]
Regards,

On Sun, Oct 22, 2017 at 4:10 AM, Zubair Asghar Raja 
wrote:

> Hi Sourabh,
> Which type of sms gateway have you configured?
>
> BR //
> Zubair
>
>
>
>
>
>
>
>
> On Sat, Oct 21, 2017 at 6:15 PM, Sourabh Bhardwaj 
> wrote:
>
>> Hi All,
>>
>> I have setup a Sms Gateway. Gateway is configured successfully. But while
>> sending a message  through default send sms/ Sms widget available in
>> Tracker Capture module it is getting failed each-time.
>>
>> However If I use same gateway on 2.26 , it is working fine there.
>>
>> Following is the response returned :
>>
>>
>> *{"summaries":[{"total":1,"failed":1,"pending":0,"sent":0,"status":"FAILED","errorMessage":"failed","batchType":"SMS"}]}
>>  *
>>
>> On log getting error 403 forbidden :
>>
>>
>> * INFO  2017-10-21 21:24:34,247 Response status code: 403
>> (SmsGateway.java [http-nio-8080-exec-7])
>> * ERROR 2017-10-21 21:24:34,249 failed (SmsMessageSender.java
>> [http-nio-8080-exec-7])
>> * INFO  2017-10-21 21:28:51,252 Invoking message sender: SmsMessageSender
>> (DefaultOutboundMessageBatchService.java [http-nio-8080-exec-4])
>> * ERROR 2017-10-21 21:28:51,665 Client error (SmsGateway.java
>> [http-nio-8080-exec-4])
>> org.springframework.web.client.HttpClientErrorException: 403 FORBIDDEN
>> at org.springframework.web.client.DefaultResponseErrorHandler.h
>> andleError(DefaultResponseErrorHandler.java:63)
>> at org.springframework.web.client.RestTemplate.handleResponse(R
>> estTemplate.java:700)
>> at org.springframework.web.client.RestTemplate.doExecute(RestTe
>> mplate.java:653)
>> at org.springframework.web.client.RestTemplate.execute(RestTemp
>> late.java:613)
>> at org.springframework.web.client.RestTemplate.exchange(RestTem
>> plate.java:531)
>> at org.hisp.dhis.sms.config.SmsGateway.send(SmsGateway.java:89)
>> at org.hisp.dhis.sms.config.SimplisticHttpGetGateWay.send(Simpl
>> isticHttpGetGateWay.java:107)
>> at org.hisp.dhis.sms.config.SimplisticHttpGetGateWay.lambda$sen
>> dBatch$0(SimplisticHttpGetGateWay.java:84)
>> at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipel
>> ine.java:193)
>> at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Ar
>> rayList.java:1374)
>> at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.
>> java:481)
>> at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPi
>> peline.java:471)
>> at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Reduc
>> eOps.java:708)
>> at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.
>> java:234)
>> at java.util.stream.ReferencePipeline.collect(ReferencePipeline
>> .java:499)
>> at org.hisp.dhis.sms.config.SimplisticHttpGetGateWay.sendBatch(
>> SimplisticHttpGetGateWay.java:85)
>> at org.hisp.dhis.sms.config.SmsMessageSender.sendMessageBatch(S
>> msMessageSender.java:153)
>> at org.hisp.dhis.outboundmessage.DefaultOutboundMessageBatchSer
>> vice.send(DefaultOutboundMessageBatchService.java:116)
>> at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipel
>> ine.java:193)
>> at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Ar
>> rayList.java:1374)
>> at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.
>> java:481)
>> at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPi
>> peline.java:471)
>> at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(For
>> EachOps.java:151)
>> at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequenti
>> al(ForEachOps.java:174)
>> at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.
>> java:234)
>> at java.util.stream.ReferencePipeline.forEach(ReferencePipeline
>> .java:418)
>> at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipel
>> ine.java:270)
>> at java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.
>> java:1683)
>> at java.util.stream.AbstractPipeline.copyInto(AbstractPipelin

Re: [Dhis2-devs] SMS Service Configuration Not Working on 2.27 & 2.28

2017-10-23 Thread Sourabh Bhardwaj
Thanks Zubair,

It is working fine now.

On Mon, Oct 23, 2017 at 4:23 PM, Zubair Asghar Raja 
wrote:

> Souravh,
>
> It has been fixed. Test it again.
>
>
> Br,
> Zubair
>
> On Sun, Oct 22, 2017 at 6:25 AM, Sourabh Bhardwaj 
> wrote:
>
>> Hi Zubair,
>>
>> Its a HTTP Gateway , it works if we call following API directly in the
>> browser:
>>
>> http://api.sparrowsms.com/v2/sms/?token=###&from=###&to=###&text=test
>>
>> Following is the screenshot of Gateway configuration :
>>
>> [image: Inline image 2]
>> Regards,
>>
>> On Sun, Oct 22, 2017 at 4:10 AM, Zubair Asghar Raja 
>> wrote:
>>
>>> Hi Sourabh,
>>> Which type of sms gateway have you configured?
>>>
>>> BR //
>>> Zubair
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Sat, Oct 21, 2017 at 6:15 PM, Sourabh Bhardwaj >> > wrote:
>>>
>>>> Hi All,
>>>>
>>>> I have setup a Sms Gateway. Gateway is configured successfully. But
>>>> while sending a message  through default send sms/ Sms widget available in
>>>> Tracker Capture module it is getting failed each-time.
>>>>
>>>> However If I use same gateway on 2.26 , it is working fine there.
>>>>
>>>> Following is the response returned :
>>>>
>>>>
>>>> *{"summaries":[{"total":1,"failed":1,"pending":0,"sent":0,"status":"FAILED","errorMessage":"failed","batchType":"SMS"}]}
>>>>  *
>>>>
>>>> On log getting error 403 forbidden :
>>>>
>>>>
>>>> * INFO  2017-10-21 21:24:34,247 Response status code: 403
>>>> (SmsGateway.java [http-nio-8080-exec-7])
>>>> * ERROR 2017-10-21 21:24:34,249 failed (SmsMessageSender.java
>>>> [http-nio-8080-exec-7])
>>>> * INFO  2017-10-21 21:28:51,252 Invoking message sender:
>>>> SmsMessageSender (DefaultOutboundMessageBatchService.java
>>>> [http-nio-8080-exec-4])
>>>> * ERROR 2017-10-21 21:28:51,665 Client error (SmsGateway.java
>>>> [http-nio-8080-exec-4])
>>>> org.springframework.web.client.HttpClientErrorException: 403 FORBIDDEN
>>>> at org.springframework.web.client.DefaultResponseErrorHandler.h
>>>> andleError(DefaultResponseErrorHandler.java:63)
>>>> at org.springframework.web.client.RestTemplate.handleResponse(R
>>>> estTemplate.java:700)
>>>> at org.springframework.web.client.RestTemplate.doExecute(RestTe
>>>> mplate.java:653)
>>>> at org.springframework.web.client.RestTemplate.execute(RestTemp
>>>> late.java:613)
>>>> at org.springframework.web.client.RestTemplate.exchange(RestTem
>>>> plate.java:531)
>>>> at org.hisp.dhis.sms.config.SmsGateway.send(SmsGateway.java:89)
>>>> at org.hisp.dhis.sms.config.SimplisticHttpGetGateWay.send(Simpl
>>>> isticHttpGetGateWay.java:107)
>>>> at org.hisp.dhis.sms.config.SimplisticHttpGetGateWay.lambda$sen
>>>> dBatch$0(SimplisticHttpGetGateWay.java:84)
>>>> at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipel
>>>> ine.java:193)
>>>> at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Ar
>>>> rayList.java:1374)
>>>> at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.
>>>> java:481)
>>>> at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPi
>>>> peline.java:471)
>>>> at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Reduc
>>>> eOps.java:708)
>>>> at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.
>>>> java:234)
>>>> at java.util.stream.ReferencePipeline.collect(ReferencePipeline
>>>> .java:499)
>>>> at org.hisp.dhis.sms.config.SimplisticHttpGetGateWay.sendBatch(
>>>> SimplisticHttpGetGateWay.java:85)
>>>> at org.hisp.dhis.sms.config.SmsMessageSender.sendMessageBatch(S
>>>> msMessageSender.java:153)
>>>> at org.hisp.dhis.outboundmessage.DefaultOutboundMessageBatchSer
>>>> vice.send(DefaultOutboundMessageBatchService.java:116)
>>>> at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipel
>>>> ine.java:193)
&

[Dhis2-devs] External access (Without Login) Not Working for Resources.

2017-11-20 Thread Sourabh Bhardwaj
Hi All,

I need to share some information from resources publicly say a
image/document etc.

Have set External access (without login) to true.

https://play.dhis2.org/demo/api/documents/{UID}

is returning:

*{"httpStatus":"Internal Server
Error","httpStatusCode":500,"status":"ERROR"}*

Is there any user Role also(however I have logged in with super user) to
create public resources or is there any alternative available?

Thanks.
___
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] External access (Without Login) Not Working for Resources.

2017-11-22 Thread Sourabh Bhardwaj
(CoyoteAdapter.java:502)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1539)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1495)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)



<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Wed, Nov 22, 2017 at 8:08 AM, Morten Olav Hansen 
wrote:

> Hi
>
> Could you please include the server log? it should include a stack trace
> of what is going on
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Mon, Nov 20, 2017 at 6:19 PM, Sourabh Bhardwaj 
> wrote:
>
>> Hi All,
>>
>> I need to share some information from resources publicly say a
>> image/document etc.
>>
>> Have set External access (without login) to true.
>>
>> https://play.dhis2.org/demo/api/documents/{UID}
>>
>> is returning:
>>
>> *{"httpStatus":"Internal Server
>> Error","httpStatusCode":500,"status":"ERROR"}*
>>
>> Is there any user Role also(however I have logged in with super user) to
>> create public resources or is there any alternative available?
>>
>> Thanks.
>>
>>
>> ___
>> 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
>>
>>
>
___
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] External access (Without Login) Not Working for Resources.

2017-11-22 Thread Sourabh Bhardwaj
Thanks ,

Will test and let you know.

On Thu, Nov 23, 2017 at 11:56 AM, Morten Olav Hansen 
wrote:

> Hi
>
> Can you give our servers about 1 hour to build, then try again with latest
> version (I have made a fix available down to 2.27)
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Thu, Nov 23, 2017 at 12:40 PM, Sourabh Bhardwaj 
> wrote:
>
>> Hi Morten ,
>>
>> have included the log below :
>>
>> java.lang.NullPointerException
>> at org.hisp.dhis.security.acl.DefaultAclService.getAccess(Defau
>> ltAclService.java:351)
>> at org.hisp.dhis.webapi.controller.AbstractCrudController.addAc
>> cessProperties(AbstractCrudController.java:1098)
>> at org.hisp.dhis.webapi.controller.AbstractCrudController.handl
>> eLinksAndAccess(AbstractCrudController.java:1138)
>> at org.hisp.dhis.webapi.controller.AbstractCrudController.getOb
>> jectInternal(AbstractCrudController.java:517)
>> at org.hisp.dhis.webapi.controller.AbstractCrudController.getOb
>> ject(AbstractCrudController.java:261)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.springframework.web.method.support.InvocableHandlerMetho
>> d.doInvoke(InvocableHandlerMethod.java:205)
>> at org.springframework.web.method.support.InvocableHandlerMetho
>> d.invokeForRequest(InvocableHandlerMethod.java:133)
>> at org.springframework.web.servlet.mvc.method.annotation.Servle
>> tInvocableHandlerMethod.invokeAndHandle(ServletInvocableHand
>> lerMethod.java:97)
>> at org.springframework.web.servlet.mvc.method.annotation.Reques
>> tMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHan
>> dlerAdapter.java:827)
>> at org.springframework.web.servlet.mvc.method.annotation.Reques
>> tMappingHandlerAdapter.handleInternal(RequestMappingHandlerA
>> dapter.java:738)
>> at org.springframework.web.servlet.mvc.method.AbstractHandlerMe
>> thodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
>> at org.springframework.web.servlet.DispatcherServlet.doDispatch
>> (DispatcherServlet.java:967)
>> at org.springframework.web.servlet.DispatcherServlet.doService(
>> DispatcherServlet.java:901)
>> at org.springframework.web.servlet.FrameworkServlet.processRequ
>> est(FrameworkServlet.java:970)
>> at org.springframework.web.servlet.FrameworkServlet.doGet(
>> FrameworkServlet.java:861)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
>> at org.springframework.web.servlet.FrameworkServlet.service(
>> FrameworkServlet.java:846)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:292)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:207)
>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:240)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:207)
>> at org.springframework.security.web.FilterChainProxy$VirtualFil
>> terChain.doFilter(FilterChainProxy.java:317)
>> at org.springframework.security.web.access.intercept.FilterSecu
>> rityInterceptor.invoke(FilterSecurityInterceptor.java:127)
>> at org.springframework.security.web.access.intercept.FilterSecu
>> rityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
>> at org.springframework.security.web.FilterChainProxy$VirtualFil
>> terChain.doFilter(FilterChainProxy.java:331)
>> at org.springframework.security.web.access.ExceptionTranslation
>> Filter.doFilter(ExceptionTranslationFilter.java:114)
>> at org.springframework.security.web.FilterChainProxy$VirtualFil
>> terChain.doFilter(FilterChainProxy.java:331)
>> at org.springframework.security.web.session.SessionManagementFi
>> lter.doFilter(SessionManagementFilter.java:137)
>> at org.springframework.security.web.FilterChainProxy$VirtualFil
>> terChain.doFilter(FilterChainProxy.java:331)
>> at org.springframework.security.web.authentication.AnonymousAut
>> henticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
>> at org.springframework.security.web.FilterChainProxy$VirtualFil
>> terChain.doFilter(Filt

[Dhis2-devs] Validate Pattern Not Working for Reg Expression

2018-01-03 Thread Sourabh Bhardwaj
Hi,

Wishing you all a very happy & prosperous  new year.

I am trying to put a validation on one of the attribute for Email.
Following the manual , expression I am using is :

*!d2:validatePattern(#{email},'^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$')*

Which is not working as it validate false every time even if we enter a
valid email i.e: sour...@gmail.com

However I have checked d2:validatePattern for other expressions  like :

*!d2:validatePattern(A{name},'[^\\d]*')*

Which is working fine for not contain numbers.

The Reg Expression I am using for email is working fine on normal html.

Has anyone used the validate pattern for email before?

*Dhis2 Version: 2.25*
*Build revision: :8982deb*


Thanks & Regards,
Sourabh Bhardwaj
___
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] Script Not Loading For Pivot Table Plugin V28

2018-06-26 Thread Sourabh Bhardwaj
Hi All,

I am trying to Embed Pivot table from Pivot Plugin, however the only source
required 'reportTable.js'  is not loading:

(https://dhis2-cdn.org/v228/plugin/reporttable.js)
*giving the page is currently offline *

I am following the reference:
https://docs.dhis2.org/master/en/developer/html/dhis2_developer_manual_full.html#webapi_pivot_table_plugin

Is there any alternative available to 'reportTable' for version 28. If
someone having 'reportTable.js' available  offline , Please share.

Thanks in advance!
Sourabh Bhardwaj
HISP India
___
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] Script Not Loading For Pivot Table Plugin V28

2018-06-26 Thread Sourabh Bhardwaj
 Hi Everyone ,

A gentle reminder to the previous mail :

Pivot table plugin is not working as (
https://dhis2-cdn.org/v228/plugin/reporttable.js) is down. Please share if
anyone having 'reporttable.js' script file available or please make this
link up and working.

Thanks


On Tue, Jun 26, 2018 at 1:51 PM Sourabh Bhardwaj 
wrote:

>
> Hi All,
>
> I am trying to Embed Pivot table from Pivot Plugin, however the only
> source required 'reportTable.js'  is not loading:
>
> (https://dhis2-cdn.org/v228/plugin/reporttable.js)
> *giving the page is currently offline *
>
> I am following the reference:
> https://docs.dhis2.org/master/en/developer/html/dhis2_developer_manual_full.html#webapi_pivot_table_plugin
>
> Is there any alternative available to 'reportTable' for version 28. If
> someone having 'reportTable.js' available  offline , Please share.
>
> Thanks in advance!
> Sourabh Bhardwaj
> HISP India
>
>
>
___
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] Script Not Loading For Pivot Table Plugin V28

2018-06-27 Thread Sourabh Bhardwaj
Thanks for the reply Knut,

It is available in the dhis-web-pivot package :)

On Wed, Jun 27, 2018 at 12:27 PM Knut Staring  wrote:

> Maybe this workaround will be of help:
> https://lists.launchpad.net/dhis2-users/msg15874.html
>
> On Wed, Jun 27, 2018 at 8:46 AM Sourabh Bhardwaj 
> wrote:
>
>> Hi Everyone ,
>>
>> A gentle reminder to the previous mail :
>>
>> Pivot table plugin is not working as (
>> https://dhis2-cdn.org/v228/plugin/reporttable.js) is down. Please share
>> if anyone having 'reporttable.js' script file available or please make this
>> link up and working.
>>
>> Thanks
>>
>>
>> On Tue, Jun 26, 2018 at 1:51 PM Sourabh Bhardwaj 
>> wrote:
>>
>>>
>>> Hi All,
>>>
>>> I am trying to Embed Pivot table from Pivot Plugin, however the only
>>> source required 'reportTable.js'  is not loading:
>>>
>>> (https://dhis2-cdn.org/v228/plugin/reporttable.js)
>>> *giving the page is currently offline *
>>>
>>> I am following the reference:
>>> https://docs.dhis2.org/master/en/developer/html/dhis2_developer_manual_full.html#webapi_pivot_table_plugin
>>>
>>> Is there any alternative available to 'reportTable' for version 28. If
>>> someone having 'reportTable.js' available  offline , Please share.
>>>
>>> Thanks in advance!
>>> Sourabh Bhardwaj
>>> HISP India
>>>
>>>
>>> ___
>> 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
>>
>
>
> --
> Knut Staring
>
> Department of Information, Evidence and Research
> World Health Organization, Geneva, Switzerland
> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
> Skype: knutstar
>
___
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] Event Sync Error From Dhis2 Mobile App V2.29

2018-08-24 Thread Sourabh Bhardwaj
Hi Calle/Markus,

Thanks for the information.

Regards,
Sourabh


On Fri, Aug 24, 2018, 3:50 PM Markus Bekken  wrote:

> Hey Calle, Sourabh, others. Thanks for reporting, we are looking at this
> on priority.
>
> You can follow the progress in Jira here:
> https://jira.dhis2.org/browse/DHIS2-4480
>
> 24. aug. 2018 kl. 11:12 skrev Calle Hedberg :
>
> Sourabh,
>
> This bug affects the browser too, blocking data capture. Viet is
> investigating the issue, according to Markus. No other info yet.
>
> Regards
> calle
>
> On Thu, 23 Aug 2018 at 15:07, Sourabh Bhardwaj 
> wrote:
>
>> Hi All,
>>
>> We have recently upgrade Dhis2 from version 2.27 to 2.29. While trying to
>> sync enrollment/events from android app , I am able to sync enrollment but
>> following response is coming for event sync:
>>
>> *Failed to lazily initialize a collection of
>> role:org.hisp.dhis.dataelement.DataelementCategoryOptionCombo.categoryOptions,
>> could not initialize proxy: no sessions*
>>
>> However I am able to sync events successfully using the 'superuser'
>> access. Is there any role related to CategoryOptionCombo which I am
>> missing on if so,I am using tracker module only not the aggregated.
>>
>> I have attached the screenshot below with this email:
>>
>> Thanks & Regards,
>> Sourabh Bhardwaj
>> HISP India
>>
>>
>>
>>
>>
>> ___
>> 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
>>
>
>
> --
>
> ***
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>
> Tel/fax (home): +27-21-685-6472
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedb...@gmail.com
>
> Skype: calle_hedberg
>
> ***
>
> ___
> 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
>
>
>
___
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] Event Sync Error From Dhis2 Mobile App V2.29

2018-08-26 Thread Sourabh Bhardwaj
Great, thanks for the update.

On Sun, Aug 26, 2018 at 8:12 PM Calle Hedberg 
wrote:

> Sourabh,
>
> DHIS2-4480 has been resolved - I've just tested the temporary fix for the
> lazily initialization, and it works (2.29 build from this afternoon)
>
> Regards
> calle
>
> On Fri, 24 Aug 2018 at 12:40, Sourabh Bhardwaj 
> wrote:
>
>> Hi Calle/Markus,
>>
>> Thanks for the information.
>>
>> Regards,
>> Sourabh
>>
>>
>> On Fri, Aug 24, 2018, 3:50 PM Markus Bekken  wrote:
>>
>>> Hey Calle, Sourabh, others. Thanks for reporting, we are looking at this
>>> on priority.
>>>
>>> You can follow the progress in Jira here:
>>> https://jira.dhis2.org/browse/DHIS2-4480
>>>
>>> 24. aug. 2018 kl. 11:12 skrev Calle Hedberg :
>>>
>>> Sourabh,
>>>
>>> This bug affects the browser too, blocking data capture. Viet is
>>> investigating the issue, according to Markus. No other info yet.
>>>
>>> Regards
>>> calle
>>>
>>> On Thu, 23 Aug 2018 at 15:07, Sourabh Bhardwaj 
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> We have recently upgrade Dhis2 from version 2.27 to 2.29. While trying
>>>> to sync enrollment/events from android app , I am able to sync enrollment
>>>> but following response is coming for event sync:
>>>>
>>>> *Failed to lazily initialize a collection of
>>>> role:org.hisp.dhis.dataelement.DataelementCategoryOptionCombo.categoryOptions,
>>>> could not initialize proxy: no sessions*
>>>>
>>>> However I am able to sync events successfully using the 'superuser'
>>>> access. Is there any role related to CategoryOptionCombo which I am
>>>> missing on if so,I am using tracker module only not the aggregated.
>>>>
>>>> I have attached the screenshot below with this email:
>>>>
>>>> Thanks & Regards,
>>>> Sourabh Bhardwaj
>>>> HISP India
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ___
>>>> 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
>>>>
>>>
>>>
>>> --
>>>
>>> ***
>>>
>>> Calle Hedberg
>>>
>>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>>>
>>> Tel/fax (home): +27-21-685-6472
>>>
>>> Cell: +27-82-853-5352
>>>
>>> Iridium SatPhone: +8816-315-19119
>>>
>>> Email: calle.hedb...@gmail.com
>>>
>>> Skype: calle_hedberg
>>>
>>> ***
>>>
>>> ___
>>> 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
>>>
>>>
>>>
>
> --
>
> ***
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>
> Tel/fax (home): +27-21-685-6472
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedb...@gmail.com
>
> Skype: calle_hedberg
>
> ***
>
>
___
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] Could Not Execute Statement Error For 2.29 & 2.30

2018-10-14 Thread Sourabh Bhardwaj
Hi Everyone,

I am not able to save any changes to the Program module. i.e  Assign new
element to program , change sort order for existing elements etc.

*Error: 'Could not execute statement' *
[image: image.png]


Console Log:
[image: image.png]

Have attached the Payload below with this email.

I have test for both versions 2.29(https://play.dhis2.org/2.29) & 2.30(
https://play.dhis2.org/2.30) using superuser.

Thanks & Regards,
Sourabh Bhardwaj
HISP India


program_payload.json
Description: application/json
___
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] Cors Whitelist.

2015-10-08 Thread Sourabh Bhardwaj
Hi,

I want to pull data from third party and I have added the domain to CORS
Whitelist >Settings>Access>CORS Whitelist) but still it is giving the
error: *xmlhttprequest  *

*: *XMLHttpRequest cannot load the requested url .

 Following is the url which returns data in Xml and we want to read data
from this url.

http://shifw.nrhmharyana.gov.in/?source=RBSK&year=2014&timeInterval=Monthly&montquad=1

I have added the url to CORS Whitelist:
[image: Inline image 1]


Thanks & Regards,
Sourabh Bhardwaj
___
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] CORS whitelist

2015-10-08 Thread Sourabh Bhardwaj
Hi,

I want to pull data from third party and I have added the domain to CORS
Whitelist in >Settings>Access>CORS Whitelist but still it is giving the
same error: *xmlhttprequest  Like: *XMLHttpRequest cannot load the
requested url .
Can anybody help ?

Thanks & Regards,
Sourabh Bhardwaj
___
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] Aggregation type function does not work properly.

2015-10-29 Thread Sourabh Bhardwaj
Hi,

Can anyone tell me for what purpose we use aggregation type function. I was
checking in case of Pivot tables, here if we change the aggregation type
from table options then it does not effect any data , table data remains
unchanged. I have attached 2 screenshots below.

I think it should be like if we select Sum as aggregation type then it
should return Sum , if we select min as type then it should return the
minimum value but right now data remains same.

Thanks & regards,
Sourabh Bhardwaj.
___
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] Aggregation type function is not working.

2015-10-31 Thread Sourabh Bhardwaj
Hi,

Can anyone tell me for what purpose we use aggregation type function. I was
checking in case of Pivot tables, here if we change the aggregation type
from table options then it does not effect any data , table data remains
unchanged. I have attached 2 screenshots below.

I think it should be like if we select Sum as aggregation type then it
should return Sum , if we select min as type then it should return the
minimum value but right now data remains same.

Thanks & regards,
Sourabh Bhardwaj.
___
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] Query regarding ExtJs

2015-11-04 Thread Sourabh Bhardwaj
Hi Sir,

This side Sourabh (working as software developer Intern  in Hisp India) and
Priyanka(working as software developer in Hisp India)

There is one requirement that has come up on ExtJS to plot charts
dynamically by getting data through web API.
We are facing with a query as explained as follows: We want to display the
data(period) in legend dynamically as shown in figure 1.
[image: Inline image 1]
figure 1


But we are getting output as shown in figure 2, although  it represents
data from Apr14 to Mar15 still the legend shows Apr14 to Sep14

[image: Inline image 2]

figure 2

Currently we are fixing the period in legend as shown in highlighted text-

  Ext.require('Ext.chart.*');
Ext.require('Ext.layout.container.Fit');

Ext.onReady(function ()
{
var store = Ext.create('Ext.data.JsonStore', {
 fields: ['ou', 'Apr14ToSep14', 'Apr15ToSep15']

 });

var data = [];

for (var i = 0; i < count; i++){

data.push({ou: orgUnitname[i], Apr14ToSep14: result[i], Apr15ToSep15:
result1[i] });
}

store.loadData(data);

console.log(store.getRange());

var panel1 = Ext.create('widget.panel', {
width: 600,
height: 400,
title: 'Early ANC Registration',
renderTo: Ext.getBody(),
layout: 'fit',
items: {
xtype: 'chart',
animate: true,
shadow: true,
store: store,
legend: {
position: 'right',
renderer: function(storeItem, item) {
this.setTitle(storeItem.get('startPeriod') + 'to ' +
storeItem.get('endPeriod') );
  }
},
axes: [{
type: 'Numeric',
position: 'left',
fields: ['Apr14ToSep14', 'Apr15ToSep15'],
title: false,
grid: true,
roundToDecimal: false
},  {
type: 'Category',
position: 'Bottom',
fields: ['ou'],
label: {
rotate:{degrees:270}
},
title: false
}],
series: [{
//type: 'bar',
type: 'column',
axis: 'bottom',
gutter: 80,
xField: 'ou',
yField: ['Apr14ToSep14', 'Apr15ToSep15'],
stacked: false,
tips: {
trackMouse: true,
width: 65,
height: 28,
renderer: function(storeItem, item) {
this.setTitle(String(item.value[1]));
}
}
}]
}
});
});
});
})

})
})
 We tried making it dynamic by taking a variable and passing as:
var periodStr1 = startPeriod +"to"+ endPeriod;

fields: ['ou', periodStr1 , periodStr1]. But this doesn't work.

Can you please suggest a way to make the legend dynamic based on the
periods passed by the user.

Regards
Sourabh Bhardwaj.
___
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