Re: [Dhis2-devs] Documentation for d2 library

2016-07-08 Thread Mark Polak
Hey Archana, Let me know if you have any other questions :) On Thu, Jul 7, 2016 at 9:24 PM, Archana Chillala wrote: > Hi Mark, > > Thanks a lot for the detailed response. That was really helpful. > > > *Cheers,* > > Archana Chillala > Application Developer > Email

Re: [Dhis2-devs] Documentation for d2 library

2016-07-07 Thread Archana Chillala
Hi Mark, Thanks a lot for the detailed response. That was really helpful. *Cheers,* Archana Chillala Application Developer Email archa...@thoughtworks.com Telephone +91 9100960533 <+91+9100960533> [image: ThoughtWorks]

Re: [Dhis2-devs] Documentation for d2 library

2016-07-07 Thread Mark Polak
Hey Archana, Please see the answers to your questions below. - What is it that d2 offers? What are the benefits over making plain API calls. *Currently i would say the biggest benefit is readability of your source code and some small abstractions that we do in library over the

Re: [Dhis2-devs] Documentation for d2 library

2016-07-07 Thread Morten Olav Hansen
Hi Mark What is the plan regarding supporting multiple versions of D2js? will it follow DHIS 2 API versions, which means 3 versions always supported? (bugs mostly, but features if not too disruptive) -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu,

Re: [Dhis2-devs] Documentation for d2 library

2016-07-07 Thread Mark Polak
Hey Sultan Ahamar, I've fixed the stand alone builds and redeployed to npm. If you're developing for dhis 2.23 or lower (or dhis 2.24 with the old importer) use `npm install d2@dhis-2.23` If you're developing for 2.24 with the new importer use `npm install d2@dhis-2.24` (To use the new importer

Re: [Dhis2-devs] Documentation for d2 library

2016-07-05 Thread Mark Polak
Hey Archana, You raise a lot of interesting questions. Some of which we have considered and some which we might not have as much. First you'll have to realise that it's not officially been released yet, so all these things have not been ironed out yet. Currently we are the only major users of

Re: [Dhis2-devs] Documentation for d2 library

2016-07-05 Thread Archana Chillala
Hi Mark, Thanks for your response. Really appreciate it. We would like to understand d2 a little deeper. Could you please answer the following queries: - What is it that d2 offers? What are the benefits over making plain API calls. - When d2 library is upgraded or if the API

Re: [Dhis2-devs] Documentation for d2 library

2016-07-05 Thread Mark Polak
To speak in favour of it, it is the "future" way of doing stuff, as it's basically follows the new standard way of javascript modules (Not webpack obviously, but the ES2016/ES2017 specs). Anyways, since 2.24 is out i should have some time to look into this. Might take a few days though, so until

Re: [Dhis2-devs] Documentation for d2 library

2016-07-04 Thread Sultanahamar Mohammad
Hi Mark, Can we have d2 library without having to depend on webpack, babel and stuff around. A plane js file upon including it, exposes its method on window object may be with a namespace d2. That should make it very easy to people who want to try d2. Right now, people should start understanding

Re: [Dhis2-devs] Documentation for d2 library

2016-07-04 Thread Mark Polak
The idea is so simplify the workflow for translators, which means that we're changing the way the translations are implemented and will likely move from a `key` based system to a getText style of workflow. So translations as they currently work are working fine (you can see examples in the other

Re: [Dhis2-devs] Documentation for d2 library

2016-07-04 Thread Archana Chillala
Thank you for the detailed response. Could you elaborate on "Reworking the translation support". Archana Chillala Application Developer Email archa...@thoughtworks.com Telephone +91 9100960533 <+91+9100960533> [image: ThoughtWorks]

Re: [Dhis2-devs] Documentation for d2 library

2016-07-04 Thread Mark Polak
To come back to your earlier questions, which you've said you've mostly found the answers too ;) *Loading multiple layers of objects example* https://github.com/Markionium/d2-examples/blob/master/src/deeperModels/index.js *Filtering:*

Re: [Dhis2-devs] Documentation for d2 library

2016-07-04 Thread Archana Chillala
Yes, we'll be using webpack. Archana Chillala Application Developer Email archa...@thoughtworks.com Telephone +91 9100960533 <+91+9100960533> [image: ThoughtWorks] On

Re: [Dhis2-devs] Documentation for d2 library

2016-07-04 Thread Archana Chillala
Hi Mark, Sure. Thanks a lot. From the existing apps that are leveraging d2, we have figured out how to use filters and also to retrieve multiple fields and their inner objects as well. But we have an issue. We have our custom apps written in angularJS and want to use d2 library with it. As

