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: looping ALL objects, even if there is default filter on the module
Topic Summary:
Created On: 29-Sep-2006 10:11
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 Pekka Mäkinen, on Friday, September 29, 2006 11:27 AM

Answer:
for object in entire

Syntax
for o in entire(module) do {
...
}
where: o is a variable of type Object
module is a variable of type Module


Operation
Assigns the variable o to be each successive object in module regardless of its deleted state or the current display set. It includes table and row header objects and the cells.
 29-Sep-2006 10:11
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

Hello,

is there a way to loop over all objects in a module, even if the user has a default view on the module, which hides some objects?

Thanks in advance,

Ben
Report this to a Moderator Report this to a Moderator
 29-Sep-2006 11:17
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Answer Answer
for object in entire

Syntax
for o in entire(module) do {
...
}
where: o is a variable of type Object
module is a variable of type Module


Operation
Assigns the variable o to be each successive object in module regardless of its deleted state or the current display set. It includes table and row header objects and the cells.

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 29-Sep-2006 11:27
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

great! Thanks. regards, Ben
Report this to a Moderator Report this to a Moderator
 29-Sep-2006 19:22
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

That entire loop is pretty routine. You will probably also want to exclude some objects like this:
if (isDeleted(o)) continue // Ignore deleted object
if (table(o) or row(o)) continue // Ignore Table and Row start objects
if (cell(o)) continue // Ignore object in a table

- Louie
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.