rwoodsong

Help with Null in dojo grid / store

Discussion created by rwoodsong on Sep 6, 2011
Latest reply on Sep 7, 2011 by rwoodsong
We do a query and some of the fields for 'Company' have values and some don't. For the fields that don't have a value the grid displays Null and I would like to remove that or simply replace it with a blank space.

After the query but before the grid.setStore I have:


  store.fetch({query: {Company:Null}});
// Process the items and update attribute
  for (var i = 0; i < items.length; i++){
    var item = items[i];
    store.setValue(item, "Company", (" "));
  }

  // If the store has modified items (it should), call save with the handlers above.
  if (store.isDirty()){
    store.save();
  }

But it doesn't work and I don't know why. Any help appreciated.
Thanks,
Robin

Outcomes