Re: [Dhis2-devs] Documentation for d2 library

2016-07-04 Thread Mark Polak
Hey Archana, I'm working on after finishing a few things for the 2.24 release. Should get you an answer today with some examples. :) Regards, Mark On Mon, Jul 4, 2016 at 9:08 AM, Archana Chillala wrote: > Hi, > > Could you please provide any information on the

Re: [Dhis2-devs] Documentation for d2 library

2016-07-04 Thread Archana Chillala
Hi, Could you please provide any information on the above-mentioned queries. *Cheers,* Archana Chillala Application Developer Email archa...@thoughtworks.com Telephone +91 9100960533 <+91+9100960533> [image: ThoughtWorks]

Re: [Dhis2-devs] Documentation for d2 library

2016-06-30 Thread Archana Chillala
Hi, We also came across,* d2-analysis* library ( https://github.com/dhis2/d2-analysis). Is there any documentation about it and how to use it? Can it be used for all the analytics objects (e.g. charts, pivot tables, event charts, event reports) Regarding the d2 library, could you please let us

Re: [Dhis2-devs] Documentation for d2 library

2016-06-30 Thread Archana Chillala
Also, could you please share some examples on how to use *filters.* Archana Chillala Application Developer Email archa...@thoughtworks.com Telephone +91 9100960533 <+91+9100960533> [image: ThoughtWorks]

Re: [Dhis2-devs] Documentation for d2 library

2016-06-30 Thread Archana Chillala
Hi Mark, We want to retrieve data in a format specified as shown below. http://localhost:8080/api/dataSets.json?fields=name,id,sections[name,dataElements[id,name,valueType]] which renders this: - dataSets: [ - { - name: "data set", - id: "m0rnaeivV6W",

Re: [Dhis2-devs] Documentation for d2 library

2016-06-29 Thread Mark Polak
Sorry silly me, forgot to include the link ;) https://github.com/dhis2/app-skeleton On Wed, Jun 29, 2016 at 3:28 PM, Archana Chillala wrote: > Hi Mark, > > Thank you. Could you share a link to the skeleton app you mentioned. > > > *Cheers,* > > Archana Chillala >

Re: [Dhis2-devs] Documentation for d2 library

2016-06-29 Thread Archana Chillala
Hi Mark, Thank you. Could you share a link to the skeleton app you mentioned. *Cheers,* Archana Chillala Application Developer Email archa...@thoughtworks.com Telephone +91 9100960533 <+91+9100960533> [image: ThoughtWorks]

Re: [Dhis2-devs] Documentation for d2 library

2016-06-29 Thread Mark Polak
Hey Archana, If you're still starting to use the tools before that feel free to ask questions on the list or through github issues on the specific repositories and we'll try to help you as best as we can. In the mean time you could take a look at our skeleton app. It has a very basic setup of

Re: [Dhis2-devs] Documentation for d2 library

2016-06-29 Thread Archana Chillala
Thanks a lot, Lars. Archana Chillala Application Developer Email archa...@thoughtworks.com Telephone +91 9100960533 <+91+9100960533> [image: ThoughtWorks] On Wed, Jun

Re: [Dhis2-devs] Documentation for d2 library

2016-06-29 Thread Lars Helge Ă˜verland
Hi Archana, we definitely plan to improve the docs and provide a consistent set of documentation / guides - we just hadn't had the time yet but its high on our list after 2.24. regards, Lars On Wed, Jun 29, 2016 at 12:44 PM, Archana Chillala < archa...@thoughtworks.com> wrote: > Thank you,

Re: [Dhis2-devs] Documentation for d2 library

2016-06-29 Thread Archana Chillala
Thank you, Nicolay. Archana Chillala Application Developer Email archa...@thoughtworks.com Telephone +91 9100960533 <+91+9100960533> [image: ThoughtWorks] On Wed, Jun

Re: [Dhis2-devs] Documentation for d2 library

2016-06-29 Thread Nicolay Ramm
Hi Archana, unfortunately the documentation that currently exists for D2 is far from extensive. The limited documentation we have can be found here: http://d2.markionium.com This is generated from the source code, so you'll find the same documentation in the code itself. The following apps are

[Dhis2-devs] Documentation for d2 library

2016-06-29 Thread Archana Chillala
Hi devs, We are looking at using *d2* library for our custom apps. Could you please direct us to any extensive documentation available for the same. Also, could you please share with us (repo links for) any apps built on react, so we could understand how d2 has been used. Thank you. *Cheers,*