appsdk2 - Does Rally.data.custom.Store have magic uniqueness? -


i created custom app (using lookback query) found items have been blocked within last n days. displays basic story/defect data, along duration of "blockage" , reason. sadly, stories have been blocked more once.

i wanted show row in display grid each combination of story id , blocked reason. however, not work - stubbornly showed 1 row per id (e.g. us1243). after endless debugging, found had change name of field in custom data store. used have this:

// inside loop var data = {     id : formattedid,     name : name,     planestimate : size,     reason : reason,     duration : roundedduration };  list.push(data);  // later... var mystore = ext.create("rally.data.custom.store", {     data : list,     pagesize : 100 });  // , of course use store rally grid 

to show of data "list" array, had change "data" object this:

var data = {     value : formattedid,     name : name,     planestimate : size,     reason : reason,     duration : roundedduration }; 

(note replacement of "id" "value". had change "dataindex" reference in grid well, of course.)

i searched , searched, found no explanation why interprets "id" attribute needing unique. data store itself? grid? don't have energy track down, spent half day debugging it.

is there rally app sdk documentation explain this?

this subtle behavior inherited ext. expected records in store have unique id. default id field 'id', why in first example getting 1 row per id since each item in store overwrite existing item same id. second example works because there no id specified, ext auto-generate unique one.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -