![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: baseline history attrName Topic Summary: DOORS 6.0 closing when accessing history attrName of module Created On: 23-Jun-2005 20:56 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I am having problems using the attrName property of history module. Right now, I am storing the module's histories in skip list then I am looping through them. I can print the attrName attribute but I can't use it inside If statement. Here is the portion of the code:
if ( !null ob){ if (canRead ob){ check_cntr = 0 History hst for hst in ob do { // // If history type is not modified object, do next history // if(hst.type != modifyObject) continue modifiedOn = hst.date // print "Shall Text " SHALL_TEXT " \n" if(reportDate == findDate((dateOf intOf modifiedOn)"", 0)) { // no month deduction needed print " history attrName " hst.attrName " \n" if( !null hst.attrName){ //if(hst.attrName == SHALL_TEXT) { //MODIF_CNTR++ //break //}// if hst.attrName == SHALL_TEXT) }// if(!null hst.attrname) } // if(reportDate == findDate((dateOf intOf modifiedOn)"", 0)) } // for hst in ob do } // if (canRead ob) } // if (!null ob)\ |
|
![]() |
|
![]() |
|
Its marginally better in theory to assign such stuff to variables. And for DXL you don't always get the right type for stuff like this especially when using it in print and if statements and in function calls. So you should issue: string NameAttr = hst.attrName, and then refer to NameAttr.
- Louie |
|
![]() |
|
![]() |
|
Leidy,
Try this on for size. if hst.attrName "" == SHALL_TEXT |
|
![]() |
|
![]() |
|
Thanks Louie and Dale. But I tried assigning the hst.attrName to a string variable and I also tried comparing the hst.attrname"" == SHALL_TEXT and it didn't work. It is still closing down DOORS when I run the program.
|
|
![]() |
|
![]() |
|
Post the DXL in the "Attache Code" window. Put the exact DXL errors you are getting. If DOORS is just aborting without ceremony then I'd strongly suspect your module is corrupt.
- Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
baseline history attrName
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.