![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Issue with spreadsheet importer Topic Summary: Created On: 21-Aug-2003 18:19 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
When importing data from a spreadsheet using the Telelogic supplied import tool, I noticed what I consider a bug. If you are importing data from a column into either a real or integer attribute, and the value is zero, it imports into DOORS as a empty (null) value, and not zero.
I have observed this with V5.2, V6 and V7 of DOORS. Does anyone else consider this a bug, but more importantly, to this forum, has anyone fixed this problem. TIA Frank |
|
![]() |
|
![]() |
|
I think it is a bug.
When a new object is created, its attributes are null by default. Before updating the value of an attribute, the importer does a comparison between the current attribute value and the value being imported. The attribute is only updated if the values differ. Unfortunately, the integer comparison used does not distinguish between null and zero, so all zero values remain null. You could fix this by amending the commas.dxl script to check for zero or null and explicitly assign zero. add the following after the "if (new_int != old_int) { ... }" statement (at line 745) else { if (new_int == 0) { o.attr_name = new_int updated = true } } add the following after the "if (new_real != old_real) { ... }" statement (at line 734) else { if (new_real == 0.0) { o.attr_name = new_real updated = true } } The downside to this is that the updated objects count may not reflect the number of actual updates. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Issue with spreadsheet importer
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.