Re: [Dhis2-devs] Can SQL Views be created through API?

2016-12-01 Thread Harsh Atal
Got it! Thanks harsh On 1 December 2016 at 16:56, Jason Pickering wrote: > Hi Harsh, > > You can import the sql view with the metadata importer, just like any > other metadata object. > > Regards, > Jason > > > On Thu, Dec 1, 2016 at 12:23 PM, Harsh Atal

Re: [Dhis2-devs] Can SQL Views be created through API?

2016-12-01 Thread Jason Pickering
Hi Harsh, You can import the sql view with the metadata importer, just like any other metadata object. Regards, Jason On Thu, Dec 1, 2016 at 12:23 PM, Harsh Atal wrote: > Dear Morten > > The documentation talks about executing an existing sqlView but I want to > create

Re: [Dhis2-devs] Can SQL Views be created through API?

2016-12-01 Thread Knut Staring
List of existing ones: https://play.dhis2.org/demo/api/sqlViews.json POSTing a new one: https://play.dhis2.org/demo/api/sqlViews/QAlOivHBY3a.json On Thu, Dec 1, 2016 at 6:23 PM, Harsh Atal wrote: > Dear Morten > > The documentation talks about executing an existing

Re: [Dhis2-devs] Can SQL Views be created through API?

2016-12-01 Thread Harsh Atal
Dear Morten The documentation talks about executing an existing sqlView but I want to create a new one using the API. Not sure if that is possible. What we are attempting is that a dhis2 app when loaded first checks if the sqlView exists(By name let's say). And if not then it creates a new one

Re: [Dhis2-devs] Can SQL Views be created through API?

2016-11-30 Thread Harsh Atal
Thanks, will check this out and get back. On 30 November 2016 at 10:43, Morten Olav Hansen wrote: > You can read more about it here > > https://ci.dhis2.org/docs/master/en/developer/html/webapi_sql_views.html > > -- > Morten Olav Hansen > Senior Engineer, DHIS 2 > University

Re: [Dhis2-devs] Can SQL Views be created through API?

2016-11-29 Thread Morten Olav Hansen
You can read more about it here https://ci.dhis2.org/docs/master/en/developer/html/webapi_sql_views.html -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, Nov 30, 2016 at 12:12 PM, Morten Olav Hansen wrote: > Hi Harsh > > We have

Re: [Dhis2-devs] Can SQL Views be created through API?

2016-11-29 Thread Morten Olav Hansen
Hi Harsh We have a /api/sqlViews endpoint you might want to look at? that should enable you to create sql views using the web-api. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, Nov 30, 2016 at 12:09 PM, Harsh Atal wrote: >