Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 26-Dec-2002 22:51
User is offline View Users Profile Print this message


Hong Zhang

Posts: 29
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 26-Dec-2002 22:55
User is offline View Users Profile Print this message


Hong Zhang

Posts: 29
Joined: 12-Sep-2002

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

Report this to a Moderator Report this to a Moderator
 2-Jan-2003 22:28
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.