![]() |
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 |
![]() |
![]()
|
![]() Answer: Do you mean that if (hst.attrName == SHALL_TEXT) { ...} gives you a syntax error? You need to cast the hst.attrName reference to a string by adding an empty string to it as follows: if (hst.attrName "" == SHALL_TEXT) { ...} | |
![]() |
|
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)\ |
|
![]() |
|
![]() |
|
Do you mean that
if (hst.attrName == SHALL_TEXT) { ...} gives you a syntax error? You need to cast the hst.attrName reference to a string by adding an empty string to it as follows: if (hst.attrName "" == SHALL_TEXT) { ...} ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Works for DOORS 7.0 but not DOORS 6.0
|
|
![]() |
|
![]() |
|
Works for DOORS 7.0 but not DOORS 6.0
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
baseline history attrName
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.