← Back to team overview

dhis2-devs team mailing list archive

[Bug 1211862] [NEW] report tables generated with the table plug-in renders wrong url

 

Public bug reported:

The function bellow using report table plug-in, renders a url of wrong
type returning 404 error.

DHIS.getTable({
  indicators: ['Uvn6LCg7dVU'],
  periods: ['last12Months'],
  orgunits: ['ImspTQPwCqd'],
  crosstab: ['periods'],
  orgUnitIsParent: true,
  useExtGrid: false,
  callbackName: 'table1',
  hiddenCols: [0],
  el: 'table1',
  url: base
});

url generated is of type:
base + api/reportTables/data.jsonp?minimal=true&in=qS7f%E2%80%A6PwCqd&crosstab=periods&orgUnitIsParent=true&callback=Ext.data.JsonP.table3

If adding a report table ID the url returns data:

base +
api/reportTables/gsPlRrRLDPr/data.jsonp?minimal=true&in=qS7f%E2%80%A6PwCqd&crosstab=periods&orgUnitIsParent=true&callback=Ext.data.JsonP.table3

** Affects: dhis2
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1211862

Title:
  report tables generated with the table plug-in renders wrong url

Status in DHIS 2 - District Health Information Software:
  New

Bug description:
  The function bellow using report table plug-in, renders a url of wrong
  type returning 404 error.

  DHIS.getTable({
    indicators: ['Uvn6LCg7dVU'],
    periods: ['last12Months'],
    orgunits: ['ImspTQPwCqd'],
    crosstab: ['periods'],
    orgUnitIsParent: true,
    useExtGrid: false,
    callbackName: 'table1',
    hiddenCols: [0],
    el: 'table1',
    url: base
  });

  url generated is of type:
  base + api/reportTables/data.jsonp?minimal=true&in=qS7f%E2%80%A6PwCqd&crosstab=periods&orgUnitIsParent=true&callback=Ext.data.JsonP.table3

  If adding a report table ID the url returns data:

  base +
  api/reportTables/gsPlRrRLDPr/data.jsonp?minimal=true&in=qS7f%E2%80%A6PwCqd&crosstab=periods&orgUnitIsParent=true&callback=Ext.data.JsonP.table3

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1211862/+subscriptions


Follow ups

References