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 webpack, exports and stuff around it.
I think dhis has put effort in doing so with d2-browser.js but its not working as expected. If you can just fix that, it should be very helpful for the community.
Sultan Ahamar.
···
On Mon, Jul 4, 2016 at 6:41 PM, Mark Polak mark@dhis2.org wrote:
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 apps too) But in the future we’ll move away from parsing the client side .properties files (yes i know it’s kind of weird … :)). To be more concrete the idea is to have something more like d2.i18n.getTranslation('This is my title')
which renders the english text if no translation is available or the language should be english instead of d2.i18n.getTranslation('this_is_my_title')
where we need to map the key to English. (There is a long story behind which is not really important, but if you’re interested it is explained in detail in a google doc [1])
For your AngularJS implementation i created a simple example on how such a thing could be achieved. Obviously you would probably not inject d2 into the controller like i’ve done in the example and make it look somewhat cleaner with factories/services that provide the controllers with the data but the idea behind it should be clear 
Hope this helps:
https://github.com/Markionium/d2-angular-webpack
[1] https://docs.google.com/document/d/1u0YhRZD2Q3F8p6VCsz7dXdZxJL45R0qsEfsNc0OCJYs/edit#heading=h.7x8a17q7igji
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
On Mon, Jul 4, 2016 at 2:44 PM, Archana Chillala archanac@thoughtworks.com wrote:
Thank you for the detailed response. Could you elaborate on “Reworking the translation support”.
–
Regards,
Mark Polak
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org
mark@dhis2.org
Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533

On Mon, Jul 4, 2016 at 5:53 PM, Mark Polak mark@dhis2.org wrote:
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:
https://github.com/Markionium/d2-examples/blob/master/src/filtering/index.js
Roadmap:
The roadmap for this stuff basically depends on what we need for the stuff we’re currently working on.
What is on the list currently that are major things:
- fixing PATCH for updates when it is supported in the api.
- Reworking the translation support
- Reducing the footprint of the /api/schemas endpoint that gets loaded
- Batch updates/saves
- Getting rid of the jQuery dependency
If you find yourself missing something though, you could always contribute or open an issue and we can judge if it is worth adding. 
Further long term, we would like to merge d2 and d2-analysis and implement offline support to a certain degree (to meet the tracker use cases) but both of these are likely not any time soon.
I don’t know much about the d2-analysis and what it supports (there is no documentation yet as far as i’m aware). It can be used with the all the things like charts and maps as thats what we use it for, to power GIS, pivot and friends. Those apps on github must have code that sort of explains how to use it 
Good to know you’re using webpack, that should make it easier
Stay tuned
On Mon, Jul 4, 2016 at 2:19 PM, Archana Chillala archanac@thoughtworks.com wrote:
Yes, we’ll be using webpack.
–
Regards,
Mark Polak
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org
mark@dhis2.org
Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533

On Mon, Jul 4, 2016 at 5:14 PM, Mark Polak mark@dhis2.org wrote:
That might be a bit outdated 
Are you using any tools like webpack or babel?
On Mon, Jul 4, 2016 at 1:06 PM, Archana Chillala archanac@thoughtworks.com wrote:
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 mentioned in the documentation (http://d2.markionium.com), we tried the following.
If you want to use d2
as just a global variable on the window object you can include one of the following scripts in your page d2/lib/d2-browser.js
or d2/lib/d2-browser.min.js
But, we are not able to access d2. Is there something we are missing?
Any help here is appreciated.
*Cheers,*
–
Regards,
Mark Polak
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org
mark@dhis2.org
Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533

On Mon, Jul 4, 2016 at 2:19 PM, Mark Polak mark@dhis2.org wrote:
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 archanac@thoughtworks.com wrote:
Hi,
Could you please provide any information on the above-mentioned queries.
Cheers,
–
Regards,
Mark Polak
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org
mark@dhis2.org
Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533

On Thu, Jun 30, 2016 at 6:47 PM, Archana Chillala archanac@thoughtworks.com wrote:
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 know its roadmap and what are the features that will be incorporated.
Thank you.
Cheers,
Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533

On Thu, Jun 30, 2016 at 5:58 PM, Archana Chillala archanac@thoughtworks.com wrote:
Also, could you please share some examples on how to use filters.
Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533

On Thu, Jun 30, 2016 at 4:49 PM, Archana Chillala archanac@thoughtworks.com wrote:
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:
[
- id: "m0rnaeivV6W",
- sections:
[
- {
- name: "Section1",
- dataElements:
[
- {
- name: "new data element",
- id: "JyjMOr3En81",
- valueType: "NUMBER"
}
]
}
]
}
]
Is there any d2 alternative to replicate the same? Or do we have to first get all dataElements and then after getting a dataSet filter from dataElements?
Thank you.
Cheers,
Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533

On Wed, Jun 29, 2016 at 7:20 PM, Mark Polak mark@dhis2.org wrote:
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 archanac@thoughtworks.com wrote:
Hi Mark,
Thank you. Could you share a link to the skeleton app you mentioned.
Cheers,
–
Regards,
Mark Polak
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org
mark@dhis2.org
Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533

On Wed, Jun 29, 2016 at 5:43 PM, Mark Polak mark@dhis2.org wrote:
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 the libraries Nicolay mentioned and a few comments on what is happening 
Regards,
Mark
On Wed, Jun 29, 2016 at 1:22 PM, Archana Chillala archanac@thoughtworks.com wrote:
Thanks a lot, Lars.
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
–
Regards,
Mark Polak
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org
mark@dhis2.org
Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533

On Wed, Jun 29, 2016 at 4:25 PM, Lars Helge Øverland lars@dhis2.org wrote:
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 archanac@thoughtworks.com wrote:
Thank you, Nicolay.
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
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
lars@dhis2.org
http://www.dhis2.org
–
Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533

On Wed, Jun 29, 2016 at 2:43 PM, Nicolay Ramm nicolay@dhis2.org wrote:
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 written using D2, D2-UI, React and RxJS:
Best regards,
Nicolay Ramm
Front end developer, DHIS 2
University of Oslo
https://www.dhis2.org
On Wed, Jun 29, 2016 at 10:58 AM, Archana Chillala archanac@thoughtworks.com wrote:
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,
Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533

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