dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #35700
Re: Unable to create dashboards on latest revision of trunk.
Hi Sandesh
Was this working before? because this is not really how the API works...
normally you would create the dashboard, then add the items..
We do support doing both if you do something like this (untested, but
should work)
{
"dashboardItems": [
{ "id": "di-client-generated-uid", "chart": "chart-id" }
],
"dashboards": [
{ "id": "dashboard-id", "name": "dashboard-name", "dashboardItems":
[{"id": "di-client-generated-id"}] }
]
}
Then send this of to /api/metadata endpoint
--
Morten
On Sun, Feb 15, 2015 at 8:58 PM, Sandesh Sukumar Doolipeta <
sandeshd@xxxxxxxxxxxxxxxx> wrote:
> Hi Lars ,
>
> The chart ID in the payload sent to you was changed. When we tried
> posting in the app , we used a valid chart ID.
>
> On Sun, Feb 15, 2015 at 4:53 PM, Lars Helge Øverland <larshelge@xxxxxxxxx>
> wrote:
>
>> Hi Mansi,
>>
>> is the request you included in the email the same as you used when
>> attempting to POST? If you look under dashboardItems > chart > id you have
>> "chartId", which is not a valid UID - this should be a reference to an
>> existing chart UID. Try changing that and see if it helps.
>>
>>
>> {
>> "displayName": "AFGHANISTAN",
>> "name": "AFGHANISTAN",
>> "dashboardItems": [
>> {
>> "chart": {
>> "id": "chartId"
>> }
>> }
>> ],
>>
>> regards,
>>
>> Lars
>>
>>
>
>
> --
> *Sandesh Doolipeta**Application Developer*
> Emailsandeshd@xxxxxxxxxxxxxxxx
> Telephone9686062727
> [image: ThoughtWorks] <http://www.thoughtworks.com/>
>
References
-
Unable to create dashboards on latest revision of trunk.
From: Mansi Singhal, 2015-02-11
-
Re: Unable to create dashboards on latest revision of trunk.
From: Morten Olav Hansen, 2015-02-11
-
Re: Unable to create dashboards on latest revision of trunk.
From: Mansi Singhal, 2015-02-11
-
Re: Unable to create dashboards on latest revision of trunk.
From: Mansi Singhal, 2015-02-11
-
Re: Unable to create dashboards on latest revision of trunk.
From: Morten Olav Hansen, 2015-02-11
-
Re: Unable to create dashboards on latest revision of trunk.
From: Mansi Singhal, 2015-02-11
-
Re: Unable to create dashboards on latest revision of trunk.
From: Morten Olav Hansen, 2015-02-11
-
Re: Unable to create dashboards on latest revision of trunk.
From: Lars Helge Øverland, 2015-02-11
-
Re: Unable to create dashboards on latest revision of trunk.
From: Mansi Singhal, 2015-02-11
-
Re: Unable to create dashboards on latest revision of trunk.
From: Sandesh Sukumar Doolipeta, 2015-02-13
-
Re: Unable to create dashboards on latest revision of trunk.
From: Lars Helge Øverland, 2015-02-15
-
Re: Unable to create dashboards on latest revision of trunk.
From: Sandesh Sukumar Doolipeta, 2015-02-15