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: set filter
Topic Summary: Reject, Accept counts are not proper
Created On: 15-Feb-2006 11:03
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.
Answer This question was answered by Anton Drexler, on Wednesday, February 15, 2006 12:08 PM

Answer:
Hi,

you should read the DXL manual more accurately; then you'd find that the definition of the "set" function is
void set (Module m, Filter f, int &accepted, int &rejected)
which means you have to supply a module parameter.

In addition, the "&" operator is only necessary for the definition (it says that the parameter may be changed in the function); it must be omitted if the function is called.

Thus, if you change your code by replacing
"set f8, &acep, &reje"
"set (m, f8, acep, reje)",
where m is defined as "Module m = current",
it will work.

Regards
Toni
 15-Feb-2006 11:03
User is offline View Users Profile Print this message


Deepak Mohan

Posts: 3
Joined: 22-Jul-2005

I am new to DXL. I want to get the count of objects that have been accepted and rejected by the filter. However, when I run the below code, I am getting "0" for both when printing to output window. Does anybody know what I am doing wrong? After running the script, when I open "Tools->Filter", I am able to see the same filter command. And when I click "Apply", I see the correct values for objects accepted and rejected. But the DXL code does not work. Thanks.
Report this to a Moderator Report this to a Moderator
 15-Feb-2006 11:59
User is offline View Users Profile Print this message


Anton Drexler

Posts: 25
Joined: 9-Dec-2003

Answer Answer
Hi,

you should read the DXL manual more accurately; then you'd find that the definition of the "set" function is
void set (Module m, Filter f, int &accepted, int &rejected)
which means you have to supply a module parameter.

In addition, the "&" operator is only necessary for the definition (it says that the parameter may be changed in the function); it must be omitted if the function is called.

Thus, if you change your code by replacing
"set f8, &acep, &reje"
"set (m, f8, acep, reje)",
where m is defined as "Module m = current",
it will work.

Regards
Toni
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.