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: Current filter
Topic Summary:
Created On: 12-Jan-2007 13:56
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 Neal Middlemore, on Friday, January 12, 2007 2:31 PM

Answer:
It's ok, I have sorted it.

One of those things that when you go and look at what you asked, you can see the problem.

Some of the views don't have a filter hence the null parameter error, a simple check for null has fixed my problem.

 12-Jan-2007 13:56
User is offline View Users Profile Print this message


Neal Middlemore

Posts: 35
Joined: 24-Mar-2005

Hi,


I am trying to get some information from one of my modules regarding filters applied to views.

I can cycle through the views and get the view names etc but I can't get the filter that is applied.

I tried using:

Module m = current
Filter f = current
string filter = stringOf (m, f)

but I get a "null Filter parameter was passed into argument position 2" error message.

The module is open and visible.

Anybody know the correct way to do it?

Thanks

Neal
Report this to a Moderator Report this to a Moderator
 12-Jan-2007 14:22
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

You are doing it correctly, although I would recommend testing the current filter for null before using it.

Module m = current
Filter f = current
string filter = "no filter"
if (!null f) filter = stringOf (m, f)

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 12-Jan-2007 14:31
User is offline View Users Profile Print this message


Neal Middlemore

Posts: 35
Joined: 24-Mar-2005

Answer Answer
It's ok, I have sorted it.

One of those things that when you go and look at what you asked, you can see the problem.

Some of the views don't have a filter hence the null parameter error, a simple check for null has fixed my problem.

Report this to a Moderator Report this to a Moderator
 12-Jan-2007 14:44
User is offline View Users Profile Print this message


Neal Middlemore

Posts: 35
Joined: 24-Mar-2005

Thanks for the answer Tony, for some reason I didn't see your answer until after I posted my answer...


You were, as ever, correct
Report this to a Moderator Report this to a Moderator
 12-Jan-2007 16:37
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Finally!!!!! 'filter' is an identifier and poorly suited for use as a variable name.
Report this to a Moderator Report this to a Moderator
 13-Jan-2007 12:24
User is offline View Users Profile Print this message


Neal Middlemore

Posts: 35
Joined: 24-Mar-2005

Louie,

You make a good point, it would not make a good variable name.

/me hangs head in shame




Thanks

Neal
Report this to a Moderator Report this to a Moderator
 15-Jan-2007 22:58
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Dang. I thought I had 'finally' caught Goodman!!!! lol
Report this to a Moderator Report this to a Moderator
 16-Mar-2007 14:37
User is offline View Users Profile Print this message


antoine perroud

Posts: 1
Joined: 21-Dec-2006

Hi, I used to have the same problem, and I managed it thanks to your explanations. But I've found that the instruction Filter f = current returns null if the current module is not set to Visible. Sometimes, I cannot open modules with Visible set (i.e. the read(mod_name, true) call returns null), and I don't understand why. Do you have any clue about that ?
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.