Dears, I haven't checked in DHIS 2.14 But on DHIS 2.13 the returned value is not an object, it is a string. So right now I need to build a json object with the returned value. I think if it's default to return as a json object. It should be better.
2014/1/20 Rodolfo Melia <[email protected]> > thanks so much lars. > > Thuy/ James: the next update to our production server is schedule for next > sunday. I should be ok to wait until them. > > *Rodolfo Meliá* > *Principal | *[email protected] > Skype: rod.melia | +44 777 576 4090 | +1 708 872 7636 > www.knowming.com > > > On Sun, Jan 19, 2014 at 7:21 PM, Lars Helge Øverland > <[email protected]>wrote: > >> Hi Rodolfo, >> >> I have back-ported the fix to 2.13 now. >> >> regards, >> >> Lars >> >> >> >> On Wed, Jan 15, 2014 at 2:06 PM, Rodolfo Melia <[email protected]>wrote: >> >>> Thanks Lars - I can now see this working on 2.14. Would it be possible >>> to back port it to 2.13? Otherwise we will wait to late march, when we have >>> scheduled our upgrade of the production server. >>> >>> R >>> >>> *Rodolfo Meliá* >>> *Principal | *[email protected] >>> Skype: rod.melia | +44 777 576 4090 | +1 708 872 7636 >>> www.knowming.com >>> >>> >>> On Wed, Jan 15, 2014 at 12:10 PM, Lars Helge Øverland < >>> [email protected]> wrote: >>> >>>> Its actually this resource URL: >>>> >>>> api/me/profile >>>> >>>> >>>> >>>> >>>> On Wed, Jan 15, 2014 at 12:49 PM, Rodolfo Melia <[email protected]>wrote: >>>> >>>>> Hi Lars - we were about to use the locale values on api/me, but the >>>>> info is not being returned. We tried Sierra Leone demo as well as dev - >>>>> somehow is gone. Would it be possible to get this back? Thanks ! >>>>> >>>>> *Rodolfo Meliá* >>>>> *Principal | *[email protected] >>>>> Skype: rod.melia | +44 777 576 4090 | +1 708 872 7636 >>>>> www.knowming.com >>>>> >>>>> >>>>> On Sat, Dec 14, 2013 at 1:19 PM, Lars Helge Øverland < >>>>> [email protected]> wrote: >>>>> >>>>>> >>>>>> >>>>>>> >>>>>>>> Also, when you are in a custom form - how can you know what >>>>>>>> language is the current user set to? >>>>>>>> >>>>>>> I imagine needing to add some extra text, which will need multiple >>>>>>>> translations. We can embed such text on the HTML of the page, as long >>>>>>>> as we >>>>>>>> know what's the current language, and then display accordingly. >>>>>>>> >>>>>>>> >>>>>>> Good point. That and other user settings should be easily available >>>>>>> in the web api, probably at /api/me. Will try to fix that shortly. >>>>>>> >>>>>>> >>>>>> >>>>>> Hi Rodolfo and James, >>>>>> >>>>>> you can now access settings for the currently logged in user at: >>>>>> >>>>>> /api/me/profile >>>>>> >>>>>> { >>>>>> >>>>>> - firstName: "Tom", >>>>>> - surname: "Wakiki", >>>>>> - ... >>>>>> - settings: >>>>>> { >>>>>> - keyMessageEmailNotification: "false", >>>>>> - keyUiLocale: "en", >>>>>> - keyDbLocale: "en", >>>>>> - keyMessageSmsNotification: "false" >>>>>> } >>>>>> >>>>>> } >>>>>> >>>>>> Lars >>>>>> >>>>>> >>>>> >>>> >>> >> > -- Thai Chuong HCMUT - Computer science and engineering Faculty Website: http://thuytruc.net YM/Skype : thaichuong159 Email: [email protected] Phone: (+84) 918776134
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

