PDA

View Full Version : getViewColumnValue problems(B3) - catch th bug



knight999
21 Aug 2009, 12:32 AM
Hi Jack,

We encountered a view display problem in Beta3, some of columns are empty, even the category column can not display "+" icon correctly, all the view functions did not work anymore ~ so weird ~

I checked your demo.nsf, and it just work fine as usual, there are no any errors shown in firebug, so I spent a lot of time to trace your code ... finally ... I found something different in getViewColumnValue function, in the line 1058
"map = map.replace('_', '$'); // Ext doesn't like '$'" ...
you want to replace "$" with "_" but your code is upside down, so ... all the column name with "_" can not display column value instead of empty except formula columns ...

Hope Beta3 will fix a lot of bugs founded in the B2r2, and you guys can get more time to sleep well ~ thanks for your great job ~ B)

knight999
25 Aug 2009, 5:14 AM
Hi Jack,
in getViewColumnValue function, in the line 1058
"map = map.replace('_', '$'); // Ext doesn't like '$'" ...
you want to replace "$" with "_" but your code is upside down, so ... all the column name with "_" can not display column value instead of empty except formula columns ...


Hi Jack,

I apologize for the misunderstanding of map.replace('_', '$') function, I applied the new design to my Notes DB, and some views still can not display correctly because of column name contains "_" ...

I can not change all the view column name in Notes DB, so I used "+" symbol instaed of "_" for map.replace function, and, so far, it seems works fine for me ....

Please let me know if the "+" symbol will cause other design problems in Ext.nd or Ext JS~

Thanks again for your great job ~ B)

jratcliff
25 Aug 2009, 5:23 AM
Plus would work too. I just kept having troubles with Ext and the '$' sign that Domino will throw on at the beginning of a programmatic column name. I think I'll switch to the '+' if that is working for you because I do believe it is more common for a developer to use an underscore in a variable type name than a plus. I'll make sure it is in the next Beta.

knight999
25 Aug 2009, 6:59 AM
Plus would work too. I just kept having troubles with Ext and the '$' sign that Domino will throw on at the beginning of a programmatic column name. I think I'll switch to the '+' if that is working for you because I do believe it is more common for a developer to use an underscore in a variable type name than a plus. I'll make sure it is in the next Beta.

Many thanks for your help, as we both know that underscore is more comman than plus for a developer, but there are more than hundred apps contain undersocre in the column/field name(we didn't follow "Hungarian Notation" or other coding standard in Notes Design, that's the point), so I have to use another symbol instead of underscore ~ :(

Thanks for help ~ ;)