![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Current filter Topic Summary: Created On: 12-Jan-2007 13:56 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() 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. | |
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 ![]() |
|
![]() |
|
![]() |
|
Finally!!!!! 'filter' is an identifier and poorly suited for use as a variable name.
|
|
![]() |
|
![]() |
|
Louie,
You make a good point, it would not make a good variable name. /me hangs head in shame ![]() Thanks Neal |
|
![]() |
|
![]() |
|
Dang. I thought I had 'finally' caught Goodman!!!! lol
|
|
![]() |
|
![]() |
|
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 ?
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Current filter
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.