Opened 9 years ago

Closed 7 years ago

#11027 closed defect (wontfix)

DataPresentation dojo.data support broken

Reported by: haysmark Owned by: deanw
Priority: high Milestone: 1.9
Component: DojoX Widgets Version: 1.4.0
Keywords: Cc:
Blocked By: Blocking:

Description

The DataPresentation? API indeed has the usual store, query, and queryOptions you would expect from a dojo.data widget. It works fine for the DataGrid? portion. For the charting portion, DataPresentation? makes some bad assumptions about the dojo.data API and hence does not support dojo.data stores:

setStore: function(/*Object?*/store, /*String?*/query, /*Object?*/queryOptions){
	// FIXME build a prepared store properly -- this requires too tight a convention to be followed to be useful
	this.setPreparedStore(store, query, queryOptions);
},

Work involved:

  • Actually invoke store.fetch() with the given query and queryOptions.
  • onComplete: invoke setData with the query result
    • The series attribute takes either a static array (as in the test) or takes a function pointer that dynamically constructs series from data. The private DataPresentation? code that actually evaluates the series needs to go through the dojo.data API instead.
  • Set a refresh interval to query the dojo.data store again.
  • Fix the setData refresh handler so it doesn't override the refresh interval of the store and setUrl cases.

Change History (4)

comment:1 Changed 9 years ago by dante

Owner: changed from dante to jared_j

I see the word data and think this is you. please reassign if I'm wrong.

comment:2 Changed 9 years ago by Jared Jurkiewicz

Owner: changed from jared_j to Douglas Hays

This widget is owned by IBM, and therefore assigning to an IBMer for monitoring./work. I don't work on DataPresentation?.

comment:3 Changed 9 years ago by Douglas Hays

Owner: changed from Douglas Hays to deanw

I don't see a trac id for Clark

comment:4 Changed 7 years ago by dylan

Milestone: tbd1.9
Resolution: wontfix
Status: newclosed

dojo/data is deprecated. Closing as wontfix.

Note: See TracTickets for help on using tickets.