![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Change Proposal --- "Proposed Object Text" attribute Topic Summary: Created On: 26-Dec-2002 22:51 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hello,
Here is Hong again. I'm trying to export/print "Proposed Object Text" of each new Change Proposal. I am stucked. Here are the error messages when I run the script: L: <Line:99> unknown Object attribute (Proposed Object Text) -I- DXL: <Line:153> execution halted When I took off Line 99 & Line 100, the script runs well without giving any errors. Here is part of my script that causes the errors: ...... if(exists attribute "CP Attr - Status"){ for o in m do{ string s = o."CP Attr - Status" string sPOT = o."Proposed Object Text" This is Line 99 print sPOT "\n" This is Line 100 string sCPC = "" if(cistrcmp(s,ListofCPStatus[0])==0){ count = count + 1 string objectI = o."Absolute Number" string little1 = little objectI "\n" string little2 = little objectI sDetails = sDetails little1 sCPC = o."Object Text" // sPOT = o."Proposed Object Text" newCPs += little2 " :" sCPC "\n" snewCPS = snewCPS little2 " :" sCPC "\n" } } } ...... thanks a lot in advance, hong |
|
![]() |
|
![]() |
|
Hi all,
A little more information: I did a testing to see whether I can get the "Proposed Object Text". And I successfully print "Proposed Object Text" Here is my little testing script: Module m = current Object o = current for o in m do{ string s = o."Object Text" string ss = o."Proposed Object Text" print s "\n" print ss "\n\n" } thanks again, hong |
|
![]() |
|
![]() |
|
Your first line ('exists') refers to the current module whereas your other lines refer to module 'm'.
Here's a guess: add the following couple statements to the top of your code. print (name(current Module) "") " -- current\n" print (name(m) "") " -- 'm'\n" I think perhaps you will find that they refer to different module. If so, the "current" is the partner module where attribute "CP Attr - Status" exists, yet "m" still refers to the standard module, which has no "Proposed Object Text" attribute. Did you "open" the partner module after opening "m"? Visa-Versa? The "current" module changes when you open a new module, so you may need to change it back as per the DXL manual (in the on-line DXL help, look for "ModuleRef__"). Module mTemp = current Module mPartner = read("Partner...", true) (current ModuleRef__) = mTemp if (null mPartner) then { ... open error...} Consider writing a standard OpenModule function; you'll need it. - Louie |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.