POST
|
Thanks John! You pointed me in the right direction! I attached a formatter to the field <th field="COMPANY" width="150px" formatter='fixNull'>Company</th> Then wrote a function to replace any null with an empty value. function fixNull(companyName, rowIndex){ noValue = ""; if( dojo.string.trim(companyName) == "Null") { //company field was null so use noValue var rowdata = this.grid.getItem(rowIndex); return noValue; } else { return companyName; } }
... View more
09-07-2011
09:38 AM
|
0
|
0
|
258
|
POST
|
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; 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
... View more
09-06-2011
08:27 AM
|
0
|
2
|
1390
|
POST
|
//Zoom to the extent of the parcel - expand it a bit so we aren't zoomed in too close. var stateExtent = selectedState.geometry.getExtent().expand(5.0); map.setExtent(stateExtent);
... View more
06-28-2011
11:40 AM
|
0
|
0
|
167
|
POST
|
Thank you so much, that's exactly what I am looking for!
... View more
06-14-2010
09:13 AM
|
0
|
0
|
295
|
POST
|
We want to change the size and color of the pan nav buttons that show when you specify {nav:true} in esri.Map. I found that the graphic is a background image and the name is fixed-pan-sprite.png. I can't find the graphic 'fixed-pan-sprite.png' or any reference to the graphic in my css or javascript. Does anyone know where this graphic is kept and referenced from? Thanks, Robin Woodsong City of Boulder
... View more
06-11-2010
09:10 AM
|
0
|
2
|
723
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|